diff options
author | Parménides GV <parmegv@sdf.org> | 2015-07-30 18:29:59 +0200 |
---|---|---|
committer | Parménides GV <parmegv@sdf.org> | 2015-08-03 21:20:24 +0200 |
commit | 638f3edb91ef8c6254d84a2eb083f725da2a878a (patch) | |
tree | a80682ae62498588f7d20a31150c736ed325c0bc /pkg/generate_wheels.sh | |
parent | 6ff2cf53bf57f7b0dcf24c7528504009f05fdb56 (diff) |
[feat] use wheels to install dependencies
generate_wheels uses $WHEELHOUSE to generate and store the wheels for
requirements.pip and requirements-testing.pip (if it exists).
pip_install_requirements.sh installs requirements.pip from them if
possible (if not, then it fetches them from pypi) or, if passed the
--testing flag, it installs requirements-testing.pip.
Diffstat (limited to 'pkg/generate_wheels.sh')
-rwxr-xr-x | pkg/generate_wheels.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/pkg/generate_wheels.sh b/pkg/generate_wheels.sh new file mode 100755 index 0000000..4cdc34e --- /dev/null +++ b/pkg/generate_wheels.sh @@ -0,0 +1,14 @@ +#!/bin/sh +# Generate wheels for dependencies +# For convenience, dirspec is allowed with insecure flags enabled. +# Use at your own risk. + +if [ "$WHEELHOUSE" = "" ]; then + WHEELHOUSE=$HOME/wheelhouse +fi + +pip wheel --wheel-dir $WHEELHOUSE pip +pip wheel --wheel-dir $WHEELHOUSE --allow-external dirspec --allow-unverified dirspec -r pkg/requirements.pip +if [ -f pkg/requirements-testing.pip ]; then + pip wheel --wheel-dir $WHEELHOUSE -r pkg/requirements-testing.pip +fi |