Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

💠 A plugin that makes pyenv transparently aware of a virtual environment created using pyenv-virtualenv

License

Notifications You must be signed in to change notification settings

jamieconnolly/pyenv-virtualenv-ext

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyenv-virtualenv-ext

build-status-image license-image

pyenv-virtualenv-ext is a pyenv plugin that hooks into pyenv which to make itself transparently aware of the virtual environment specified inside a .python-venv file.

This means you don't have to add eval "$(pyenv virtualenv-init -)" to your profile, or manually activate the virtual environment.

See the list of releases for changes in each version.

Installation

Installing as a pyenv plugin (recommended)

Make sure you have the latest pyenv and pyenv-virtualenv versions installed, then run:

git clone https://github.com/jamieconnolly/pyenv-virtualenv-ext.git ~/.pyenv/plugins/pyenv-virtualenv-ext

This will install the latest development version of this plugin into the ~/.pyenv/plugins/pyenv-virtualenv-ext directory. From that directory, you can check out a specific release tag. To update the plugin, run git pull to download the latest changes.

Installing as a standalone program (advanced)

Make sure you have the latest pyenv and pyenv-virtualenv versions installed, then run:

git clone https://github.com/jamieconnolly/pyenv-virtualenv-ext.git
cd pyenv-virtualenv-ext
./install.sh

This will install the plugin into /usr/local. If you do not have write permission to /usr/local, you will need to run sudo ./install.sh instead. You can install to a different prefix by setting the PREFIX environment variable.

To update the plugin after it has been installed, run git pull in your cloned copy of the repository, then re-run the install script.

Installing with Homebrew (for OS X users)

Mac users can install the plugin with the Homebrew package manager.

This is the recommended method of installation if you installed pyenv with Homebrew.

brew tap jamieconnolly/formulae
brew install pyenv-virtualenv-ext

Or, if you would like to install the latest development release:

brew tap jamieconnolly/formulae
brew install --HEAD pyenv-virtualenv-ext

Usage

Just add the name of the virtual environment to a .python-venv file in your project and that's it, you're good to go!

License

© 2016 Jamie Connolly. Released under the MIT License.

About

💠 A plugin that makes pyenv transparently aware of a virtual environment created using pyenv-virtualenv

Resources

License

Stars

Watchers

Forks

Packages

No packages published