Skip to content

Commit

Permalink
Fix commit version in Cython package
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanwweber authored and speth committed May 9, 2023
1 parent 6f228b0 commit 194cd1f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion interfaces/python_sdist/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,13 @@ def replace_git_hash(target, source, env):
sdist(localenv.RecursiveInstall(
"src",
"#src",
exclude=["fortran", "matlab", "clib", r"global\.cpp", "SCons.*"],
exclude=["fortran", "matlab", "clib", r"global\.cpp", "SCons.*", r"canteraStatic\.cpp"],
))

sdist(localenv.Command("src/base/global.cpp", "#src/base/global.cpp",
replace_git_hash))
sdist(localenv.Command("include/cantera/cython/utils_utils.h", "#include/cantera/cython/utils_utils.h",
replace_git_hash))

# This is the only bit of the clib that we need for the Python interface
clib_defs_target = sdist(localenv.Command(
Expand All @@ -106,6 +108,7 @@ include_target = sdist(localenv.RecursiveInstall(
"clib$",
"ext$",
r"config\.h\.in",
r"utils_utils\.h",
],
))
localenv.Depends(clib_defs_target, include_target)
Expand Down

0 comments on commit 194cd1f

Please sign in to comment.