4 ms·
this is what I have used for the past few years. I put my unversioned requirements in a subdir and run this when I want to bump versions. #!/bin/bash -x WHEELH
by nicois 10y ago
this is what I have used for the past few years. I put my unversioned requirements in a subdir and run this when I want to bump versions.
#!/bin/bash -x
WHEELHOUSE="/usr/local/wheelhouse"
[ -d "$WHEELHOUSE" ] || ( sudo mkdir -p /usr/local/wheelhouse/ ; sudo chmod -R 0777 /usr/local/wheelhouse/ )
deactivate
set -e
cd .requirements
for reqfile in requirements*txt ; do
TEMPDIR="$(mktemp -d)"
virtualenv -ppython3 "$TEMPDIR"
. "$TEMPDIR"/bin/activate pip install -U pip
pip install -U wheel
pip wheel --find-links="$WHEELHOUSE" --wheel-dir="$WHEELHOUSE" -r $reqfile pip install --find-links="$WHEELHOUSE" -r $reqfile
pip freeze | grep -v "pkg-resources" | sort > "../$reqfile"
rm -rf "$TEMPDIR" done
wait