diff --git a/xmlstarlet/xmlstarlet_build.py b/xmlstarlet/xmlstarlet_build.py index 5b9fca73..f4ded6dd 100644 --- a/xmlstarlet/xmlstarlet_build.py +++ b/xmlstarlet/xmlstarlet_build.py @@ -30,7 +30,11 @@ def _get_config(args, strip_prefix=""): SOURCES = [ os.path.relpath(s, ROOT_DIR) - for s in glob(os.path.join(PY_SOURCE_DIR, "**"), recursive=True) + for s in glob(os.path.join(PY_SOURCE_DIR)) + if s.endswith(".c") +] + [ + os.path.relpath(s, ROOT_DIR) + for s in glob(os.path.join(C_SOURCE_DIR)) if s.endswith(".c") ] @@ -43,7 +47,7 @@ def _get_config(args, strip_prefix=""): FFIBUILDER.set_source( "xmlstarlet._xmlstarlet", """ -#include "src/xmlstar.h" +#include "xmlstar.h" #include """, sources=SOURCES,