wesclemens / python_modules

Autoloader for python virtual environment in python_modules folder

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

python_modules

This is an experiment to make Python virtual environments created by the Python venv module behave like Node.js npm environments.

Installation

The virtual environment autoloader is executed via the usercustomize module being placed the users site-packages.

Run the following commands to install the autoloader hook:

mkdir -p $(python -m site --user-site)
curl https://raw.githubusercontent.com/wesclemens/python_modules/master/usercustomize.py > $(python -m site --user-site)/usercustomize.py

Initialize Virtual Environments

cd <my_project>
python -m venv python_modules

Any python command ran from <my_project> directory will use python_modules as its site-packages.

About

Autoloader for python virtual environment in python_modules folder


Languages

Language:Python 100.0%