This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Python 3.6.15 source tarball installs 3.6.8?
Type: behavior Stage: resolved
Components: Installation Versions:
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: eric.smith, salgerman, zach.ware
Priority: normal Keywords:

Created on 2022-02-08 17:55 by salgerman, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (10)
msg412849 - (view) Author: German Salazar (salgerman) Date: 2022-02-08 17:55
wanted to install 3.6.15, but the source tarball installs 3.6.8
msg412851 - (view) Author: Eric V. Smith (eric.smith) * (Python committer) Date: 2022-02-08 17:59
Where did you get the tarball?
msg412852 - (view) Author: German Salazar (salgerman) Date: 2022-02-08 18:05
From 
https://www.python.org/downloads/release/python-3615/

Downloaded the XZ one:
https://www.python.org/ftp/python/3.6.15/Python-3.6.15.tar.xz

I am currently building the Gzipped one, let's see what it turns out.
msg412853 - (view) Author: Zachary Ware (zach.ware) * (Python committer) Date: 2022-02-08 18:06
I've just confirmed that both tarballs (gzip and xz) on the official download page (https://www.python.org/downloads/release/python-3615/) contain 3.6.15.

Note that 3.6.8 was the last bugfix release that included Windows and macOS installers.  If you're on one of those platforms, you may need to go through some extra steps to replace an existing 3.6.8 install with 3.6.15, and at that point you would likely be better off upgrading to 3.10 (or at least 3.9, which is the oldest release that still has a current binary installer).
msg412854 - (view) Author: Zachary Ware (zach.ware) * (Python committer) Date: 2022-02-08 18:08
Also note that 3.6 is now EOL, so an upgrade is highly recommended anyway :)
msg412855 - (view) Author: German Salazar (salgerman) Date: 2022-02-08 18:15
I hear you, but I continue to need 3.6 for a bit longer.
I am on Linux, Centos 7; building from sources in a sandbox, no installation conflict with any else...

How do you confirm that the tarball indeed contains that it says? 

I build it and then I do "./python --version" and I get 3.6.8, instead of 3.6.15   

I also have 3.7, and 3.8 installs (I also need them) and working on installing 3.9 and 3.10
msg412857 - (view) Author: Zachary Ware (zach.ware) * (Python committer) Date: 2022-02-08 18:28
I confirmed by downloading a fresh copy of each, extracting, and looking at Include/patchlevel.h.  You could further check by downloading a 3.6.8 tarball and comparing it against the 3.6.15 tarball.

Is 3.6.8 the version you already have installed, and are you building with `./configure --enable-shared`?  If so, my best guess would be that your new `./python` binary is picking up the system `libpython3.6.so`.  Try `LD_LIBRARY_PATH=$(pwd) ./python --version`.
msg412858 - (view) Author: German Salazar (salgerman) Date: 2022-02-08 18:30
Pre-post-edit: you are right, just saw your answer as I was typing this one. 


Aaaahhhh....

./python --version

is not enough, I guess I need to properly setup PATH, LD_LIBRARY_PATH and possibly PKG_CONFIG_PATH.

Sorry for the bother, guys. All is good. My apologies and thank you very much for the super fast response, it prompted to question and double question what I was doing.
msg412887 - (view) Author: German Salazar (salgerman) Date: 2022-02-09 03:06
So, help me understand, please. 


if I use "--enable-shared":
the build produces a rather small python executable; but, 
the build produces a dynamic library, too
and the path to the dynamic library must be included into LD_LIBRARY_PATH for the python executable to work correctly.

if I do NOT use "--enable-shared"
the build produces a larger python executable; and,
it does not produce a dynamic library, but
it produces an static library.
Does this mean that I do not have to worry about setting up LD_LIBRARY_PATH?

In the non-shared, static case, I thought the static library would be inside the executable, but, funny enough, I noticed that the python executable is smaller than the static library, so...I am confused. 

I would like to have 3.6, next to 3.7 and 3.8 with minimal setup, thus the static route.

Please advise.
msg412888 - (view) Author: Zachary Ware (zach.ware) * (Python committer) Date: 2022-02-09 03:17
That's a question better suited to a forum such as the Users category of discuss.python.org, the python-list@python.org mailing list, or StackOverflow, not a bug tracker issue.
History
Date User Action Args
2022-04-11 14:59:55adminsetgithub: 90841
2022-02-09 03:17:22zach.waresetstatus: open -> closed
resolution: not a bug
messages: + msg412888
2022-02-09 03:06:04salgermansetstatus: closed -> open
type: behavior
messages: + msg412887

components: + Installation
resolution: not a bug -> (no value)
2022-02-08 18:46:48eric.smithsetstatus: open -> closed
resolution: not a bug
2022-02-08 18:30:13salgermansetstatus: closed -> open
resolution: not a bug -> (no value)
messages: + msg412858
2022-02-08 18:28:24zach.waresetstatus: open -> closed
resolution: not a bug
messages: + msg412857
2022-02-08 18:15:11salgermansetstatus: closed -> open
resolution: not a bug -> (no value)
messages: + msg412855
2022-02-08 18:08:49zach.waresetmessages: + msg412854
2022-02-08 18:06:11zach.waresetstatus: open -> closed

nosy: + eric.smith, zach.ware
messages: + msg412853

resolution: not a bug
stage: resolved
2022-02-08 18:05:06salgermansetnosy: - eric.smith
messages: + msg412852
2022-02-08 17:59:06eric.smithsetnosy: + eric.smith
messages: + msg412851
2022-02-08 17:56:07salgermansetversions: - Python 3.7
2022-02-08 17:55:55salgermancreate