-
Notifications
You must be signed in to change notification settings - Fork 6
/
config.sh
28 lines (25 loc) · 788 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
# Define custom utilities
# Test for OSX with [ -n "$IS_OSX" ]
function pre_build {
# Any stuff that you need to do before you start building the wheels
# Runs in the root directory of this repository.
if [ -n "$IS_OSX" ]; then
export CC=clang
export CXX=clang++
export CFLAGS="-fPIC -O3 -arch i386 -arch x86_64 -g -DNDEBUG -mmacosx-version-min=10.6"
else
yum install -y pcre-devel swig cmake subversion expat-devel
fi
}
function build_wheel {
# Set default building method to pip
build_bdist_wheel $@
}
function run_tests {
# Runs tests on installed distribution from an empty directory
export NOSE_PROCESS_TIMEOUT=600
export NOSE_PROCESSES=0
echo "OS X? $IS_OSX"
cp ../test_libsbml.py .
nosetests -v
}