Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F81136954
make-wheels.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
Wed, Sep 4, 09:24
Size
795 B
Mime Type
text/x-shellscript
Expires
Fri, Sep 6, 09:24 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
20444465
Attached To
rAKA akantu
make-wheels.sh
View Options
#!/usr/bin/env bash
set
-eo pipefail
set
+x
export
PLAT
=
manylinux2010_x86_64
source
/etc/profile
function
repair_wheel
{
wheel
=
"$1"
if
! auditwheel show
"$wheel"
;
then
echo
"Skipping non-platform wheel $wheel"
else
auditwheel repair
"$wheel"
--plat
"$PLAT"
fi
}
# Compile wheels
for
PYBIN in /opt/python/cp3*/bin;
do
if
"${PYBIN}/python"
--version | grep -q 3.11;
then
echo
"Skip python version 3.11"
continue
fi
ccache --zero-stats
echo
"${PYBIN}/pip"
wheel . --no-deps -w dist/
"${PYBIN}/pip"
wheel . --no-deps -w dist/
ccache --show-stats
done
export
LD_LIBRARY_PATH
=
$LD_LIBRARY_PATH
:
${
CI_AKANTU_INSTALL_PREFIX
}
/lib64
# Bundle external shared libraries into the wheels
for
whl in dist/*.whl;
do
echo
repair_wheel
"$whl"
repair_wheel
"$whl"
done
Event Timeline
Log In to Comment