Python plugin for the asdf version manager Forked from https://github.com/asdf-community/asdf-python Adds PYTHON_CONFIGURE_OPTS="--enable-shared" when building to create a shared python library.
Find a file
Daniel Perez 534a6212a4
Merge pull request #55 from likwid/master
Add clarification to documentation
2019-05-16 14:49:45 +01:00
bin default-eggs -> default-python-packages 2018-09-24 21:30:16 +00:00
.gitignore Add logic to update pyenv every hour 2018-07-14 11:40:07 +09:00
.travis.yml fix travis by catering for the renamed github repo 2018-12-02 23:48:05 +01:00
LICENSE Add LICENSE 2017-03-27 09:04:39 -07:00
README.md Fix documentation error 2019-05-15 15:22:41 -07:00

asdf-python

Build Status

Python plugin for asdf version manager

Install

asdf plugin-add python https://github.com/danhper/asdf-python.git

Use

Check asdf readme for instructions on how to install & manage versions of Python. Please make sure you have the required system dependencies installed before trying to install Python.

Under the hood, asdf-python uses python-build to build and install Python, check its README for more information about build options and the common build problems wiki page for any issues encountered during installation of python versions.

Using multiple versions of Python

A common request for Python is being able to use the python2 and python3 commands without needing to switch version. This can be achieved by setting multiple versions of Python, for example with

asdf global python 3.6.2 2.7.13

This feature is experimental but should be working well enough for most use cases. Incidentally, the first python version you install will claim python. With the above example:

python -V
Python 3.6.3

python3 -V
Python 3.6.3

python2 -V
Python 2.7.13

In some cases, you might want python2 and python3 to co-exist, but python needs to point at a specific python version. The order of python versions is what controls this.

Pip installed modules and binaries

If you use pip to install a module like ipython that has a binaries. You will need to run asdf reshim python for the binary to be in your path.