Fix commit version in Cython package

This commit is contained in:
Bryan Weber 2023-05-07 14:28:25 -04:00 committed by Ray Speth
parent 6f228b0a53
commit 194cd1fa19

View File

@ -83,11 +83,13 @@ def replace_git_hash(target, source, env):
sdist(localenv.RecursiveInstall( sdist(localenv.RecursiveInstall(
"src", "src",
"#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", sdist(localenv.Command("src/base/global.cpp", "#src/base/global.cpp",
replace_git_hash)) 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 # This is the only bit of the clib that we need for the Python interface
clib_defs_target = sdist(localenv.Command( clib_defs_target = sdist(localenv.Command(
@ -106,6 +108,7 @@ include_target = sdist(localenv.RecursiveInstall(
"clib$", "clib$",
"ext$", "ext$",
r"config\.h\.in", r"config\.h\.in",
r"utils_utils\.h",
], ],
)) ))
localenv.Depends(clib_defs_target, include_target) localenv.Depends(clib_defs_target, include_target)