diff options
author | David Sommerseth <davids@redhat.com> | 2009-06-11 13:41:18 +0200 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2009-06-11 13:41:18 +0200 |
commit | 15463a7100a1d22ff2692f39d3a66f1d42eee3f7 (patch) | |
tree | 3fbbb8c10e2c13723f682eb0d2bf983768eabd6e | |
parent | a8257055f3d5f474d601cb3a5cbcbdb44e2b707d (diff) | |
download | python-dmidecode-15463a7100a1d22ff2692f39d3a66f1d42eee3f7.tar.gz python-dmidecode-15463a7100a1d22ff2692f39d3a66f1d42eee3f7.tar.xz python-dmidecode-15463a7100a1d22ff2692f39d3a66f1d42eee3f7.zip |
Updated setup-dbg.py to be in sync with setup.py
Also undefined the NDEBUG when building this package
-rw-r--r-- | src/setup-dbg.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/setup-dbg.py b/src/setup-dbg.py index 8067cad..9d297b0 100644 --- a/src/setup-dbg.py +++ b/src/setup-dbg.py @@ -27,6 +27,9 @@ # from distutils.core import setup, Extension +from distutils.sysconfig import get_python_lib + +libdir = get_python_lib(1) setup( name = "python-dmidecode-dbg", @@ -39,7 +42,7 @@ setup( data_files = [ ('share/python-dmidecode-dbg', ['src/pymap.xml']) ], ext_modules = [ Extension( - "dmidecode", + "dmidecodemod", sources = [ "src/dmidecodemodule.c", "src/util.c", @@ -50,7 +53,10 @@ setup( "src/xmlpythonizer.c" ], include_dirs = [ "/usr/include/libxml2" ], - libraries = [ "util", "xml2" ], #[ "util", "xml2", "efence" ], + library_dirs = [ libdir ], + libraries = [ "xml2", "xml2mod" ], + undef_macros = [ "NDEBUG" ] ) - ] + ], + py_modules = [ "dmidecode" ] ) |