[Bug 637176] New: Python doesn't have the PEP 370 compatible lib64 path
https://bugzilla.novell.com/show_bug.cgi?id=637176 https://bugzilla.novell.com/show_bug.cgi?id=637176#c0 Summary: Python doesn't have the PEP 370 compatible lib64 path Classification: openSUSE Product: openSUSE 11.3 Version: Final Platform: x86-64 OS/Version: openSUSE 11.3 Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: matt@milliams.com QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:2.0b4) Gecko/20100817 SUSE/4.0b-19.1 Firefox/4.0b4 As of Python 2.6 it includes, by default, ~/.local/lib/python2.6/site-packages in the default sys.path. These are correctly included as can be seen by: % python3 -c "import sys;print(sys.path)" ['', '/usr/lib/python31.zip', '/usr/lib64/python3.1', '/usr/lib64/python3.1/plat-linux2', '/usr/lib64/python3.1/lib-dynload', '/home/matt/.local/lib/python3.1/site-packages', '/usr/lib64/python3.1/site-packages'] As you can see, for some of these both the lib and lib64 versions are included but there is no entry for ~/.local/lib64/python3.1/site-packages. Would it be possible to add this? Cheers, Matt Williams Reproducible: Always -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=637176
https://bugzilla.novell.com/show_bug.cgi?id=637176#c
n liu
https://bugzilla.novell.com/show_bug.cgi?id=637176
https://bugzilla.novell.com/show_bug.cgi?id=637176#c1
Jan Matejek
https://bugzilla.novell.com/show_bug.cgi?id=637176
https://bugzilla.novell.com/show_bug.cgi?id=637176#c2
Matt Williams
this should be easy to add - but the .local hierarchy is poorly specified. do you have any references about "lib64" even being present in ".local" ?
While there are no documented references to lib64 (that I can find in the PEP or in docs.python.org), there are packages that install themselves there. For example, PyYaml (http://pypi.python.org/pypi/PyYAML), installs itself to lib64. This package doesn't mention 'lib64' anywhere in its source code but it uses distutils to install. This suggests that distutils is set to automatically install to lib4 on 64 bit systems. AFAICT, distutils uses the get_python_lib() (http://docs.python.org/distutils/apiref.html?highlight=sysconfig#distutils.s...) function to get the install path for compiled code. Running: % python -c "from distutils import sysconfig;print(sysconfig.get_python_lib(True, prefix='~/.local'))" ~/.local/lib64/python2.6/site-packages is the the path that compiled code will be installed to. I'm guessing that at some point in its compilation Python is told that on x86_64 systems, libs should be installed into 'lib64'. Either that or Python is guessing this itself. I know that the same happen with code not installed into ~/.local -- If you pass no 'prefix' to get_python_lib() the it gives '/usr/lib64/python2.6/site-packages'. There is some discussion of this at http://serverfault.com/questions/60619/fedora-usr-lib-vs-usr-lib64. Cheers, Matt -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=637176
https://bugzilla.novell.com/show_bug.cgi?id=637176#c3
--- Comment #3 from Matt Williams
https://bugzilla.novell.com/show_bug.cgi?id=637176
https://bugzilla.novell.com/show_bug.cgi?id=637176#c4
Jan Matejek
https://bugzilla.novell.com/show_bug.cgi?id=637176
https://bugzilla.novell.com/show_bug.cgi?id=637176#c5
--- Comment #5 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=637176
https://bugzilla.novell.com/show_bug.cgi?id=637176#c6
--- Comment #6 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=637176
https://bugzilla.novell.com/show_bug.cgi?id=637176#c8
--- Comment #8 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=637176
https://bugzilla.novell.com/show_bug.cgi?id=637176#c
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=637176
https://bugzilla.novell.com/show_bug.cgi?id=637176#c
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=637176
https://bugzilla.novell.com/show_bug.cgi?id=637176#c9
--- Comment #9 from Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=637176
https://bugzilla.novell.com/show_bug.cgi?id=637176#c10
--- Comment #10 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=637176
https://bugzilla.novell.com/show_bug.cgi?id=637176#c12
--- Comment #12 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=637176
https://bugzilla.novell.com/show_bug.cgi?id=637176#c
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=637176
https://bugzilla.novell.com/show_bug.cgi?id=637176#c13
Jan Matejek
https://bugzilla.novell.com/show_bug.cgi?id=637176
https://bugzilla.novell.com/show_bug.cgi?id=637176#c14
--- Comment #14 from Swamp Workflow Management
http://bugzilla.novell.com/show_bug.cgi?id=637176
Swamp Workflow Management
participants (1)
-
bugzilla_noreply@novell.com