File tree 2 files changed +31
-0
lines changed
2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # This is script is to run inside a manylinux
4
+ # docker image, i.e.
5
+ # docker run -v `pwd`:/io quay.io/pypa/manylinux2014_x86_64 /io/build-wheel.sh
6
+ #
7
+ # Builds a pure python PyBaMM wheel, that is without the idaklu module extension.
8
+ # In the following, clining the pybind11 is omitted, resulting in the extension module
9
+ # compilation to be skipped.
10
+ # This pure python wheel is mostly intended to Windows support.
11
+
12
+ set -e -x
13
+ cd /io
14
+
15
+ # Build wheel!
16
+ # Using python 3.7 but the resulting wheel is not
17
+ # python version dependent
18
+ for PYBIN in /opt/python/cp37-cp37m/bin; do
19
+ " ${PYBIN} /python" setup.py bdist_wheel -d /io/wheelhouse
20
+ done
21
+
22
+ echo " ** --- All good ! --- **"
23
+ ls /io/wheelhouse
Original file line number Diff line number Diff line change @@ -19,6 +19,14 @@ ln -s /opt/python/cp37-cp37m/bin/cmake /usr/bin/cmake
19
19
# https://pypi.org/project/wget/
20
20
/opt/python/cp37-cp37m/bin/pip install wget
21
21
22
+ # Clone the pybind11 git repo next to the setup.py
23
+ # Required to build the idaklu extension module.
24
+ if [ ! -d " pybind11" ]
25
+ then
26
+ git clone https://github.com/pybind/pybind11.git
27
+ fi
28
+
29
+
22
30
# Download and build SuiteSparse/Sundials
23
31
# in KLU_module_deps/
24
32
/opt/python/cp37-cp37m/bin/python scripts/setup_KLU_module_build.py
You can’t perform that action at this time.
0 commit comments