@@ -29,35 +29,21 @@ CMAKE=/usr/bin/cmake3
2929# Build wheels here.
3030for PYV in 36 27; do
3131 PYDIR=/opt/python/cp${PYV} -cp${PYV} m
32- PYVER=$( basename $PYDIR )
33- mkdir -p $PYVER
34- (
35- cd $PYVER
36- echo " Building using $PYDIR in $PYVER "
37- PYTHON=$( ls $PYDIR /bin/python? .? )
38- if [ " $PYV " -eq 27 ]; then
39- $PYTHON -m pip install numpy==1.16
40- $PYTHON -m pip install matplotlib==2.2.3
41- else
42- $PYTHON -m pip install numpy twine
43- $PYTHON -m pip install matplotlib
44- fi
45- $PYTHON -m pip install twine
46- $PYTHON -m pip uninstall pymoose -y || echo " No pymoose"
47- git pull || echo " Failed to pull $BRANCH "
48- $CMAKE -DPYTHON_EXECUTABLE=$PYTHON \
49- -DGSL_STATIC_LIBRARIES=$GSL_STATIC_LIBS \
50- -DVERSION_MOOSE=$VERSION \
51- ${MOOSE_SOURCE_DIR}
52- make $MAKEOPTS
53-
54- # Now build bdist_wheel
55- cd python
56- cp setup.cmake.py setup.py
57- $PYTHON -m pip wheel . -w $WHEELHOUSE
58- echo " Content of WHEELHOUSE"
59- ls -lh $WHEELHOUSE /* .whl
60- )
32+ cd $MOOSE_SOURCE_DIR
33+ echo " Building using $PYDIR in $PYVER "
34+ PYTHON=$( ls $PYDIR /bin/python? .? )
35+ if [ " $PYV " -eq 27 ]; then
36+ $PYTHON -m pip install numpy==1.16
37+ $PYTHON -m pip install matplotlib==2.2.3
38+ else
39+ $PYTHON -m pip install numpy
40+ $PYTHON -m pip install matplotlib
41+ fi
42+ $PYTHON -m pip install wheel
43+ $PYTHON setup.py build --with-gsl-static
44+ $PYTHON setup.py bdist_wheel -w $WHEELHOUSE
45+ echo " Content of WHEELHOUSE"
46+ ls -lh $WHEELHOUSE /* .whl
6147done
6248
6349# List all wheels.
0 commit comments