A pyenv
plugin, to make package cli, at runtime, using SAME python version when you install it. Aka static shim
.
$ env \
PYENV_VERSION=2.7.10/envs/some-outdated-cli \
pip install some-outdated-cli
$ export PYENV_VERSION=2.7.10/envs/some-outdated-cli
$ some-outdated-clisome-outdated-cli --help
Everytime call it, need to somehow setup environment.
Recommend, using with pyenv-virtualenv
.
$ git clone \
https://github.com/loynoir/pyenv-shim-version-lock.git \
$(pyenv root)/plugins/pyenv-shim-version-lock
Here is an exmaple using with pyenv-virtualenv
$ env \
PYENV_SHIM_VERSION_LOCK=y \
PYENV_VERSION=2.7.10/envs/some-outdated-cli \
pip install some-outdated-cli
# some-outdated-cli will auto under 2.7.10
$ some-outdated-cli --help
When PYENV_SHIM_VERSION_LOCK
is not set or is empty, generate 100% same shim.
$ env \
pip install some-NORMAL-cli
$ env \
PYENV_SHIM_VERSION_LOCK= \
pip install some-NORMAL-cli
etc/pyenv.d/rehash/envs.bash
| main code
src/index.sh
| library code
test/index.test.sh
| test library for bash and zsh
script/
| extended github/scripts-to-rule-them-all
MIT.