From 9d589b38f5cd9585edb4eebe615237a72f151f2a Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Wed, 1 Nov 2023 23:41:28 +0100 Subject: [PATCH] Different approach to exclude libgit2 for pymod --- setup.py | 1 - src/tl/tl/tlGit.cc | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 1e41400b3..cc195adb5 100644 --- a/setup.py +++ b/setup.py @@ -423,7 +423,6 @@ class Config(object): ("HAVE_CURL", 1), ("HAVE_EXPAT", 1), ("HAVE_PNG", 1), - ("HAVE_GIT2", 0), ("KLAYOUT_MAJOR_VERSION", self.major_version()), ("KLAYOUT_MINOR_VERSION", self.minor_version()), ("GSI_ALIAS_INSPECT", 1), diff --git a/src/tl/tl/tlGit.cc b/src/tl/tl/tlGit.cc index 12298d93f..4bbbcdee5 100644 --- a/src/tl/tl/tlGit.cc +++ b/src/tl/tl/tlGit.cc @@ -20,6 +20,7 @@ */ +#if defined(HAVE_GIT2) #include "tlGit.h" #include "tlFileUtils.h" @@ -396,3 +397,5 @@ GitObject::download_item (const std::string &url, const std::string &file, const } } + +#endif