[issue16326] distutils build_ext fails to set library_dirs in 2.7.2 on Linux

2012-12-12 Thread Andy Salnikov
Andy Salnikov added the comment: OK, I see the problem. Do you think it would help if it tested both sys.executable and its symlynk-resolved path against sys.exec_prefix like this: if sys.executable.startswith(os.path.join(sys.exec_prefix, bin)) or os.path.realpath

[issue16326] distutils build_ext fails to set library_dirs in 2.7.2 on Linux

2012-10-30 Thread Andy Salnikov
Andy Salnikov added the comment: Hi Éric, I am attaching a patch that fixes the problem. The patch is tiny, basically 1-line. This replaces the direct use of sys.executable with the symlink-resolved version of the same path. I made the change for linux/unix platforms and also for cygwin

[issue16326] distutils build_ext fails to set library_dirs in 2.7.2 on Linux

2012-10-28 Thread Andy Salnikov
Andy Salnikov added the comment: I never submitted any patch to Python, but unless somebody more experienced wants to contribute I can try. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16326

[issue16326] distutils build_ext fails to set library_dirs in 2.7.2 on Linux

2012-10-25 Thread Andy Salnikov
New submission from Andy Salnikov: Hi, when trying to build extension modules with distutils I ran into a problem that linking fails with an errors like: gcc -pthread -shared -L build/temp.linux-x86_64-2.7/h5py/defs.o -L/reg/g/psdm/sw/external/hdf5/1.8.4p1/x86_64-rhel6-gcc44-opt/lib -L. -Wl

Re: Names changed to protect the guilty

2006-10-09 Thread Andy Salnikov
Aahz [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] In article [EMAIL PROTECTED], Antoon Pardon [EMAIL PROTECTED] wrote: The problem is there is also ground for bugs if you don't use blah is True. If some application naturally seems to ask for a variable that can be valued False,

Re: write()

2006-07-30 Thread Andy Salnikov
manuhack [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I copied the lines f=open('/tmp/workfile', 'w') print f f.close() from Python 2.4 Documentation 7.2. But it said IOerror No such file or directory '/tmp/workfile' Is it something about the os? I'm using Python 2.4

Re: Dr. Dobb's Python-URL! - weekly Python news and links (May 22)

2006-05-22 Thread Andy Salnikov
Peter Otten [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] QOTW: It's hard to make a mistake by having too many short and simple functions. And much too easy to make them when you have too few ;-) - Thomas Bartkus And of course there is a mathematical proof of that provided

Re: Python advocacy in scientific computation

2006-03-08 Thread Andy Salnikov
Steve Holden [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Andy Salnikov wrote: Michael Tobis [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] When you say all kinds of inlined code, do you have any other examples besides HTML? Makefiles is one example. Shell

Re: Python advocacy in scientific computation

2006-03-08 Thread Andy Salnikov
Michael Tobis [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I think I agree with Steve here. I suspect you should either have sufficiently trained your users in Python, or have limited them to one-line statements which you could then strip of leading whitespace before passing

Re: Python advocacy in scientific computation

2006-03-07 Thread Andy Salnikov
Michael Tobis [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Indentation makes all kinds of inlined code extremely clumsy or practically impossible in Python. This is the only sensible argument against the indentation thing I've heard. Python squirms about being inlined in a

Re: Python advocacy in scientific computation

2006-03-06 Thread Andy Salnikov
Steve Holden [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] sturlamolden wrote: Robert Kern wrote: And you need to ask why Python is a better Matlab than Matlab? First there are a few things I don't like: 1. Intendation as a part of the syntax, really annoying. Troll. You