summaryrefslogtreecommitdiff
path: root/setup.py
blob: c3267347e10ba9f707ba9a00daae9d69afe6ee90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env python

from distutils.core import setup, Extension

import os
import string

defines = [('PYTHON_MODULE', 1)]
if os.environ.has_key("DEBUG_LEVEL"):
    defines.extend ([('DEBUG_LEVEL', os.environ["DEBUG_LEVEL"])])

libs = os.environ["PYLIBS"].split()

setup(name         = "Ledger",
      version      = "3.0",
      description  = "Ledger Accounting Library",
      author       = "John Wiegley",
      author_email = "johnw@newartisans.com",
      url          = "http://johnwiegley.com/",
      ext_modules  = [
	Extension("ledger", ["pyledger.cc"],
		  define_macros = defines, libraries = libs)])