GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Merge pull request #25748 from rgommers/unvendor-mesonpython · numpy/numpy@837cd38

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github/workflows
    • wheels.yml
  • .gitmodules
  • LICENSES_bundled.txt
  • numpy/core/code_generators
    • genapi.py
    • generate_numpy_api.py
    • generate_ufunc_api.py
  • pyproject.toml
  • vendored-meson
    • build-backend-wrapper/npbuild
      • __init__.py
    • entrypoint
      • meson
    • meson-python
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/workflows/wheels.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/wheels.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ jobs:
118118
python-version: "3.x"
119119

120120
- name: Build wheels
121-
uses: pypa/cibuildwheel@0b04ab1040366101259658b355777e4ff2d16f83 # v2.16.4
121+
uses: pypa/cibuildwheel@ce3fb7832089eb3e723a0a99cab7f3eaccf074fd # v2.16.5
122122
env:
123123
CIBW_PRERELEASE_PYTHONS: True
124124
CIBW_BUILD: ${{ matrix.python }}-${{ matrix.buildplat[1] }}
Collapse file

‎.gitmodules‎

Copy file name to clipboardExpand all lines: .gitmodules
-3Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,3 @@
1010
[submodule "vendored-meson/meson"]
1111
path = vendored-meson/meson
1212
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

‎LICENSES_bundled.txt‎

Copy file name to clipboardExpand all lines: LICENSES_bundled.txt
-5Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@ Files: vendored-meson/meson/*
3030
License: Apache 2.0
3131
For license text, see vendored-meson/meson/COPYING
3232

33-
Name: meson-python
34-
Files: vendored-meson/meson-python/*
35-
License: MIT
36-
For license text, see vendored-meson/meson-python/LICENSE
37-
3833
Name: spin
3934
Files: .spin/cmds.py
4035
License: BSD-3
Collapse file

‎numpy/core/code_generators/genapi.py‎

Copy file name to clipboardExpand all lines: numpy/core/code_generators/genapi.py
-9Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -304,15 +304,6 @@ def find_functions(filename, tag='API'):
304304
fo.close()
305305
return functions
306306

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
316307

317308
def write_file(filename, data):
318309
"""
Collapse file

‎numpy/core/code_generators/generate_numpy_api.py‎

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 numberDiff line numberDiff line change
@@ -148,12 +148,7 @@ def generate_api(output_dir, force=False):
148148
targets = (h_file, c_file)
149149

150150
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)
157152
return targets
158153

159154
def do_generate_api(targets, sources):
Collapse file

‎numpy/core/code_generators/generate_ufunc_api.py‎

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 numberDiff line numberDiff line change
@@ -125,12 +125,7 @@ def generate_api(output_dir, force=False):
125125
targets = (h_file, c_file)
126126

127127
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)
134129
return targets
135130

136131
def do_generate_api(targets, sources):
Collapse file

‎pyproject.toml‎

Copy file name to clipboardExpand all lines: pyproject.toml
+4-11Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,8 @@
11
[build-system]
22
build-backend = "mesonpy"
3-
backend-path = ['./vendored-meson/meson-python']
43
requires = [
54
"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",
166
]
177

188
[project]
@@ -191,6 +181,9 @@ environment = {PKG_CONFIG_PATH="/opt/32/lib/pkgconfig"}
191181
config-settings = "setup-args=--vsenv setup-args=-Dallow-noblas=true"
192182
repair-wheel-command = ""
193183

184+
[tool.meson-python]
185+
meson = 'vendored-meson/meson/meson.py'
186+
194187
[tool.spin]
195188
package = 'numpy'
196189

Collapse file

‎vendored-meson/build-backend-wrapper/npbuild/__init__.py‎

Copy file name to clipboardExpand all lines: vendored-meson/build-backend-wrapper/npbuild/__init__.py
-27Lines changed: 0 additions & 27 deletions
This file was deleted.
Collapse file

‎vendored-meson/entrypoint/meson‎

Copy file name to clipboardExpand all lines: vendored-meson/entrypoint/meson
-23Lines changed: 0 additions & 23 deletions
This file was deleted.
Collapse file

‎vendored-meson/meson-python‎

Copy file name to clipboard
-1Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.