Skip to content

Please consider reverting #4863 #4952

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
stefanor opened this issue Apr 19, 2025 · 1 comment
Closed

Please consider reverting #4863 #4952

stefanor opened this issue Apr 19, 2025 · 1 comment

Comments

@stefanor
Copy link
Contributor

Debian has been forced to revert c712663 in the distro's setuptools, for now. We upgraded to setuptools 78 just as we were beginning to freeze for the next release (Debian 13, trixie), and this change is particular has caused quite a bit of fallout.

One of the issues for us is that packages expect to be able to execute scripts from the build/scripts-* directories, but they now have an invalid shebang, so they have to be executed with an explicit interpreter. This can be to run tests, or get --help output to generate manpages for example.

Changing to explicitly specify a python interpreter is a change that can be made, but it'll take some time to coordinate. We have 5000 odd packages building with setuptools.

I understand that the build directory's contents can be considered to be an implementation detail of setuptools/distutils, that outsiders should not rely on. The problem here is just that it's been this way for so long that we've got used to it :(

In Debian's case we also have a wheel-centred Python package building approach that wouldn't run into this problem, but packages have to be converted over to it, and this will take time. There are many complex packages (Debian and upstream) that call setup.py directly, too.

@jaraco
Copy link
Member

jaraco commented Apr 19, 2025

This is essentially a duplicate of #4934. I'm leaning toward saying that the best way forward here is to maintain a patch that provides the old behavior (as long as it's needed). Perhaps you can contribute to the conversation there by elaborating with a minimal reproducer that elicits the undesirable behavior (from Setuptools itself).

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

No branches or pull requests

2 participants