forked from piskvorky/gensim
-
Notifications
You must be signed in to change notification settings - Fork 4
/
config.sh
executable file
·38 lines (34 loc) · 930 Bytes
/
config.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
32
33
34
35
36
37
38
# Define custom utilities
function pre_build {
# Any stuff that you need to do before you start building the wheels
# Runs in the root directory of this repository.
:
}
function pip_opts {
[ -n "$MANYLINUX_URL" ] && echo "--find-links $MANYLINUX_URL"
echo "-v"
}
function build_wheel_cmd {
set -x
local cmd=${1:-pip_wheel_cmd}
local wheelhouse=$(abspath ${WHEEL_SDIR:-wheelhouse})
start_spinner
if [ -n "$(is_function "pre_build")" ]; then pre_build; fi
stop_spinner
if [ -n "$BUILD_DEPENDS" ]; then
pip install $(pip_opts) $BUILD_DEPENDS
fi
pip --version
pip freeze
$cmd $wheelhouse
repair_wheelhouse $wheelhouse
set +x
}
function run_tests {
# Runs tests on installed distribution from an empty directory
set -x
python --version
pip freeze
pytest -rfxEXs --durations=20 --disable-warnings --showlocals --pyargs gensim
set +x
}