8000 MAINT: remove `setup.py` and other files for distutils builds by rgommers · Pull Request #24519 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

MAINT: remove setup.py and other files for distutils builds #24519

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

Merged
merged 3 commits into from
Sep 15, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
MAINT: remove all setup.py's and related files for distutils builds
  • Loading branch information
rgommers committed Sep 13, 2023
commit 63a1fee8d1c1e442aa8ca08ac7cefb195f99b2a9
26 changes: 0 additions & 26 deletions .github/actions/action.yml

This file was deleted.

5 changes: 0 additions & 5 deletions LICENSES_bundled.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@ Files: numpy/linalg/lapack_lite/*
License: BSD-3-Clause
For details, see numpy/linalg/lapack_lite/LICENSE.txt

Name: tempita
Files: tools/npy_tempita/*
License: MIT
For details, see tools/npy_tempita/license.txt

Name: dragon4
Files: numpy/core/src/multiarray/dragon4.c
License: MIT
Expand Down
52 changes: 0 additions & 52 deletions MANIFEST.in

This file was deleted.

16 changes: 8 additions & 8 deletions doc/HOWTO_RELEASE.rst
Original file line number Diff line number Diff line change
Expand Up @@ -188,17 +188,17 @@ Check the C API version number
------------------------------
The C API version needs to be tracked in three places

- numpy/core/setup_common.py
- numpy/core/meson.build
- numpy/core/code_generators/cversions.txt
- numpy/core/include/numpy/numpyconfig.h

There are three steps to the process.

1. If the API has changed, increment the C_API_VERSION in setup_common.py. The
API is unchanged only if any code compiled against the current API will be
backward compatible with the last released NumPy version. Any changes to
C structures or additions to the public interface will make the new API
not backward compatible.
1. If the API has changed, increment the C_API_VERSION in
numpy/core/meson.build. The API is unchanged only if any code compiled
against the current API will be backward compatible with the last released
NumPy version. Any changes to C structures or additions to the public
interface will make the new API not backward compatible.

2. If the C_API_VERSION in the first step has changed, or if the hash of
the API has changed, the cversions.txt file needs to be updated. To check
Expand All @@ -221,8 +221,8 @@ There are three steps to the process.
increased from the previous version if some of the functions or macros in
the include files were deprecated.

The C ABI version number in numpy/core/setup_common.py should only be
updated for a major release.
The C ABI version number in numpy/core/meson.build should only be updated for a
major release.


Check the release notes
Expand Down
12 changes: 0 additions & 12 deletions numpy/_build_utils/setup.py

This file was deleted.

3 changes: 1 addition & 2 deletions numpy/_build_utils/tempita.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@

from Cython import Tempita as tempita

# XXX: If this import ever fails (does it really?), vendor either
# cython.tempita or numpy/npy_tempita.
# XXX: If this import ever fails (does it really?), vendor cython.tempita


def process_tempita(fromfile, outfile=None):
Expand Down
5 changes: 3 additions & 2 deletions numpy/_pytesttester.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@
DeprecationWarnings and PendingDeprecationWarnings are ignored, other
warnings are passed through.

In practice, tests run from the numpy repo are run in develop mode. That
includes the standard ``python runtests.py`` invocation.
In practice, tests run from the numpy repo are run in development mode with
``spin``, through the standard ``spin test`` invocation or from an inplace
build with ``pytest numpy``.

This module is imported by every numpy subpackage, so lies at the top level to
simplify circular import issues. For the same reason, it contains no numpy
Expand Down
10 changes: 0 additions & 10 deletions numpy/_typing/setup.py

This file was deleted.

12 changes: 0 additions & 12 deletions numpy/array_api/setup.py

This file was deleted.

10 changes: 0 additions & 10 deletions numpy/compat/setup.py

This file was deleted.

2 changes: 1 addition & 1 deletion numpy/core/code_generators/cversions.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Hash below were defined from numpy_api_order.txt and ufunc_api_order.txt
# When adding a new version here for a new minor release, also add the same
# version as NPY_x_y_API_VERSION in numpyconfig.h and C_API_VERSION in
# setup_common.py.
# numpy/core/meson.build

0x00000001 = 603580d224763e58c5e7147f804dc0f5
0x00000002 = 8ecb29306758515ae69749c803a75da1
Expand Down
2 changes: 1 addition & 1 deletion numpy/core/code_generators/numpy_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Whenever you change one index, you break the ABI (and the ABI version number
should be incremented). Whenever you add an item to one of the dict, the API
needs to be updated in both setup_common.py and by adding an appropriate
needs to be updated in both numpy/core/meson.build and by adding an appropriate
entry to cversion.txt (generate the hash via "python cversions.py").

When adding a function, make sure to use the next integer not used as an index
Expand Down
53 changes: 0 additions & 53 deletions numpy/core/feature_detection_cmath.h

This file was deleted.

107 changes: 0 additions & 107 deletions numpy/core/feature_detection_math.h

This file was deleted.

2 changes: 0 additions & 2 deletions numpy/core/meson.build
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# This file should contain what setup.py + setup_common.py do (WIP)
#
# Potential issues to address or keep track of:
# - sincos detection incorrect on NetBSD: https://github.com/mesonbuild/meson/issues/10641

Expand Down
Loading
0