-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
[WIP] bpo-1294959: Better support for systems with /usr/lib64 #11755
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This PR is based on #3698 rebased on top of master and the NEWS entries tidied up a bit. I haven't tested it yet as of recently thus the WIP in the title. |
def getdocloc(self, object, | ||
basedir=os.path.join(sys.base_exec_prefix, "lib", | ||
"python%d.%d" % sys.version_info[:2])): | ||
def getdocloc(self, object, basedir=sysconfig.get_path('stdlib')): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like a good fix regardless of the lib/lib64/debian-triplet question!
Maybe open a distinct ticket and cherry-pick this change in a PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was already https://bugs.python.org/issue21016 issue for that and I proposed a separted PR: #18476
@stratakis, thank you for opening this to continue the work from #3698. Please fix the merge conflicts and that will retrigger the CI builds. Thanks! |
This introduces a new configure and sysconfig variable `platsubdir`, which is the name of subdirectory of $prefix that holds platform-specific libraries. On many Linux distributions, there is separation between /usr/lib and /usr/lib64, which was causing some problems due to the way Python manages its install paths. Now, platsubdir is used to select the appropriate lib directory.
d2ac93a
to
4c53566
Compare
Closing this in favor of #18381 |
https://bugs.python.org/issue1294959