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

BLD: rename setup.py to _setup.py to signal it should no longer be used #19027

Merged
merged 1 commit into from Aug 8, 2023

Conversation

rgommers
Copy link
Member

@rgommers rgommers commented Aug 8, 2023

See the added code comment in this commit for rationale of keeping _setup.py around. We got another two bug reports that used python setup.py install in the last day (gh-19022 and gh-19026), so it's time to make that impossible.

For those who really really need it, they can still manually rename _setup.py to setup.py for a while longer, but this should make it much clearer that we no longer support this install method (beyond the one conda-forge on Windows case).

@rgommers rgommers added maintenance Items related to regular maintenance tasks backport-candidate This fix should be ported by a maintainer to previous SciPy versions. labels Aug 8, 2023
@rgommers rgommers added this to the 1.11.2 milestone Aug 8, 2023
@rgommers rgommers requested a review from larsoner as a code owner August 8, 2023 08:33
…e used

See the added code comment in this commit for rationale of keeping `_setup.py`
around. We got another two bug reports that used `python setup.py install`
in the last day (scipygh-19022 and scipygh-19026), so it's time to make that
impossible.

For those who really really need it, they can still manually rename
`_setup.py` to `setup.py` for a while longer, but this should make
it much clearer that we no longer support this install method (beyond
the one conda-forge on Windows case).

[skip circle] [skip cirrus]
@rgommers
Copy link
Member Author

rgommers commented Aug 8, 2023

Cc @h-vetinari for visibility. Once this lands, it will require a one-line tweak in conda-forge, to move _setup.py back to setup.py for the Windows jobs where it's needed.

Copy link
Contributor

@tylerjereddy tylerjereddy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, this indeed makes sense to backport given the noise.

@tylerjereddy tylerjereddy merged commit fe05d2e into scipy:main Aug 8, 2023
23 checks passed
@rgommers rgommers deleted the rename-setuppy branch August 9, 2023 07:55
@tylerjereddy tylerjereddy removed the backport-candidate This fix should be ported by a maintainer to previous SciPy versions. label Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Items related to regular maintenance tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants