Skip to content
This repository has been archived by the owner. It is now read-only.

doloopwhile/pyenv-register

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
bin
 
 
 
 
 
 

pyenv-register

pyenv-register is a pyenv plugin to use system installed Python.

Installing versions of python pyenv install takes longer time than package management of system (like apt-get, yum).

pyenv-register import system installed python to pyenv environment.

Installation

Install as a pyenv plugin

$ git clone https://github.com/doloopwhile/pyenv-register.git $(pyenv root)/plugins/pyenv-register
$ exec "$SHELL"

Usage

Register python of package management system

$ sudo apt-get install -y python3.3  # install by package management system

$ /usr/bin/python3.3 --version
Python 3.3.2+

$ pyenv register /usr/bin/python3.3

$ pyenv versions
* system (set by /home/xxxx/.pyenv/version)
  system-3.3.2

A envrionment named system-x.x.x will be created. The environment contains system installed libraries.

$ sudo apt-get install -y python3-lxml

$ pyenv register /usr/bin/python3.3

$ pyenv shell system-3.3.2

$ pip freeze | grep lxml
lxml==3.2.0

About

Pyenv plugin to use system installed Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages