From 0d7cce7ddaaf42c23c45108f54fa434a7deb310d Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 5 Nov 2026 07:36:23 +0000 Subject: [PATCH 1/2] README, docs/testing.md: install from PyPI numpy2x 1.0.0 is on PyPI with wheels for Windows x64 and Linux x86_64 (CPython 3.12 and 3.13); other platforms build from the sdist. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01JT2yHm85oFjgf1AcgGLUux --- README.md | 8 ++++---- docs/testing.md | 20 +++++++------------- 2 files changed, 11 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 3a9c321..0579e07 100644 --- a/README.md +++ b/README.md @@ -82,12 +82,12 @@ will depend on the machine and the program. How to measure your own code: [docs/ ## Usage ```bash -pip install git+https://github.com/ILNumerics/numpy2x +pip install numpy2x ``` -Needs Python >= 3.12 (64 bit), NumPy >= 2.5 and, until there are prebuilt wheels, a C++20 -compiler (Visual Studio with the C++ workload on Windows, GCC or Clang on Linux). The build -takes about a minute. +Needs Python 3.12 or 3.13 (64 bit) and NumPy >= 2.5. Prebuilt wheels exist for Windows x64 +and Linux x86_64; elsewhere pip builds from source, which needs a C++20 compiler (Visual +Studio with the C++ workload on Windows, GCC or Clang on Linux) and takes about a minute. Then pick one: diff --git a/docs/testing.md b/docs/testing.md index d13f5af..85bb00d 100644 --- a/docs/testing.md +++ b/docs/testing.md @@ -18,36 +18,30 @@ What you are testing: does your existing NumPy code run with numpy2x, and does i ## 1. Requirements -- **Python ≥ 3.12, 64-bit.** Check with `python --version`. +- **Python 3.12 or 3.13, 64-bit.** Check with `python --version`. - **NumPy ≥ 2.5.** It is upgraded automatically during installation if needed (see the note below). -- **A C++20 compiler.** There are no prebuilt wheels yet, so numpy2x is compiled during installation: +- Prebuilt wheels exist for Windows x64 and Linux x86_64. Elsewhere pip compiles numpy2x during + installation, which needs a C++20 compiler: - **Windows:** Visual Studio 2022 or the *Build Tools for Visual Studio* with the *Desktop development with C++* workload - **Linux:** a recent GCC or Clang -- **git**, only for the first install command below. pip fetches CMake and Ninja itself. + + pip fetches CMake and Ninja itself. ## 2. Install into your existing Python Use the same Python installation that you (or your IDE) normally work with: ```bash -python -m pip install "numpy2x @ git+https://github.com/ILNumerics/numpy2x" -``` - -Without git: - -```bash -python -m pip install "numpy2x @ https://github.com/ILNumerics/numpy2x/archive/refs/heads/main.zip" +python -m pip install numpy2x ``` -The build takes about a minute. - > [!WARNING] > pip upgrades NumPy in this environment to ≥ 2.5. Packages that require an older NumPy may stop working > (for example, Numba reports *"Numba needs NumPy 2.1 or less"*). Check beforehand with: > > ```bash -> python -m pip install --dry-run "numpy2x @ git+https://github.com/ILNumerics/numpy2x" +> python -m pip install --dry-run numpy2x > ``` **Safer alternative:** a separate environment that still sees all your installed packages. The new NumPy From 788ca8afbc90295839e4a4edcc660d7267a7fcff Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 5 Nov 2026 07:37:34 +0000 Subject: [PATCH 2/2] docs/testing.md: rewrap Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01JT2yHm85oFjgf1AcgGLUux --- docs/testing.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/testing.md b/docs/testing.md index bedb6f2..4f536bf 100644 --- a/docs/testing.md +++ b/docs/testing.md @@ -21,8 +21,7 @@ What you are testing: does your existing NumPy code run with numpy2x, and does i - **Python ≥ 3.12, 64-bit.** Check with `python --version`. - **NumPy ≥ 2.5.** It is upgraded automatically during installation if needed (see the note below). - Prebuilt wheels exist for Python 3.12 and 3.13 on Windows x64 and Linux x86_64. Elsewhere pip - compiles numpy2x during - installation, which needs a C++20 compiler: + compiles numpy2x during installation, which needs a C++20 compiler: - **Windows:** Visual Studio 2022 or the *Build Tools for Visual Studio* with the *Desktop development with C++* workload - **Linux:** a recent GCC or Clang