Skip to content

Commit

Permalink
Fix python tests when building from tarball.
Browse files Browse the repository at this point in the history
  • Loading branch information
jralls committed Dec 16, 2017
1 parent 5da9e2f commit 70fe66c
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/optional/python-bindings/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -109,18 +109,23 @@ sqlite3test_SOURCES = sqlite3test.c
sqlite3test_LDADD = ${_gnucash_core_c_la_LIBADD}
sqlite3test_CPPFLAGS = ${_gnucash_core_c_la_CPPFLAGS}

PYTHON_LINK_FILES = \
$(pkgpyexec_DATA)
PYTHON_GNUCASH_LINK_FILES = $(pkgpyexec_DATA)

if BUILDING_FROM_VCS
PYTHON_LINK_FILES = $(filter-out gnucash_core_c.py,${pkgpyexec_DATA})
else
PYTHON_LINK_FILES = $(pkgpyexec_DATA)
endif

.py-links:$(PYTHON_LINK_FILES)
$(RM) -rf gnucash
mkdir -p gnucash
if GNUCASH_SEPARATE_BUILDDIR
for X in $(filter-out gnucash_core_c.py,${PYTHON_LINK_FILES}) ; do \
for X in ${PYTHON_LINK_FILES} ; do \
$(LN_S) -f ${srcdir}/$$X . ; \
done
endif
( cd gnucash; for file in $(PYTHON_LINK_FILES) ; do \
( cd gnucash; for file in $(PYTHON_GNUCASH_LINK_FILES) ; do \
$(LN_S) -f ../$$file .; \
done )

Expand Down

0 comments on commit 70fe66c

Please sign in to comment.