forked from python-bangladesh/website
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpeep.sh
More file actions
executable file
·26 lines (20 loc) · 788 Bytes
/
peep.sh
File metadata and controls
executable file
·26 lines (20 loc) · 788 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
set -eu
# Get pip version number
PIPVER=`pip --version | awk '{print $2}'`
ARGS=""
echo "peep.sh: Using pip $PIPVER"
# Add pip arguments that vary according to the version of pip, here:
case $PIPVER in
1.5*|6.*)
# Pip uses the wheel format packages by default in pip 1.5+.
# However in pip < 6.0+ wheel support is broken, and even with pip 6.0+
# we intentionally don't use the wheel packages, since otherwise each
# package in the requirements files would need multiple hashes.
echo "peep.sh: Wheel-using pip detected, so passing --no-use-wheel."
ARGS="--no-use-wheel"
;;
esac
# Add the version specific arguments to those passed on the command line.
python ./scripts/peep.py "$@" $ARGS
echo "peep.sh: Done!"