The issue is that if `get_python_lib()` is called with `prefix='/usr/local'` 
argument then Ubuntu version returns: 
``` sh
$ /usr/bin/python3 -c "from distutils.sysconfig import 
*;print(get_python_lib(prefix='/usr/local'))"
/usr/local/lib/python3/dist-packages
```

while mainstream Python returns:
```sh
$ python3 -c "from distutils.sysconfig import 
*;print(get_python_lib(prefix='/usr/local'))"
/usr/local/lib/python3.6/site-packages
```

`sys.path` (in both Ubuntu and mainstream Python) doesn't contain 
`/usr/local/lib/python3/dist-packages` path, it contains 
`/usr/local/lib/python3.6/dist-packages` instead, so when `/usr/local` prefix 
is used things don't work:
```
$ PYTHONPATH='' /usr/bin/python3 -c "import sys; print(sys.path)"
['', '/usr/lib/python36.zip', '/usr/lib/python3.6', 
'/usr/lib/python3.6/lib-dynload', 
'/home/vital/.local/lib/python3.6/site-packages', 
'/usr/local/lib/python3.6/dist-packages', '/usr/lib/python3/dist-packages']
```

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1814653

Title:
   get_python_lib() returns path to python3 instead of python3.6

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python3-defaults/+bug/1814653/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to