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

2020-04-26 Thread Zachary Ware
Zachary Ware added the comment: Given that #18976 was said to have fixed this and is now closed as "fixed", and every tagged version is now EOL, I'm closing the issue. -- nosy: +zach.ware resolution: -> out of date stage: test needed -> resolved status: open -> closed __

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

2014-03-12 Thread Éric Araujo
Éric Araujo added the comment: FTR a patch in #18976 is said to also fix this one. -- ___ Python tracker ___ ___ Python-bugs-list mail

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

2012-12-12 Thread Vinay Sajip
Vinay Sajip added the comment: In terms of the venv code, I don't see how doing the test in that way would cause problems - as long as the value of sys.executable doesn't change, then as I see it, the venv code should operate as it's meant to. -- __

[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.realpat

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

2012-12-09 Thread Vinay Sajip
Vinay Sajip added the comment: > Vinay, do you think dereferencing sys.executable could lead to trouble with > venvs? It could - the venv code looks for a venv configuration file relative to sys.executable, which could be a symlink into a system-wide Python installation. Resolving the symlink

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

2012-12-08 Thread Éric Araujo
Éric Araujo added the comment: Vinay, do you think dereferencing sys.executable could lead to trouble with venvs? -- nosy: +vinay.sajip ___ Python tracker ___ __

[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/atheo

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

2012-10-28 Thread Éric Araujo
Éric Araujo added the comment: Great! http://docs.python.org/devguide contains all the info needed to get the code and make a patch. If you apply your suggestion to the code and it fixes your build, I will commit it. A small unit test to check the new behavior of build_ext and avoid regress

[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 ___

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

2012-10-27 Thread Éric Araujo
Éric Araujo added the comment: Would you like to work on a patch? -- stage: -> test needed versions: +Python 3.2, Python 3.3, Python 3.4 ___ Python tracker ___ _

[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,-