[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 <nliu@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nliu@novell.com AssignedTo|bnc-team-screening@forge.pr |jmatejek@novell.com |ovo.novell.com | -- 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#c1 Jan Matejek <jmatejek@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium Status|NEW |NEEDINFO InfoProvider| |matt@milliams.com --- Comment #1 from Jan Matejek <jmatejek@novell.com> 2010-09-06 12:36:05 UTC --- 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" ? -- 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#c2 Matt Williams <matt@milliams.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|matt@milliams.com | --- Comment #2 from Matt Williams <matt@milliams.com> 2010-09-06 21:44:57 UTC --- (In reply to comment #1)
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 <matt@milliams.com> 2010-09-06 21:51:57 UTC --- It seems that the 'lib64' bit is set by openSUSE with the 'Python-2.7rc2-multilib.patch' patch (https://build.opensuse.org/package/view_file?file=Python-2.7rc2-multilib.patch&package=python&project=devel%3Alanguages%3Apython%3AFactory&srcmd5=1cc270c59885b5a6b5f842d37fa4f04e) in the devel:languages:python:Factory/python project (https://build.opensuse.org/package/files?package=python&project=devel%3Alanguages%3Apython%3AFactory). I assume a similar patch was applied to version 2.6 too. -- 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#c4 Jan Matejek <jmatejek@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #4 from Jan Matejek <jmatejek@novell.com> 2010-10-01 12:33:21 UTC --- so basically, we need to make the "multilib" patch consistent within itself - either don't add lib64 into install path, or add it to search path as well -- 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#c5 --- Comment #5 from Bernhard Wiedemann <bwiedemann@suse.com> 2014-02-12 18:00:13 CET --- This is an autogenerated message for OBS integration: This bug (637176) was mentioned in https://build.opensuse.org/request/show/222059 Factory / python -- 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#c6 --- Comment #6 from Bernhard Wiedemann <bwiedemann@suse.com> 2014-02-13 19:00:15 CET --- This is an autogenerated message for OBS integration: This bug (637176) was mentioned in https://build.opensuse.org/request/show/222235 Factory / python -- 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#c8 --- Comment #8 from Bernhard Wiedemann <bwiedemann@suse.com> 2014-03-07 17:00:15 CET --- This is an autogenerated message for OBS integration: This bug (637176) was mentioned in https://build.opensuse.org/request/show/225093 13.1 / python -- 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 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard| |obs:running:2629:moderate -- 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 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard|obs:running:2629:moderate | -- 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#c9 --- Comment #9 from Swamp Workflow Management <swamp@suse.de> 2014-03-15 18:04:21 UTC --- openSUSE-SU-2014:0380-1: An update that solves four vulnerabilities and has two fixes is now available. Category: security (moderate) Bug References: 637176,831442,856835,856836,857470,863741 CVE References: CVE-2013-1752,CVE-2013-1753,CVE-2013-4238,CVE-2014-1912 Sources used: openSUSE 13.1 (src): python-2.7.6-8.6.1, python-base-2.7.6-8.6.1, python-doc-2.7.6-8.6.1 -- 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#c10 --- Comment #10 from Bernhard Wiedemann <bwiedemann@suse.com> 2014-04-07 17:00:17 CEST --- This is an autogenerated message for OBS integration: This bug (637176) was mentioned in https://build.opensuse.org/request/show/229291 12.3 / python3 https://build.opensuse.org/request/show/229292 Factory / python3 -- 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#c12 --- Comment #12 from Bernhard Wiedemann <bwiedemann@suse.com> 2014-04-10 17:00:12 CEST --- This is an autogenerated message for OBS integration: This bug (637176) was mentioned in https://build.opensuse.org/request/show/229636 12.3 / python3 -- 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 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard| |obs:running:2736:moderate -- 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#c13 Jan Matejek <jmatejek@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #13 from Jan Matejek <jmatejek@suse.com> 2014-04-10 15:48:08 UTC --- fixed everywhere now -- 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#c14 --- Comment #14 from Swamp Workflow Management <swamp@suse.de> 2014-05-02 13:06:17 UTC --- openSUSE-SU-2014:0597-1: An update that solves three vulnerabilities and has one errata is now available. Category: security (moderate) Bug References: 637176,863741,869222,871152 CVE References: CVE-2013-7338,CVE-2014-1912,CVE-2014-2667 Sources used: openSUSE 12.3 (src): python3-3.3.0-6.15.2, python3-base-3.3.0-6.15.1, python3-doc-3.3.0-6.15.1 -- 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.
http://bugzilla.novell.com/show_bug.cgi?id=637176 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Whiteboard|obs:running:2736:moderate | -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com