Commit Graph

1 Commits

Author SHA1 Message Date
Colin Xu
c342479aed Rewrite setup.py
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>
2025-01-31 22:29:40 +08:00