mirror of https://github.com/KLayout/klayout.git
tested script for linux32 as well.
Also added +x permission to fix_wheel
This commit is contained in:
parent
f8502adb32
commit
00c28d4a08
|
|
@ -113,13 +113,25 @@ for PYBIN in /opt/python/*/bin; do
|
|||
done
|
||||
|
||||
# Bundle external shared libraries into the wheels via auditwheel
|
||||
for whl in /persist/wheelhouse/*linux_x86_64.whl; do
|
||||
for whl in /persist/wheelhouse/*linux_*.whl; do
|
||||
auditwheel repair "$whl" -w /persist/wheelhouse/
|
||||
done
|
||||
|
||||
# Fix each wheel generated by auditwheel
|
||||
for whl in /persist/wheelhouse/*manylinux1_x86_64.whl; do
|
||||
for whl in /persist/wheelhouse/*manylinux1_*.whl; do
|
||||
./ci-scripts/docker/fix_wheel.sh "$whl"
|
||||
done
|
||||
|
||||
# Install packages and test
|
||||
TEST_HOME=/persist/klayout/testdata
|
||||
for PYBIN in /opt/python/*/bin/; do
|
||||
"${PYBIN}/pip" install klayout --no-index -f /persist/wheelhouse
|
||||
"${PYBIN}/python" $TEST_HOME/pymod/import_db.py
|
||||
"${PYBIN}/python" $TEST_HOME/pymod/import_rdb.py
|
||||
"${PYBIN}/python" $TEST_HOME/pymod/import_tl.py
|
||||
|
||||
```
|
||||
|
||||
I tested step 1-5 with both quay.io/pypa/manylinux1_x86_64 and quay.io/pypa/manylinux1_i686. So far the only failure was with `cp27-cp27mu` which gave this import error:
|
||||
|
||||
`ImportError: /opt/python/cp27-cp27mu/lib/python2.7/site-packages/klayout/.libs/lib_pya.so: undefined symbol: PyUnicodeUCS2_AsUTF8String`
|
||||
|
|
|
|||
|
|
@ -19,17 +19,20 @@ for PYBIN in /opt/python/*/bin; do
|
|||
done
|
||||
|
||||
# Bundle external shared libraries into the wheels via auditwheel
|
||||
for whl in /persist/wheelhouse/*linux_x86_64.whl; do
|
||||
for whl in /persist/wheelhouse/*linux_*.whl; do
|
||||
auditwheel repair "$whl" -w /persist/wheelhouse/
|
||||
done
|
||||
|
||||
# Fix each wheel generated by auditwheel
|
||||
for whl in /persist/wheelhouse/*manylinux1_x86_64.whl; do
|
||||
for whl in /persist/wheelhouse/*manylinux1_*.whl; do
|
||||
./ci-scripts/docker/fix_wheel.sh "$whl"
|
||||
done
|
||||
|
||||
# Install packages and test
|
||||
TEST_HOME=/persist/klayout/testdata
|
||||
for PYBIN in /opt/python/*/bin/; do
|
||||
"${PYBIN}/pip" install klayout --no-index -f /io/wheelhouse
|
||||
"${PYBIN}/python" -m unittest testdata/pymod/import_db.py testdata/pymod/import_rdb.py testdata/pymod/import_tl.py
|
||||
"${PYBIN}/pip" install klayout --no-index -f /persist/wheelhouse
|
||||
"${PYBIN}/python" $TEST_HOME/pymod/import_db.py
|
||||
"${PYBIN}/python" $TEST_HOME/pymod/import_rdb.py
|
||||
"${PYBIN}/python" $TEST_HOME/pymod/import_tl.py
|
||||
done
|
||||
|
|
|
|||
Loading…
Reference in New Issue