GeezerVison is showing github.com — Merge pull request #25748 from rgommers/unvendor-mesonpython · numpy/numpy@837cd38
File treeExpand file treeCollapse file tree Open diff view settings numpy/core/code_generators build-backend-wrapper/npbuild
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: .github/workflows/wheels.yml +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -118,7 +118,7 @@ jobs: | 118 | 118 | python-version: "3.x" | 119 | 119 |
| 120 | 120 | - name: Build wheels | 121 | | - uses: pypa/cibuildwheel@0b04ab1040366101259658b355777e4ff2d16f83 # v2.16.4 | | 121 | + uses: pypa/cibuildwheel@ce3fb7832089eb3e723a0a99cab7f3eaccf074fd # v2.16.5 | 122 | 122 | env: | 123 | 123 | CIBW_PRERELEASE_PYTHONS: True | 124 | 124 | CIBW_BUILD: ${{ matrix.python }}-${{ matrix.buildplat[1] }} | |
Collapse file Copy file name to clipboardExpand all lines: .gitmodules -3Lines changed: 0 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 10 | 10 | [submodule "vendored-meson/meson"] | 11 | 11 | path = vendored-meson/meson | 12 | 12 | url = https://github.com/numpy/meson.git | 13 | | -[submodule "vendored-meson/meson-python"] | 14 | | - path = vendored-meson/meson-python | 15 | | - url = https://github.com/numpy/meson-python.git |
Collapse file Copy file name to clipboardExpand all lines: LICENSES_bundled.txt -5Lines changed: 0 additions & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -30,11 +30,6 @@ Files: vendored-meson/meson/* | 30 | 30 | License: Apache 2.0 | 31 | 31 | For license text, see vendored-meson/meson/COPYING | 32 | 32 |
| 33 | | -Name: meson-python | 34 | | -Files: vendored-meson/meson-python/* | 35 | | -License: MIT | 36 | | - For license text, see vendored-meson/meson-python/LICENSE | 37 | | - | 38 | 33 | Name: spin | 39 | 34 | Files: .spin/cmds.py | 40 | 35 | License: BSD-3 | |
Collapse file Copy file name to clipboardExpand all lines: numpy/core/code_generators/genapi.py -9Lines changed: 0 additions & 9 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -304,15 +304,6 @@ def find_functions(filename, tag='API'): | 304 | 304 | fo.close() | 305 | 305 | return functions | 306 | 306 |
| 307 | | -def should_rebuild(targets, source_files): | 308 | | - from distutils.dep_util import newer_group | 309 | | - for t in targets: | 310 | | - if not os.path.exists(t): | 311 | | - return True | 312 | | - sources = API_FILES + list(source_files) + [__file__] | 313 | | - if newer_group(sources, targets[0], missing='newer'): | 314 | | - return True | 315 | | - return False | 316 | 307 |
| 317 | 308 | def write_file(filename, data): | 318 | 309 | """ | |
Collapse file Copy file name to clipboardExpand all lines: numpy/core/code_generators/generate_numpy_api.py +1-6Lines changed: 1 addition & 6 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -148,12 +148,7 @@ def generate_api(output_dir, force=False): | 148 | 148 | targets = (h_file, c_file) | 149 | 149 |
| 150 | 150 | sources = numpy_api.multiarray_api | 151 | | - | 152 | | - if (not force and not genapi.should_rebuild(targets, [numpy_api.__file__, __file__])): | 153 | | - return targets | 154 | | - else: | 155 | | - do_generate_api(targets, sources) | 156 | | - | | 151 | + do_generate_api(targets, sources) | 157 | 152 | return targets | 158 | 153 |
| 159 | 154 | def do_generate_api(targets, sources): | |
Collapse file Copy file name to clipboardExpand all lines: numpy/core/code_generators/generate_ufunc_api.py +1-6Lines changed: 1 addition & 6 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -125,12 +125,7 @@ def generate_api(output_dir, force=False): | 125 | 125 | targets = (h_file, c_file) | 126 | 126 |
| 127 | 127 | sources = ['ufunc_api_order.txt'] | 128 | | - | 129 | | - if (not force and not genapi.should_rebuild(targets, sources + [__file__])): | 130 | | - return targets | 131 | | - else: | 132 | | - do_generate_api(targets, sources) | 133 | | - | | 128 | + do_generate_api(targets, sources) | 134 | 129 | return targets | 135 | 130 |
| 136 | 131 | def do_generate_api(targets, sources): | |
Collapse file Copy file name to clipboardExpand all lines: pyproject.toml +4-11Lines changed: 4 additions & 11 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | [build-system] | 2 | 2 | build-backend = "mesonpy" | 3 | | -backend-path = ['./vendored-meson/meson-python'] | 4 | 3 | requires = [ | 5 | 4 | "Cython>=0.29.34,<3.1", | 6 | | - # All dependencies of the vendored meson-python (except for meson, because | 7 | | - # we've got that vendored too - that's the point of this exercise). | 8 | | - 'pyproject-metadata >= 0.7.1', | 9 | | - 'tomli >= 1.0.0; python_version < "3.11"', | 10 | | - 'setuptools >= 60.0; python_version >= "3.12"', | 11 | | - 'colorama; os_name == "nt"', | 12 | | - # Note that `ninja` and (on Linux) `patchelf` are added dynamically by | 13 | | - # meson-python if those tools are not already present on the system. No | 14 | | - # need to worry about those unless one does a non-isolated build - in that | 15 | | - # case they must already be installed on the system. | | 5 | + "meson-python>=0.15.0,<0.16.0", | 16 | 6 | ] | 17 | 7 |
| 18 | 8 | [project] | @@ -191,6 +181,9 @@ environment = {PKG_CONFIG_PATH="/opt/32/lib/pkgconfig"} | 191 | 181 | config-settings = "setup-args=--vsenv setup-args=-Dallow-noblas=true" | 192 | 182 | repair-wheel-command = "" | 193 | 183 |
| | 184 | +[tool.meson-python] | | 185 | +meson = 'vendored-meson/meson/meson.py' | | 186 | + | 194 | 187 | [tool.spin] | 195 | 188 | package = 'numpy' | 196 | 189 |
| |
Collapse file Copy file name to clipboardExpand all lines: vendored-meson/build-backend-wrapper/npbuild/__init__.py -27Lines changed: 0 additions & 27 deletions Collapse file Copy file name to clipboardExpand all lines: vendored-meson/entrypoint/meson -23Lines changed: 0 additions & 23 deletions Collapse file Copy file name to clipboard -1Lines changed: 0 additions & 1 deletion
|