-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DOC: Document creating the Windows binary wheel in
scripts/README.md
- Loading branch information
1 parent
647f3b5
commit 8b0b8bf
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/) |