-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_pex.sh
executable file
·31 lines (29 loc) · 1.06 KB
/
build_pex.sh
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
27
28
29
30
31
#!/bin/bash
shebang="/usr/bin/env python"
# -r : recreate virtualenv
# -o : output file
# -c : console_script entry point
# -v : verbose
#
# -f PATH/URL, --find-links=PATH/URL, --repo=PATH/URL
# Additional repository path (directory or URL) to look
# for requirements.
# --python-shebang=PYTHON_SHEBANG
# The exact shebang (#!...) line to add at the top of
# the PEX file minus the #!. This overrides the default
# behavior, which picks an environment python
# interpreter compatible with the one used to build the
# PEX file.
#
# More about interpreter and shebang options:
# https://github.com/pantsbuild/pex/issues/4
# https://github.com/pantsbuild/pex/issues/53
#
PEX_VERBOSE=5 \
pex \
-r requirements-pex.txt \
-f dist \
-o "ctm" \
-c ctm \
--python-shebang="$shebang" \
-v