Skip to content

Commit

Permalink
adding some documentation for the docker part #2 #3
Browse files Browse the repository at this point in the history
  • Loading branch information
behrisch committed Mar 1, 2024
1 parent 860817b commit 98ab263
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tools/build_config/build_wheels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ for py in /opt/python/cp3[1789]*; do
$py/bin/python -m build --wheel tools -o dist
auditwheel repair dist/libsumo*.whl
done
# clean up all temporary files except for _skbuild
rm -rf tools/*.egg-info tools/build_config/*.egg-info tools/build tools/libsumo/data pyproject.toml setup.py tools/setup.py
chmod 777 dist wheelhouse
chmod -R a+w _skbuild
# the resulting wheels are in wheelhouse but we keep also the dist and the _skbuild dir for inspection
# we make everything writable so that others can clean up
chmod -R a+w _skbuild dist wheelhouse
2 changes: 2 additions & 0 deletions tools/build_config/dailyUpdateMakeGCC.sh
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ if test ${FILEPREFIX: -2} == "M1"; then
python3 -m build --wheel tools -o dist > $WHEELLOG 2>&1
python3 -c 'import os,sys; v="cp%s%s"%sys.version_info[:2]; os.rename(sys.argv[1], sys.argv[1].replace("%s-%s"%(v,v), "py2.py3-none"))' dist/eclipse_sumo-*
mv dist dist_native # just as backup
# the docker script will create _skbuild, dist and wheelhouse dir owned by root but writable for everyone
# we only need wheelhouse, the rest is for inspecting if errors occur
docker run --rm -v $PWD:/opt/sumo --workdir /opt/sumo manylinux2014_aarch64 tools/build_config/build_wheels.sh $HTTPS_PROXY >> $WHEELLOG 2>&1
fi
# Linux x64 wheels
Expand Down

0 comments on commit 98ab263

Please sign in to comment.