Improve standard templates for python packages

This commit is contained in:
Evie Litherland-Smith 2023-04-03 13:29:15 +01:00
parent 6595785e62
commit c0f0bfc5b6
2 changed files with 3 additions and 0 deletions

View file

@ -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
'';

View file

@ -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
'';
}