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 #24521 from charris/backport-24515 · numpy/numpy@38aa2b7

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • meson.build
  • numpy
    • _build_utils
      • gitversion.py
    • meson.build
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎meson.build‎

Copy file name to clipboardExpand all lines: meson.build
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ project(
33
'c', 'cpp', 'cython',
44
version: run_command(
55
# This should become `numpy/_version.py` in NumPy 2.0
6-
['python', 'numpy/_build_utils/gitversion.py'],
6+
['numpy/_build_utils/gitversion.py'],
77
check: true).stdout().strip(),
88
license: 'BSD-3',
99
meson_version: '>=1.2.99', # version in vendored-meson is 1.2.99
Collapse file

‎numpy/_build_utils/gitversion.py‎

Copy file name to clipboardExpand all lines: numpy/_build_utils/gitversion.py
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env python3
12
import os
23
import textwrap
34

Collapse file

‎numpy/meson.build‎

Copy file name to clipboardExpand all lines: numpy/meson.build
+5-8Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -188,14 +188,6 @@ if not have_lapack and not allow_noblas
188188
'for some linear algebra operations).')
189189
endif
190190

191-
# Generate version.py for sdist
192-
gitversion = files('_build_utils/gitversion.py')[0]
193-
python_bin = py.full_path()
194-
meson.add_dist_script(
195-
py,
196-
[gitversion, '--meson-dist', '--write', 'numpy/version.py']
197-
)
198-
199191
# Copy the main __init__.py|pxd files to the build dir (needed for Cython)
200192
__init__py = fs.copyfile('__init__.py')
201193
__init__pxd = fs.copyfile('__init__.pxd')
@@ -257,6 +249,11 @@ endif
257249

258250
np_dir = py.get_install_dir() / 'numpy'
259251

252+
# Generate version.py for sdist
253+
meson.add_dist_script(
254+
['_build_utils/gitversion.py', '--meson-dist', '--write',
255+
'numpy/version.py']
256+
)
260257
if not fs.exists('version.py')
261258
generate_version = custom_target(
262259
'generate-version',

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.