Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAINT: fix version string in wheels built with setup.py #24748

Merged
merged 1 commit into from
Sep 20, 2023
Merged

MAINT: fix version string in wheels built with setup.py #24748

merged 1 commit into from
Sep 20, 2023

Conversation

licy183
Copy link

@licy183 licy183 commented Sep 19, 2023

Since numpy 1.26.0, when building with setup.py, the building system generates a weird verion string 1.26.1.26.0. Commit a880c68 has a logical error when doing some code clean-up. This generates the abnormal version string 1.26.01.26.0, and then setuptools normalized this string as 1.26.1.26.0.

@licy183 licy183 changed the title MANIT: fix version string in wheels built with setup.py MAINT: fix version string in wheels built with setup.py Sep 19, 2023
Since numpy 1.26.0, when building with setup.py, the building system
generates a weird verion string 1.26.1.26.0. Commit a880c68 has a
logical error when doing some code clean-up. This generates the
abnormal version string 1.26.01.26.0, and then setuptools normalized
this string as 1.26.1.26.0.
@charris charris added 00 - Bug 09 - Backport-Candidate PRs tagged should be backported labels Sep 19, 2023
@charris charris added this to the 1.26.1 release milestone Sep 19, 2023
@mattip
Copy link
Member

mattip commented Sep 20, 2023

Seems right to me, here is the old code. Since we removed setup.py we cannot test the fix on HEAD. But I can confirm that python setup.py bdist_wheel has a strange version number before, and a correct version number after this fix, when using git checkout v1.26.0.

@mattip mattip merged commit 51a0b9a into numpy:maintenance/1.26.x Sep 20, 2023
56 checks passed
@licy183 licy183 deleted the fix-numpy-whl-version branch September 20, 2023 09:24
@mattip
Copy link
Member

mattip commented Sep 20, 2023

Thanks @licy183. Please move to using the more modern workflow pip install ... as soon as possible. We will not be supporting numpy.distutils moving forward.

@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants