conditionalized the reference to xmlparse and xmltok from setup.py
This commit is contained in:
parent
2c7593ae29
commit
c715528f2f
2 changed files with 15 additions and 1 deletions
|
|
@ -78,12 +78,20 @@ if HAVE_BOOST_PYTHON
|
|||
|
||||
noinst_PROGRAMS = ledger.so
|
||||
|
||||
if READ_GNUCASH
|
||||
READ_GNUCASH_VALUE = true
|
||||
else
|
||||
READ_GNUCASH_VALUE = false
|
||||
endif
|
||||
|
||||
ledger.so: python.cc libledger.la
|
||||
CFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS) -L. -L.libs" \
|
||||
READ_GNUCASH="$(READ_GNUCASH_VALUE)" \
|
||||
python setup.py build --build-lib=.
|
||||
|
||||
install-exec-hook:
|
||||
CFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS) -L. -L.libs" \
|
||||
READ_GNUCASH="$(READ_GNUCASH_VALUE)" \
|
||||
python setup.py install --prefix=$(prefix)
|
||||
|
||||
endif
|
||||
|
|
|
|||
8
setup.py
8
setup.py
|
|
@ -2,7 +2,13 @@
|
|||
|
||||
from distutils.core import setup, Extension
|
||||
|
||||
libs = ["ledger", "boost_python", "gmp", "pcre", "xmlparse", "xmltok"]
|
||||
import os
|
||||
|
||||
libs = ["ledger", "boost_python", "gmp", "pcre"]
|
||||
|
||||
if os.environ.has_key ("READ_GNUCASH") and\
|
||||
os.environ["READ_GNUCASH"] == "true":
|
||||
libs.extend (["xmlparse", "xmltok"])
|
||||
|
||||
setup(name = "Ledger",
|
||||
version = "2.0b",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue