get_python_lib() returns path to python3 instead of python3.6
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python3-defaults (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Python version is Python 3.6.7 (default, Oct 22 2018, 11:32:17)
Ubuntu 18.04.01
When I call get_python_lib() function to get the Python lib path to install a module it returns '/usr/lib/
python3 -c "from distutils.sysconfig import *;print(
This is because the source code '/usr/lib/
Code:
------------
if os.name == "posix":
libpython = os.path.
if standard_lib:
return libpython
elif (is_default_prefix and
return os.path.
------------
However, this code does not present in the original cpython code 3.6.7:
https:/
Is it the right behavior?
Why the get_python_lib() result should depend on PYTHONUSERBASE and VIRTUAL_ENV and points to python3 instead of python3.6
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: python3 3.6.7-1~18.04
ProcVersionSign
Uname: Linux 4.15.0-44-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.3
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Tue Feb 5 12:41:28 2019
InstallationDate: Installed on 2018-09-06 (151 days ago)
InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
SourcePackage: python3-defaults
UpgradeStatus: No upgrade log present (probably fresh install)
Status changed to 'Confirmed' because the bug affects multiple users.