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
|
#!/bin/sh -e
read -r pymaj pymin <<EOF
$(python -c 'import sys; print(sys.version_info.major, sys.version_info.minor)')
EOF
./bootstrap.sh \
--prefix="$1/usr" \
--without-icu
for action in stage install; do
./b2 $action \
variant=release \
threading=multi \
link=shared \
python="$pymaj.$pymin" \
cflags="$CFLAGS -O3" \
cxxflags="$CXXFLAGS -std=c++14 -O3" \
linkflags="$LDFLAGS" \
--disable-icu boost.locale.icu=off \
--without-mpi \
--without-context \
--without-coroutine \
--without-fiber \
--without-stacktrace
done
# https://github.com/boostorg/python/issues/203#issuecomment-391477685
ln -s "/usr/lib/libboost_python$pymaj$pymin.so" "$1/usr/lib/libboost_python$pymaj.so"
ln -s "/usr/lib/libboost_numpy$pymaj$pymin.so" "$1/usr/lib/libboost_numpy$pymaj.so"
|