-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
BUG: numpy 1.26.0b1 fails to build from sdist when no git is present #24503
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
Comments
Thanks for the report @mkoeppe. That's a bug indeed. The @stefanv can you please have a look at this? |
While #24511, the sage build of 1.26b1 should not be hitting this. Are you building from the sdist or from a github archive? |
Building from the sdist from PyPI. I've just added #24511 as a patch. Tests running at https://github.com/mkoeppe/sage/actions/runs/5954216252, I'll report back when finished |
I confirm that this fixes the problem. Thanks for the quick fix @mattip |
Thanks for handling it, @mattip |
Note that the idea is to always generate the version and distribute it as part of the sdist. That way, the git hash should never be empty. |
So if the version is not in the sdist, I guess we should reopen this and figure out why it is missing. |
It is present, Stefan's comment was only clarifying. I just checked it when working on the next fix (gh-24515), |
The |
Weird. @mkoeppe how did the sage build not find it? What is the command you are using to build NumPy 1.26b1? |
@mattip Just using |
Does the above command go via setuptools? When I run:
it invokes Meson and builds the sdist that contains version.py. |
No, |
The problem here was simply that |
That makes sense. Thanks for the explanation. |
Thanks for checking that; I wasn't able to look at the time, but that sets my mind at ease. |
Uh oh!
There was an error while loading. Please reload this page.
Describe the issue:
<edit>
: (@mattip) Adding the root cause:The version is missing from the sdist for 1.26b1, resulting in an attempt to get it via
git
. But that does not work because ...<edit>
The
gitversion.py
script introduced in #24196 is broken when nogit
binary is available.Reproduce the code example:
Error message:
Runtime information:
N/A
Context for the issue:
sagemath/sage#36123
The text was updated successfully, but these errors were encountered: