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
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
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
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
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,
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
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
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
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
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
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
11 matches
Mail list logo