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

MAINT: remove support for building with setup.py #19317

Merged
merged 2 commits into from
Sep 30, 2023

Conversation

rgommers
Copy link
Member

With Python 3.12 available and the Meson build mature, we don't need this any longer. The last reason we kept this around is to allow conda-forge to use it on Windows. That isn't possible anymore with Python 3.12, and conda-forge builds on Windows with Meson are now close enough to the finish line (a first build with Clang + Flang managed to create a wheel, still work to do though).

With Python 3.12 available and the Meson build mature, we don't need
this any longer. The last reason we kept this around is to allow
conda-forge to use it on Windows. That isn't possible anymore with
Python 3.12, and conda-forge builds on Windows with Meson are now close
enough to the finish line (a first build with Clang + Flang managed to
create a wheel, still work to do though).
@rgommers rgommers added the maintenance Items related to regular maintenance tasks label Sep 28, 2023
@rgommers rgommers added this to the 1.12.0 milestone Sep 28, 2023
@h-vetinari
Copy link
Member

a first build with Clang + Flang managed to create a wheel, still work to do though

yeah... I'd only delete this once we have meson-based windows builds in conda-forge, to be honest... 😅

We've run through compilation (not yet installation) so far, but not yet the test suite, much less benchmarks... I wish I could accelerate this process more, but I need a bit of advice on meson where I'm bottlenecked by the response times of those in the know...

@rgommers
Copy link
Member Author

rgommers commented Sep 28, 2023

yeah... I'd only delete this once we have meson-based windows builds in conda-forge, to be honest

The trade-off is getting worse though - the last bug we just encountered was the last drop. I'd rather get rid of it and if we really really need it still come January for 1.12.0, we can put it back in the release branch. That's easier for me to do in one go, compared to asking every contributor that touches the build system to deal with two build systems.

@h-vetinari
Copy link
Member

I'd rather get rid of it and if we really really need it still come January for 1.12.0, we can put it back in the release branch.

I'm not going to stand in the way, just noted my gut feeling (wasn't involved with the bugs you mentioned). It'll probably bitrot quite badly if we remove it, but ideally the time until January is sufficient for getting windows builds unblocked and we won't need it again 🤞

@rgommers
Copy link
Member Author

I don't think we'll need it again - and also it'll give a positive incentive (for me) to work on the structural improvement rather than hanging on to the band-aid:)

@h-vetinari
Copy link
Member

Well, good news, I gave a bit of a push, and conda-forge/scipy-feedstock#255 now passes the test suite. 🥳

So LGTM to remove setup.py :)

Copy link
Member

@h-vetinari h-vetinari left a comment

Choose a reason for hiding this comment

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

It's not every day that we can get rid of 3.5k lines of code without giving up any functionality. 💪

@rgommers
Copy link
Member Author

Awesome work on getting a Clang/Flang build working on Windows @h-vetinari!

…s.sh`

This was useful during debugging, but no longer does anything.
The `test.f` file that was called was removed in a previous commit
in this PR (19317).

[skip ci]
@tylerjereddy tylerjereddy merged commit 4fc9788 into scipy:main Sep 30, 2023
@tylerjereddy
Copy link
Contributor

Two core devs/both rel managers in favor of merge, so merged.

Maybe there will be a few other related cleanups we find later, which is fine.

@rgommers rgommers deleted the remove-setuppy branch September 30, 2023 17:18
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

4 participants