##// END OF EJS Templates
contrib: add a bat file to build all of the wheels on Windows...
Matt Harbison -
r53162:ea9cbb0f stable
parent child Browse files
Show More
@@ -0,0 +1,37
1 @echo off
2
3 REM - This is a convenience script to build all of the wheels outside of the CI
4 REM - system. It requires the cibuildwheel package to be installed, and the
5 REM - executable on PATH, as well as `msgfmt.exe` from gettext and the x86,
6 REM - amd64, and arm64 compilers from VS BuildTools. These can be obtained by
7 REM - running `contrib/install-windows-dependencies.ps1`.
8
9 REM - None of the variable set here live past this script exiting.
10 setlocal
11
12 REM - Build translations; requires msgfmt.exe on PATH.
13 set MERCURIAL_SETUP_FORCE_TRANSLATIONS=1
14
15 REM - Prevent building pypy wheels, which is broken.
16 set CIBW_SKIP=pp*
17
18 REM - Disable warning about not being able to test without an arm64 runner.
19 set CIBW_TEST_SKIP=*-win_arm64
20
21
22 REM - arm64 support starts with py39, but the first arm64 installer wasn't
23 REM - available until py311, so skip arm64 on the older, EOL versions.
24 set CIBW_ARCHS=x86 AMD64
25 set CIBW_BUILD=cp38-* cp39-* cp310-*
26
27 cibuildwheel --output-dir dist/wheels
28
29 if %errorlevel% neq 0 exit /b %errorlevel%
30
31
32 set CIBW_ARCHS=x86 AMD64 ARM64
33 set CIBW_BUILD=cp311-* cp312-* cp313-*
34
35 cibuildwheel --output-dir dist/wheels
36
37 if %errorlevel% neq 0 exit /b %errorlevel%
@@ -93,5 +93,6 Keep python3 tests sorted:
93 Keep Windows line endings in check
93 Keep Windows line endings in check
94
94
95 $ testrepohg files 'set:eol(dos)'
95 $ testrepohg files 'set:eol(dos)'
96 contrib/packaging/build-windows-wheels.bat
96 contrib/win32/hg.bat
97 contrib/win32/hg.bat
97 contrib/win32/mercurial.ini
98 contrib/win32/mercurial.ini
General Comments 0
You need to be logged in to leave comments. Login now