Skip to content

Install from PyPI - #1

Merged
hokb merged 3 commits into
mainfrom
readme-pip-install
Nov 5, 2026
Merged

hokb merged 3 commits into
mainfrom
readme-pip-install

Conversation

@hokb

@hokb hokb commented Nov 5, 2026

Copy link
Copy Markdown
Member

numpy2x 1.0.0 is on PyPI, with wheels for Windows x64 and Linux x86_64 (CPython 3.12 and 3.13) and an sdist. This updates the install instructions to match.

  • README "Usage": pip install numpy2x replaces pip install git+.... The C++20 compiler is now only needed on platforms without a wheel.
  • docs/testing.md: the same change for the install steps and the --dry-run check. git is no longer a requirement.

Checked: in a fresh venv (Linux, Python 3.13), pip install numpy2x installs 1.0.0 together with NumPy 2.5.4. A short program (sin, multiply, add, sum(axis=0) on 500 x 500) gives results bit-identical to NumPy. Only documentation changes, so no build or tests were run.


Generated by Claude Code

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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JT2yHm85oFjgf1AcgGLUux
# Conflicts:
#	README.md
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JT2yHm85oFjgf1AcgGLUux

hokb commented Nov 5, 2026

Copy link
Copy Markdown
Member Author

The pip (ubuntu-latest, 3.12) check failed on b95e5d7 in one test: python/tests/test_compositions.py::test_norm[float32]. The result was 36.147015 where NumPy gives 36.14701, a difference of one ulp. This PR only touches docs/testing.md and README.md, so the failure is not caused by this PR. For a float32 vector, NumPy's norm takes sqrt(dot(x, x)), which runs in OpenBLAS sdot. A likely cause is that sdot splits its work differently when called concurrently from a worker thread. That would be a real, intermittent bit-identity issue in numpy2x itself, not in this change, and no fix exists for it yet. The push after it (head a later commit) runs CI again, which serves as the one re-run.


Generated by Claude Code

@hokb
hokb merged commit 51bfa95 into main Nov 5, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants