You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
aa7c391858
- pin to 2.4.6 for PY311
71 lines
2.9 KiB
Diff
71 lines
2.9 KiB
Diff
--- numpy/tests/test_configtool.py.orig 2026-06-21 15:43:16
|
|
+++ numpy/tests/test_configtool.py 2026-07-02 22:51:46
|
|
@@ -20,7 +20,7 @@
|
|
reason="wasm interpreter cannot start subprocess")
|
|
class TestNumpyConfig:
|
|
def check_numpyconfig(self, arg):
|
|
- p = subprocess.run(['numpy-config', arg], capture_output=True, text=True)
|
|
+ p = subprocess.run(['numpy-config-@@PYVER@@', arg], capture_output=True, text=True)
|
|
p.check_returncode()
|
|
return p.stdout.strip()
|
|
|
|
--- numpy/_core/tests/test_cython.py.orig 2026-06-21 15:43:16
|
|
+++ numpy/_core/tests/test_cython.py 2026-07-02 22:55:26
|
|
@@ -63,22 +63,22 @@
|
|
f.write(f"python3 = '{sys.executable}'")
|
|
|
|
try:
|
|
- subprocess.check_call(["meson", "--version"])
|
|
+ subprocess.check_call(["meson-@@PYVER@@", "--version"])
|
|
except FileNotFoundError:
|
|
pytest.skip("No usable 'meson' found")
|
|
if sysconfig.get_platform() == "win-arm64":
|
|
pytest.skip("Meson unable to find MSVC linker on win-arm64")
|
|
if sys.platform == "win32":
|
|
- run_subprocess(["meson", "setup",
|
|
+ run_subprocess(["meson-@@PYVER@@", "setup",
|
|
"--buildtype=release",
|
|
"--vsenv", "--native-file", native_file,
|
|
str(srcdir)],
|
|
build_dir)
|
|
else:
|
|
- run_subprocess(["meson", "setup",
|
|
+ run_subprocess(["meson-@@PYVER@@", "setup",
|
|
"--native-file", native_file, str(srcdir)],
|
|
build_dir)
|
|
- run_subprocess(["meson", "compile", "-vv"], build_dir)
|
|
+ run_subprocess(["meson-@@PYVER@@", "compile", "-vv"], build_dir)
|
|
|
|
sys.path.append(str(build_dir))
|
|
|
|
--- numpy/_core/tests/test_limited_api.py.orig 2026-06-21 15:43:16
|
|
+++ numpy/_core/tests/test_limited_api.py 2026-07-02 22:56:03
|
|
@@ -61,23 +61,23 @@
|
|
f.write(f"python3 = '{sys.executable}'")
|
|
|
|
try:
|
|
- subprocess.check_call(["meson", "--version"])
|
|
+ subprocess.check_call(["meson-@@PYVER@@", "--version"])
|
|
except FileNotFoundError:
|
|
pytest.skip("No usable 'meson' found")
|
|
if sysconfig.get_platform() == "win-arm64":
|
|
pytest.skip("Meson unable to find MSVC linker on win-arm64")
|
|
if sys.platform == "win32":
|
|
- run_subprocess(["meson", "setup",
|
|
+ run_subprocess(["meson-@@PYVER@@", "setup",
|
|
"--werror",
|
|
"--buildtype=release",
|
|
"--vsenv", "--native-file", native_file,
|
|
str(srcdir)],
|
|
build_dir)
|
|
else:
|
|
- run_subprocess(["meson", "setup", "--werror",
|
|
+ run_subprocess(["meson-@@PYVER@@", "setup", "--werror",
|
|
"--native-file", native_file, str(srcdir)],
|
|
build_dir)
|
|
- run_subprocess(["meson", "compile", "-vv"], build_dir)
|
|
+ run_subprocess(["meson-@@PYVER@@", "compile", "-vv"], build_dir)
|
|
|
|
sys.path.append(str(build_dir))
|
|
|