-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_wheels.bat
More file actions
88 lines (77 loc) · 2.09 KB
/
Copy pathbuild_wheels.bat
File metadata and controls
88 lines (77 loc) · 2.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
@echo off
REM Build binary wheels for all Python versions
REM Users will install pre-compiled wheels - no compilation needed!
echo ======================================
echo Building FluidX3D Binary Wheels
echo ======================================
echo.
REM Clean previous builds
if exist build rmdir /s /q build
if exist dist rmdir /s /q dist
if exist *.egg-info rmdir /s /q *.egg-info
echo Cleaned previous builds
echo.
REM Find all installed Python versions and build wheels
REM Note: You need to have each Python version installed!
echo Checking for Python installations...
echo.
REM Try Python 3.11
py -3.11 --version 2>nul
if %errorlevel% == 0 (
echo Building wheel for Python 3.11...
py -3.11 -m pip install --upgrade build wheel
py -3.11 -m build --wheel
echo.
) else (
echo Python 3.11 not found, skipping...
)
REM Try Python 3.12
py -3.12 --version 2>nul
if %errorlevel% == 0 (
echo Building wheel for Python 3.12...
py -3.12 -m pip install --upgrade build wheel
py -3.12 -m build --wheel
echo.
) else (
echo Python 3.12 not found, skipping...
)
REM Try Python 3.13
py -3.13 --version 2>nul
if %errorlevel% == 0 (
echo Building wheel for Python 3.13...
py -3.13 -m pip install --upgrade build wheel
py -3.13 -m build --wheel
echo.
) else (
echo Python 3.13 not found, skipping...
)
REM Try Python 3.14
py -3.14 --version 2>nul
if %errorlevel% == 0 (
echo Building wheel for Python 3.14...
py -3.14 -m pip install --upgrade build wheel
py -3.14 -m build --wheel
echo.
) else (
echo Python 3.14 not found, skipping...
)
echo.
echo ======================================
echo Build Complete!
echo ======================================
echo.
echo Binary wheels created in dist/:
dir /b dist\*.whl
echo.
echo These are PRE-COMPILED and ready to install!
echo Users do NOT need Visual Studio!
echo.
echo To upload to Test PyPI (wheels only):
echo python -m twine upload --repository testpypi dist/*.whl
echo.
echo To upload to PyPI (wheels only):
echo python -m twine upload dist/*.whl
echo.
echo DO NOT upload the .tar.gz file!
echo.
pause