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

DOC, MAINT: more distutils/build cleanups #19390

Merged
merged 2 commits into from Oct 18, 2023

Conversation

tylerjereddy
Copy link
Contributor

  • remove some modules in _build_utils that don't seem relevant now that we use meson exclusively (it may be possible that a subset of the ideas get reused for ilp64 support in meson (?), but I suspect that will use meson idioms instead)

  • update the detailed roadmap to remove the mention of removing support for numpy.distutils (it is true that there are still meson things to do of course, but setup.py is gone now)

  • the paragraph about Pythran in the detailed roadmap was also deleted--it is no longer an optional dep

[skip cirrus]

* remove some modules in `_build_utils` that don't seem
relevant now that we use `meson` exclusively

* update the detailed roadmap to remove the mention
of removing support for `numpy.distutils` (it is true
that there are still `meson` things to do of course, but
`setup.py` is gone now)

* the paragraph about Pythran in the detailed roadmap
was also deleted--it is no longer an optional dep

[skip cirrus]
@tylerjereddy tylerjereddy added Documentation Issues related to the SciPy documentation. Also check https://github.com/scipy/scipy.org maintenance Items related to regular maintenance tasks labels Oct 15, 2023
@@ -75,15 +67,6 @@ NumPy C API (by Cython, everything in SciPy was fixed) will disappear. Then we
can define ``NPY_NO_DEPRECATED_API`` unconditionally.
Copy link
Member

Choose a reason for hiding this comment

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

Actually this also happened. Not relevant but just saying.

Copy link
Member

Choose a reason for hiding this comment

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

I think 99% there, but it's only fully true if we drop Cython 2.x and then update our use of numpy_nodepr_api.

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 overall, thanks Tyler. Maybe restore the Pythran bit in the roadmap, updating it to mention -Duse-pythran=false, and then merge it?

``SCIPY_USE_PYTHRAN=0``. The aim is to make it a hard dependency - for that to
happen it must be clear that the maintenance burden is low enough (Meson will
help here, because it removes the monkey patching that is now done to enable
Pythran).
Copy link
Member

Choose a reason for hiding this comment

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

This is actually still optional - it can be disabled with -Duse-pythran=false instead of the old env var.

@@ -75,15 +67,6 @@ NumPy C API (by Cython, everything in SciPy was fixed) will disappear. Then we
can define ``NPY_NO_DEPRECATED_API`` unconditionally.
Copy link
Member

Choose a reason for hiding this comment

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

I think 99% there, but it's only fully true if we drop Cython 2.x and then update our use of numpy_nodepr_api.

'pathf95': ['-i8'], # PathScale Fortran compiler
'pg': ['-i8'], # Portland Group Fortran Compiler
'flang': ['-i8'], # Portland Group Fortran LLVM Compiler
'sun': ['-i8'], # Sun or Forte Fortran 95 Compiler
Copy link
Member

Choose a reason for hiding this comment

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

This whole file seems fine to remove indeed - when we need it, we can dig it up from the 1.11.x branch.

* restore/update the Pythran roadmap content based on
reviewer feedback

[skip cirrus]
@tylerjereddy
Copy link
Contributor Author

Ok, I tried to restore/update the Pythran part of the roadmap.

@rgommers rgommers added this to the 1.12.0 milestone Oct 18, 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, and thanks Ilhan for the review.

@rgommers rgommers merged commit 40ff5ff into scipy:main Oct 18, 2023
19 of 21 checks passed
@tylerjereddy tylerjereddy deleted the treddy_more_build_sys_cleanups branch October 18, 2023 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Issues related to the SciPy documentation. Also check https://github.com/scipy/scipy.org maintenance Items related to regular maintenance tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants