-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
Python 3.13.3 tarball and Git tag contain version 3.13.1 instead #133816
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
This comment has been minimized.
This comment has been minimized.
Are you sure you're running the Python that was just build? The Include/patchlevel.h file in Python-3.13.3.tgz contains the right information: /* Version parsed out into numeric values */
/*--start constants--*/
#define PY_MAJOR_VERSION 3
#define PY_MINOR_VERSION 13
#define PY_MICRO_VERSION 3
#define PY_RELEASE_LEVEL PY_RELEASE_LEVEL_FINAL
#define PY_RELEASE_SERIAL 0
/* Version as a string */
#define PY_VERSION "3.13.3"
/*--end constants--*/ |
It might be a PATH issue (namely, the system-wide interpreter is being picked up before as you're doing altinstall). Check the output of |
Yes, I am quite sure. The PATH is only set for a specifc user. I tried it even as root. In fact also the sha256sum does not fit at all for me. Downloaded via wget and curl. Same result.
Then I tried to compile via git. Same issue. Did exactly the same for the 3.13.2 (tarball) and it works like expected. root@xyz:/usr/local/opt/python-3.13.3/bin# /usr/local/opt/python-3.13.2/bin/python3.13 --version |
That's extremely weird as https://github.com/python/cpython/blob/v3.13.3/Include/patchlevel.h has really 3.13.3. Is it the same for you? namely, when you git clone, are the sources the correct ones? also, perhaps try to do What I can however remember is that we once had a similar issue where |
But there is no system wide installation? In fact the installation of the Debian is not used at all. Its 3.11. So this does not interfere with the compiled one. Yes, I checked the patchlevel, the version fitted. but after compiling and installing it was v3.13.1 using the created binary I still dont get why the checksum differs from what you provide. And yes, its very weird, that I used the same way for .2 and no issues at all. |
Have you tried with the xz tarball instead? do the checksums also mismatch? Also try specifying |
I've downloaded 3.13.3 using the tgz and did a build (without installing). Running from the build directory shows the correct version. Also the MD5 matches the checksum on the website, the SHA 256 checksum matches the checksum in the first message of this issue. Is there a 3.13.1 installation on your machine? If so, check the Makefile for the 3.13.3 build for accidental references to that installation (for example in one of the CFLAGS variables). What commands do you use to configure and build? |
Also: Fedora already has an RPM for 3.13.3 , that makes it highly unlikely that our release artifacts and tags contain the incorrect version information (and that's ignoring the numerous tests that the release team does, the binary release artifacts are build from our source releases) |
I have quite some installation. I've used the same way as usual to compile and install it
Thats usually how I do it. It worked the same way for any installation you find above.
|
This is almost certainly an issue on your machine. @picnixz and I checked our release in a number of ways and it looks correct. Some things to check:
|
Bug report
Bug description:
Summary
The official Python 3.13.3 source archives (
.tgz
and.tar.xz
) from https://python.org contain version 3.13.1 instead of 3.13.3. Additionally, the GitHub tagv3.13.3
in thecpython
repository builds a Python binary that reportsPython 3.13.1
when executed.Steps to Reproduce
Python-3.13.3.tgz
from python.org../configure && make && make altinstall
).python3.13 --version
→ it saysPython 3.13.1
.Also tested with:
https://github.com/python/cpython.git
git checkout v3.13.3
Result: Still reports
Python 3.13.1
.Expected behavior
The built binary should report
Python 3.13.3
.System
CPython versions tested on:
3.13
Operating systems tested on:
Linux
The text was updated successfully, but these errors were encountered: