Skip to content

[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

Closed
wants to merge 2 commits into from

Conversation

stratakis
Copy link
Contributor

@stratakis stratakis commented Feb 4, 2019

@stratakis
Copy link
Contributor Author

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')):
Copy link
Member

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?

Copy link
Member

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

@csabella
Copy link
Contributor

@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.
@stratakis stratakis force-pushed the lib64 branch 3 times, most recently from d2ac93a to 4c53566 Compare July 14, 2019 12:15
@stratakis
Copy link
Contributor Author

Closing this in favor of #18381

@stratakis stratakis closed this Mar 9, 2020
@stratakis stratakis deleted the lib64 branch June 18, 2020 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants