Skip to content

Commit

Permalink
DOC: Document creating the Windows binary wheel in scripts/README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
JanWielemaker committed Nov 25, 2024
1 parent 647f3b5 commit 8b0b8bf
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions scripts/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Building releases

## Update the version

- edit VERSION
- run `./scripts/newversion from the top dir.


## Upload a source wheel

Run `./scripts/pypi-upload`


## Build and upload a binary for Windows

- Install Python and SWI-Prolog in their default locations
- Install VS2022 or later
- Start the __x64__ version of the VS2020 developer command, normally
named `x64 Native Tools Command`.
- Download the source

git clone https://github.com/SWI-Prolog/packages-swipy swipy

- Build the package

py -m pip install .

- on success, build the distribution

py -m pip install --upgrade pip
py -m pip install --upgrade build
py -m build

- Upload the wheel created in `dist` using
[twine](https://pypi.org/project/twine/)

0 comments on commit 8b0b8bf

Please sign in to comment.