File: build_test_ext.sh

package info (click to toggle)
python-threadpoolctl 3.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 356 kB
  • sloc: python: 1,447; sh: 189; ansic: 11; makefile: 2
file content (22 lines) | stat: -rwxr-xr-x 522 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash

set -xe

if [[ "$OSTYPE" == "linux-gnu"* ]]; then
    pushd tests/_pyMylib
    rm -rf *.so *.o
    gcc -c -Wall -Werror -fpic -o my_threaded_lib.o my_threaded_lib.c
    gcc -shared -o my_threaded_lib.so my_threaded_lib.o
    popd
fi

pushd tests/_openmp_test_helper
rm -rf *.c *.so *.dylib build/
python setup_inner.py build_ext -i
python setup_outer.py build_ext -i

# skip scipy required extension if no numpy
if [[ "$NO_NUMPY" != "true" ]]; then
    python setup_nested_prange_blas.py build_ext -i
fi
popd