Skip to content
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

Install locations and features missed on Debian #2

Closed
jaraco opened this issue Jul 4, 2020 · 3 comments · Fixed by #4 or #68
Closed

Install locations and features missed on Debian #2

jaraco opened this issue Jul 4, 2020 · 3 comments · Fixed by #4 or #68

Comments

@jaraco
Copy link
Member

jaraco commented Jul 4, 2020

In pypa/setuptools#2232, we learned that Ubuntu has a customized version of distutils, so when Setuptools attempts to adopt distutils from the standard library, those customizations are lost and Ubuntu users are unhappy.

I propose to fold those patches (3.8) those patches into this project, enabling Setuptools to incorporate that functionality. This approach will need to be done in a way that only takes effect selectively on those systems.

@jaraco jaraco closed this as completed in #4 Jul 9, 2020
@jaraco jaraco reopened this Jul 12, 2020
@jaraco jaraco changed the title Incorporate Ubuntu and Debian tweaks Install locations and features missed on Debian Jul 12, 2020
@pradyunsg
Copy link
Member

I propose to fold those patches into this project, enabling Setuptools to incorporate that functionality. This approach will need to be done in a way that only takes effect selectively on those systems.

As discussed in the linked issue, we're taking a different approach now with pypa/setuptools#2232 -- re-enabling the functionality with the known degradation for Debian systems.

This prevents locking-out Debian users from the general/unpatched behavior of distutils, while users who are using the distro-provided-and-patched python can/should use older versions of setuptools (or the version provided by their distro) to avoid breakage.

@jaraco
Copy link
Member Author

jaraco commented Sep 26, 2021

As Debian-specific support should come from Debian and site-customizations is happening in #12, this issue is essentially superseded by #12.

@jaraco
Copy link
Member Author

jaraco commented Nov 13, 2021

I've decided to revisit this issue. I desperately want to re-enable SETUPTOOLS_USE_DISTUTILS=local as the default in Setuptools and provide a means for all users to migrate off of distutils in the stdlib. I can't do that without breaking Debian and as of yet, I've seen no mechanism that will enable Debian to transition from their current aggressive patches to something else.

So what I'm planning to do is, in addition to allowing for the customized schemes, also provide hooks that will enable the current set of customizations. In the feature/debian-compat branch, I've managed to refactor the code to enable this change.

My plan now is to provide a hook that happens as part of import distutils that would allow for applying the customizations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants