Sorry, I already had PYTHONPATH exported in my env, and as I said I
wasn't able to test this on buildbot.
---
 Makefile.am |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 4a4b9bf..582ba87 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -818,7 +818,8 @@ htools/Ganeti/HTools/Version.hs: 
htools/Ganeti/HTools/Version.hs.in vcs-version
 
 htools/Ganeti/Constants.hs: htools/Ganeti/Constants.hs.in \
        lib/constants.py lib/_autoconf.py $(CONVERT_CONSTANTS)
-       set -e; { cat $< ; $(CONVERT_CONSTANTS); } > $@
+       set -e; \
+       { cat $< ; PYTHONPATH=$(abs_top_srcdir) $(CONVERT_CONSTANTS); } > $@
 
 lib/_autoconf.py: Makefile vcs-version | lib/.dir
        set -e; \
-- 
1.7.3.1

Reply via email to