[SOLVED] current: python-3.11 x86-64 site-packages under /usr/lib
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Several x86_64 python libs are now under '/usr/lib/python3.11/site-packages' instead of '/usr/lib64/python3.11/site-packages/'
python3 -m sites now also lists '/usr/lib/python3.11/site-packages'.
Here's a couple of commands that you should test:
Code:
find /usr/lib/python3.11 -type f | xargs file | grep x86-64
find /usr/lib64/python3.11 -type f | xargs file | grep x86-64
You'll notice that only under /usr/lib64 are there any Linux ELF x86-64 objects.
There do however, seem to be some x86-64 Windows turds under /usr/lib, and maybe something should be done about that.
It's still up in the air how multilib will react to this, but I suspect that python knows to look for binary objects in the platform library directory, and for any architecture independent files in the "purelib" (i.e. under /lib).
Several x86_64 python libs are now under '/usr/lib/python3.11/site-packages' instead of '/usr/lib64/python3.11/site-packages/'
python3 -m sites now also lists '/usr/lib/python3.11/site-packages'.
From Pat's Python-setuptools SlackBuild
Code:
# After Python 3.9, we will not mess with the upstream module layout again.
if python3 --version | grep -q "Python 3.9." ; then
# Recent Python versions support both a libdir (for pure Python modules) and a
# platlib (for $ARCH specific modules). We've always patched Python to use
# the platform directory (such as /usr/lib64/python3.9/site-packages on x86_64)
# for all modules. Perhaps we will rethink this, but since an installed
# setuptools now takes priority for reporting the libdir (and this no longer
# matches the platlib on architectures such as x86_64), let's patch setuptools
# to agree with Python:
if [ "$LIBDIRSUFFIX" = "64" ]; then
zcat $CWD/setuptools.x86_64.diff.gz | patch -p1 --verbose || exit 1
fi
fi
Thanks to fourtysixandtwo for pointing this out to me
find /usr/lib/python3.11 -type f | xargs file | grep x86-64
find /usr/lib64/python3.11 -type f | xargs file | grep x86-64
You'll notice that only under /usr/lib64 are there any Linux ELF x86-64 objects.
There do however, seem to be some x86-64 Windows turds under /usr/lib, and maybe something should be done about that.
It's still up in the air how multilib will react to this, but I suspect that python knows to look for binary objects in the platform library directory, and for any architecture independent files in the "purelib" (i.e. under /lib).
find /usr/lib/python3.11 -type f | xargs file | grep x86-64
find /usr/lib64/python3.11 -type f | xargs file | grep x86-64
You'll notice that only under /usr/lib64 are there any Linux ELF x86-64 objects.
I checked with all of my third party packages. I've noticed that only the packages that do not have Linux ELF x86-64 objects are going in to /usr/lib. Packages with Linux ELF x86-64 objects are going to /usr/lib64.
I do have one exception. A third party program, flann. It places in python binding in /usr/lib.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.