setup_ledger.py needs to link against libgmp
This commit is contained in:
parent
6cfdd704a9
commit
612e94ceaa
2 changed files with 4 additions and 5 deletions
6
main.py
6
main.py
|
|
@ -10,15 +10,13 @@ def bar (str):
|
||||||
|
|
||||||
register_option ("hello", "h:", foo)
|
register_option ("hello", "h:", foo)
|
||||||
register_option ("goodbye", "g:", bar)
|
register_option ("goodbye", "g:", bar)
|
||||||
print process_arguments (sys.argv[1:])
|
args = process_arguments (sys.argv[1:])
|
||||||
process_environment (os.environ, "TEST_")
|
process_environment (os.environ, "TEST_")
|
||||||
|
|
||||||
sys.exit(0)
|
|
||||||
|
|
||||||
parser = TextualParser ()
|
parser = TextualParser ()
|
||||||
register_parser (parser)
|
register_parser (parser)
|
||||||
|
|
||||||
journal = Journal ()
|
journal = Journal ()
|
||||||
parse_journal_file (sys.argv[1], journal)
|
parse_journal_file (args[0], journal)
|
||||||
|
|
||||||
print journal[-1].payee
|
print journal[-1].payee
|
||||||
|
|
|
||||||
|
|
@ -11,5 +11,6 @@ setup(name = "Ledger",
|
||||||
ext_modules = [
|
ext_modules = [
|
||||||
Extension("ledger", ["pyledger.cc"],
|
Extension("ledger", ["pyledger.cc"],
|
||||||
define_macros = [('PYTHON_MODULE', None)],
|
define_macros = [('PYTHON_MODULE', None)],
|
||||||
libraries = ["amounts_bpy", "ledger_bpy", "boost_python",
|
libraries = ["amounts_bpy", "gmp",
|
||||||
|
"ledger_bpy", "boost_python",
|
||||||
"pcre", "xmlparse", "xmltok"])])
|
"pcre", "xmlparse", "xmltok"])])
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue