mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-20 03:23:23 +08:00

Changes to setup.py: Allow specifying below dirs for clean setuptools build. Be default these dirs will be set automatically based on solution global configuration. - "--build-base" for build - "--dist-dir" for bdist_wheel - "--egg-base" for egg_info "--python-tag" is set based on current python major.minor version. bdist_zip will package symbol along with binary as they should always match. Package version is dynamically set: - Read 1st line of VERSION file as package version, if the file exists. Useful for release branch. - If no VERSION file, parse from pykdver.h, plus +g append commit SHA. "--pplat-name" accepts both win32 and x86, x64 win-amd64 and x64 due to VS naming convention. Changes to buildall.cmd Simplify batch command by put all python version and configs in array. Signed-off-by: Colin Xu <colin.xu@gmail.com>
19 lines
572 B
Batchfile
19 lines
572 B
Batchfile
@ECHO OFF
|
|
SETLOCAL EnableDelayedExpansion
|
|
|
|
set py_list=2.7 3.5 3.6 3.7 3.8 3.9 3.10 3.11
|
|
set plat_list=win32 x64
|
|
|
|
REM Build wheel and zip
|
|
REM py -<py version> setup.py bdist_wheel --plat-name=<plat-name> [bdist_zip]
|
|
REM py -<py version> setup.py bdist_wheel --plat-name=<plat-name> [--build-base=build_dir] [--dist-dir=bdist_dir] [--egg-base=egg_dir] [bdist_zip]
|
|
|
|
for %%a in (%py_list%) do (
|
|
for %%b in (%plat_list%) do (
|
|
set py_ver=%%a
|
|
set plat=%%b
|
|
py -!py_ver! setup.py bdist_wheel --plat-name=!plat! bdist_zip
|
|
)
|
|
)
|
|
exit
|