Improve standard templates for python packages
This commit is contained in:
parent
6595785e62
commit
c0f0bfc5b6
|
@ -18,6 +18,8 @@ pkgs.mkShell {
|
|||
|
||||
shellHook = ''
|
||||
export LD_LIBRARY_PATH="${pkgs.zlib}/lib:${pkgs.libgccjit}/lib"
|
||||
poetry lock --check > /dev/null || poetry lock
|
||||
poetry env use "$(command -v ${python}/bin/python)"
|
||||
[ ! -d "./.venv" ] && poetry install --sync
|
||||
source .venv/bin/activate
|
||||
'';
|
||||
|
|
|
@ -19,5 +19,6 @@ pkgs.mkShell {
|
|||
export LD_LIBRARY_PATH="${pkgs.zlib}/lib:${pkgs.libgccjit}/lib"
|
||||
python -m venv .venv
|
||||
source .venv/bin/activate
|
||||
pip list --outdated | grep -iE "^(pip|wheel)" > /dev/null && python -m pip install --upgrade pip wheel
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue