Skip to content

Commit c49876d

Browse files
committed
Keep a numpy pin on Windows ARM64 for Python 3.10
The Windows ARM64 numpy>=2.3.0 requirement only applies on Python 3.11+, but the fallback pin excluded every Windows ARM64 environment. Python 3.10 on that platform then had no numpy dependency, so lockers such as `uv lock --python 3.10` could not resolve a solution. Fixes Unidata#1491
1 parent 046dea0 commit c49876d

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

‎Changelog‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
version 1.7.4.1 (tag v1.7.4.1rel)
22
=================================
3+
* Keep a numpy pin for Windows ARM64 on Python 3.10 so lockers can resolve that environment (issue #1491).
34
* Change default encoding for stringtochar/chartostring functions from 'utf-8' to 'utf-8'/'ascii' for dtype.kind='U'/'S'
45
(issue #1464).
56
* Fix DeprecationWarning for assigning to numpy.ndarray.shape for numpy >= 2.5.0 (issue #1468).

‎pyproject.toml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ dependencies = [
4040
"certifi",
4141
"packaging",
4242
"numpy>=2.3.0; platform_system == 'Windows' and platform_machine == 'ARM64' and python_version >= '3.11'",
43-
"numpy>=1.21.2; platform_system != 'Windows' or platform_machine != 'ARM64'",
43+
# Windows ARM64 + Python 3.10 has no numpy>=2.3.0 wheel. Keep the older
44+
# pin there so lockers (e.g. uv lock --python 3.10) can still resolve
45+
# that environment. See issue #1491.
46+
"numpy>=1.21.2; platform_system != 'Windows' or platform_machine != 'ARM64' or python_version < '3.11'",
4447
]
4548
dynamic = ["version"]
4649

0 commit comments

Comments
 (0)