summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/setup.py b/setup.py
index 0c78cb19..ad85633b 100755
--- a/setup.py
+++ b/setup.py
@@ -4,7 +4,8 @@ from distutils.core import setup, Extension
import os
-libs = ["amounts", "boost_python", "gmp"]
+defines = [('PYTHON_MODULE', 1)]
+libs = ["amounts", "boost_python", "gmp"]
setup(name = "Amounts",
version = "2.6.1",
@@ -13,6 +14,6 @@ setup(name = "Amounts",
author_email = "johnw@newartisans.com",
url = "http://www.newartisans.com/johnw/",
ext_modules = [
- Extension("amounts", ["amounts.cc"],
+ Extension("amounts", [os.path.join(os.environ['SRCDIR'], "amounts.cc")],
define_macros = [('PYTHON_MODULE', 1)],
libraries = libs)])