Python virtual environment scripts.
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
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