From 194cd1fa19b4aae09f51d8b018e189668a7815d5 Mon Sep 17 00:00:00 2001 From: Bryan Weber Date: Sun, 7 May 2023 14:28:25 -0400 Subject: [PATCH] Fix commit version in Cython package --- interfaces/python_sdist/SConscript | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/interfaces/python_sdist/SConscript b/interfaces/python_sdist/SConscript index c4aa2d2211..d9a8c16766 100644 --- a/interfaces/python_sdist/SConscript +++ b/interfaces/python_sdist/SConscript @@ -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( @@ -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)