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, BLD: more setup.py cleanups #19331

Merged
merged 2 commits into from Oct 3, 2023

Conversation

tylerjereddy
Copy link
Contributor

  • deal with the setup.py-related TODO comment in the stats build system surrounding templated_pyufunc.pxd, now that we no longer have setup.py

  • remove setup.py handling from our coverage config (I think our coverage infrastructure is a bit dormant at the moment in any case)

  • remove some stray comments/other configs related to setup.py

  • I've avoided some potentially more complex cleanups for now, like messagestream_config.h.in (and yes, there are other places in the meson build system where we can cleanup, but I'm less confident to tackle those at this time)

[skip cirrus]

* deal with the `setup.py`-related `TODO` comment in
the `stats` build system surrounding `templated_pyufunc.pxd`,
now that we no longer have `setup.py`

* remove `setup.py` handling from our coverage config (I think
our coverage infrastructure is a bit dormant at the moment in
any case)

* remove some stray comments/other configs related to `setup.py`

* I've avoided some potentially more complex cleanups for now,
like `messagestream_config.h.in` (and yes, there are other
places in the `meson` build system where we can cleanup, but I'm
less confident to tackle those at this time)

[skip cirrus]
@tylerjereddy tylerjereddy added the maintenance Items related to regular maintenance tasks label Oct 1, 2023
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.

Thanks! :)

Copy link
Member

@rgommers rgommers left a comment

Choose a reason for hiding this comment

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

Thanks Tyler, these are useful cleanups. For the two codegen scripts, I suggest making the outdir option required, otherwise they're left in a bit of a weird state where the CLI flag seems optional but the case where it's not provided is no longer handled and then you get a build error later on.

scipy/sparse/linalg/_propack/meson.build Show resolved Hide resolved
* restore a comment about skipping `g77_abi_wrappers` on 32-bit, but
switch the `setup.py` reference to past tense

* `code_gen.py` and `_generate_pyx.py` will now error out if
`outdir` is not provided

[skip cirrus]
@tylerjereddy
Copy link
Contributor Author

Ok, I pushed in attempted revisions based on the first round of comments.

@rgommers rgommers added this to the 1.12.0 milestone Oct 3, 2023
Copy link
Member

@rgommers rgommers left a comment

Choose a reason for hiding this comment

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

LGTM now, in it goes - thanks Tyler!

@rgommers rgommers merged commit 92d6659 into scipy:main Oct 3, 2023
21 checks passed
@tylerjereddy tylerjereddy deleted the treddy_more_setuppy_cleanups branch October 3, 2023 14:43
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

3 participants