asdf-community / asdf-community/asdf-python

Module search path incorrectly includes system python installation

Open
#147 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
729
Forks
65
PR merge metrics
No merged PRs in 30d

Description

```
$ asdf install python 3.8.14
python-build 3.8.14 /home/sirianni/.asdf/installs/python/3.8.14
Downloading Python-3.8.14.tar.xz...
-> https://www.python.org/ftp/python/3.8.14/Python-3.8.14.tar.xz
Installing Python-3.8.14...
Installed Python-3.8.14 to /home/sirianni/.asdf/installs/python/3.8.14
```
```
$ /home/sirianni/.asdf/installs/python/3.8.14/bin/python -c 'import sys; print("\n".join(sys.path));'

/home/sirianni/.asdf/installs/python/3.8.14/lib/python38.zip
/home/sirianni/.asdf/installs/python/3.8.14/lib/python3.8
/home/sirianni/.asdf/installs/python/3.8.14/lib/python3.8/lib-dynload
/home/sirianni/.local/lib/python3.8/site-packages
/home/sirianni/.asdf/installs/python/3.8.14/lib/python3.8/site-packages
```

Note that `sys.path` incorrectly includes `/home/sirianni/.local/lib/python3.8/site-packages` which is from the system python installation.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.