Mercurial > hgrepos > Python > libs > ConfigMix
comparison BUILDING.txt @ 591:1b48ec3d6489
Add file "BUILDING.txt" with some notes now to build and/or distribute
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sun, 09 Jan 2022 15:42:05 +0100 |
| parents | |
| children | e8ff899c363c |
comparison
equal
deleted
inserted
replaced
| 590:91e74fb1ea90 | 591:1b48ec3d6489 |
|---|---|
| 1 .. -*- coding: utf-8 -*- | |
| 2 | |
| 3 BUILDING | |
| 4 ========== | |
| 5 | |
| 6 1. hg kwarchive __arch | |
| 7 2. cd __arch | |
| 8 3. Build the documentation. E.g. with | |
| 9 | |
| 10 (cd docs && gmake html) | |
| 11 | |
| 12 The documentation currently has to be built when the _speedups C extension | |
| 13 module is *not* available. | |
| 14 | |
| 15 4. python setup.py sdist | |
| 16 | |
| 17 5. python setup.py bdist_wheel --pure-only | |
| 18 | |
| 19 6. Optional: python setup.py bdist_wheel | |
| 20 | |
| 21 7. Binary package for Winwows: | |
| 22 | |
| 23 a) Make the Ninja build-file for your system: | |
| 24 | |
| 25 sh windows-dev/pc01/cross.sh | |
| 26 | |
| 27 b) Cross-compile with: | |
| 28 | |
| 29 ninja -f _build-win-amd64.ninja | |
| 30 | |
| 31 Needs currently LLVM-11. | |
| 32 | |
| 33 c) Make the resulting DLL available to setup.py: | |
| 34 | |
| 35 cd configmix && ln -s ../build/_builddir-win-amd64/out/_speedups.pyd _speedups.pyd | |
| 36 | |
| 37 d) python setup.py bdist_wheel --windows-cross-pack -p win_amd64 |
