Skip to content

Commit

Permalink
fix: strip epoch from SKBUILD_PROJECT_VERSION (#829)
Browse files Browse the repository at this point in the history
See #828. CMake
will not understand the epoch, so not including it. It's still in
`SKBUILD_PROJECT_FULL_VERSION`.

Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
  • Loading branch information
henryiii committed Jul 26, 2024
1 parent ae0ce3c commit 9771da4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/scikit_build_core/builder/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,9 @@ def configure(
canonical_name = name.replace("-", "_").replace(".", "_")
cache_config["SKBUILD_PROJECT_NAME"] = canonical_name
if version is not None:
cache_config["SKBUILD_PROJECT_VERSION"] = version.base_version
cache_config["SKBUILD_PROJECT_VERSION"] = ".".join(
str(v) for v in version.release
)
cache_config["SKBUILD_PROJECT_VERSION_FULL"] = str(version)

if limited_api is None:
Expand Down

0 comments on commit 9771da4

Please sign in to comment.