# HG changeset patch # User Franz Glasner # Date 1641739325 -3600 # Node ID 1b48ec3d648980c8d49af51151b949f7df7f7c2e # Parent 91e74fb1ea90685d8ca3a771579390e0566296ae Add file "BUILDING.txt" with some notes now to build and/or distribute diff -r 91e74fb1ea90 -r 1b48ec3d6489 BUILDING.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/BUILDING.txt Sun Jan 09 15:42:05 2022 +0100 @@ -0,0 +1,37 @@ +.. -*- coding: utf-8 -*- + +BUILDING +========== + +1. hg kwarchive __arch +2. cd __arch +3. Build the documentation. E.g. with + + (cd docs && gmake html) + + The documentation currently has to be built when the _speedups C extension + module is *not* available. + +4. python setup.py sdist + +5. python setup.py bdist_wheel --pure-only + +6. Optional: python setup.py bdist_wheel + +7. Binary package for Winwows: + + a) Make the Ninja build-file for your system: + + sh windows-dev/pc01/cross.sh + + b) Cross-compile with: + + ninja -f _build-win-amd64.ninja + + Needs currently LLVM-11. + + c) Make the resulting DLL available to setup.py: + + cd configmix && ln -s ../build/_builddir-win-amd64/out/_speedups.pyd _speedups.pyd + + d) python setup.py bdist_wheel --windows-cross-pack -p win_amd64