Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F121794030
docker_build_all.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Jul 13, 23:14
Size
1 KB
Mime Type
text/x-shellscript
Expires
Tue, Jul 15, 23:14 (2 d)
Engine
blob
Format
Raw Data
Handle
27392174
Attached To
rTMDIST manylinux
docker_build_all.sh
View Options
#!/usr/bin/env bash
set
-u -x -e
cd
/app/tamaas
printf
'build_static_lib="True"\nbackend="cpp"\nverbose="true"\nstrip_info="true"\n'
> build-setup.conf
for
PYROOT in /opt/python/*;
do
MAJOR
=
$(
$PYROOT
/bin/python --version 2>&1 | cut -d
" "
-f 2 | cut -d . -f 1
)
MINOR
=
$(
$PYROOT
/bin/python --version 2>&1 | cut -d
" "
-f 2 | cut -d . -f 2
)
# Skip Python 2
[
$MAJOR
-eq 2
]
&&
continue
# Compile
scons -j4
py_exec
=
"$PYROOT/bin/python$MAJOR"
backend
=
cpp
fftw_threads
=
none | tee compile.log
# Link fftw statically
grep
'build-release/python/tamaas/_tamaas'
compile.log
\
| sed -e
's/lfftw3/l:libfftw3.a/'
\
| bash
TAG
=
$(
basename
$PYROOT
| cut -d
"-"
-f 1
)
# Create wheel
pushd
build-release/python
$PYROOT
/bin/python setup.py bdist_wheel
\
--python-tag
$TAG
\
--plat-name manylinux2010_x86_64
\
-d /dist/wheels/
popd
rm -rf build-release/python
done
for
wheel in /dist/wheels/*.whl;
do
auditwheel repair
$wheel
-w /dist/wheelhouse
done
Event Timeline
Log In to Comment