Skip to content

tak5633/VirtEnv

Repository files navigation

VirtEnv

Python virtual environment scripts.

Linux

Create symbolic links to pip.conf and requirements.txt.

ln -s /absolute/path/to/target/pip.conf pip.conf
ln -s /absolute/path/to/target/requirements.txt requirements.txt

Creating the virtual environment.

./Create.sh
# Optional: VirtEnv/bin/python -m pip install --upgrade pip
./Update.sh
source ./VirtEnv/bin/activate

Installing a new package.

./Install.sh [PackageName]

Capturing the virtual environment.

./Freeze.sh

pip.conf example:

[global]
cert = /absolute/path/to/TargetCert.crt

Windows

Create hard links to pip.conf and requirements.txt.

New-Item -ItemType HardLink -Path "pip.conf" -Target "D:\absolute\path\to\target\pip.conf"
New-Item -ItemType HardLink -Path "requirements.txt" -Target "D:\absolute\path\to\target\requirements.txt"

Creating the virtual environment.

./Create.ps1
# Optional: VirtEnv/Scripts/python.exe -m pip install --upgrade pip
./Update.ps1
./VirtEnv/Scripts/activate

Installing a new package.

./Install.ps1 [PackageName]

Capturing the virtual environment.

./Freeze.ps1

pip.conf example:

[global]
cert = D:\absolute\path\to\TargetCert.crt

About

Python virtual environment scripts.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published