saghul / pythonz

Python installation manager supporting CPython, Stackless, PyPy and Jython
http://saghul.github.io/pythonz
MIT License
751 stars 69 forks source link

Fix sudo-pythonz and added CPython 3.6.4 #132

Closed aflyhorse closed 5 years ago

aflyhorse commented 6 years ago

The original PATH is not saved, leading to "bash not found"

[lunarshaddow@localhost pythonz]$ echo $PATH
/usr/local/pythonz/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/lunarshaddow/.local/bin:/home/lunarshaddow/bin

[lunarshaddow@localhost pythonz]$ sudo-pythonz list -a
/usr/bin/env: bash: No such file or directory

[lunarshaddow@localhost pythonz]$ /usr/local/pythonz/bin/pythonz list -a
# Available Python versions
  # cpython:
     2.4
     2.4.1
(abridge)

[lunarshaddow@localhost pythonz]$ sudo /usr/local/pythonz/bin/pythonz list -a
# Available Python versions
  # cpython:
     2.4
     2.4.1
(abridge)

Besides, add C Python 3.6.4, released on 2017-12-19. change README to invoke venv directly instead of pyvenv script, as per the official document said.

aflyhorse commented 5 years ago

Rebased.