-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathconfig.sh
32 lines (29 loc) · 797 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
#!/usr/bin/env bash
# Define custom utilities
# Test for OSX with [ -n "$IS_OSX" ]
#function pre_build {
# if [ -n "$IS_OSX" ]; then
# if [ ${MB_PYTHON_VERSION} == 2.6 ]; then
# yes | pip uninstall pip
# easy_install pip==1.2.1
# fi
# fi
# pip --version
#}
function bdist_with_static_deps {
local abs_wheelhouse=$1
python setup.py clean
if ! [ -n "$IS_OSX" ]; then
CFLAGS="-O3 -mtune=generic -pipe -fPIC";export CFLAGS
fi
make wheel_static
cp dist/*.whl $abs_wheelhouse
}
function build_wheel {
build_wheel_cmd "bdist_with_static_deps" $@
}
function run_tests {
# Runs tests on installed distribution from an empty directory
python --version
python -c 'import sys; import lxml.etree, lxml.objectify'
}