I have a newly installed Fedora 40 install on my laptop. I’ve downloaded version 3.12.4 from python website. I run the following:
./configure --prefix=/opt/python/3.12.4/ --enable-optimizations --without-ensurepip --enable-ipv6 --enable-shared
In the same folder of the build I then run:
make -j `nproc`
And then in the same folder I run
./python --version
and I get the strange result
Python 3.12.3
But I’m building 3.12.4
If I remove the configure option --enable-shared
and redo the build
./configure --prefix=/opt/python/3.12.4/ --enable-optimizations --without-ensurepip --enable-ipv6
In the same folder of the build I then run:
make -j `nproc`
And then in the same folder I run
./python --version
I now get the right version
Python 3.12.4
Fedora 40 native system python version is 3.12.3
Why is this occurring?