diff options
author | David Sommerseth <davids@redhat.com> | 2009-06-10 21:15:40 +0200 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2009-06-10 21:15:40 +0200 |
commit | 2ec1a9dc724582241456a3566ea213b2eec4d16f (patch) | |
tree | f907744a4ff2a9b99ce7ffe6d387cca257ff2ff5 /src/setup.py | |
parent | f744a1428ddd9e0c1a90f2725192abf9cd4d3628 (diff) | |
download | python-dmidecode-2ec1a9dc724582241456a3566ea213b2eec4d16f.tar.gz python-dmidecode-2ec1a9dc724582241456a3566ea213b2eec4d16f.tar.xz python-dmidecode-2ec1a9dc724582241456a3566ea213b2eec4d16f.zip |
Cleaned up and fetch libdir from Python settings instead
Diffstat (limited to 'src/setup.py')
-rw-r--r-- | src/setup.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/setup.py b/src/setup.py index d29cf96..d5d47f4 100644 --- a/src/setup.py +++ b/src/setup.py @@ -1,4 +1,7 @@ from distutils.core import setup, Extension +from distutils.sysconfig import get_python_lib + +libdir = get_python_lib(1) setup( name = "python-dmidecode", @@ -22,8 +25,8 @@ setup( "src/xmlpythonizer.c" ], include_dirs = [ "/usr/include/libxml2" ], - library_dirs = [ "/home/nima/dev-room/projects/dmidecode", "/usr/lib64/python2.5/site-packages"], - libraries = [ "util", "xml2", "xml2mod" ] + library_dirs = [ libdir ], + libraries = [ "xml2", "xml2mod" ] ) ], py_modules = [ "dmidecode" ] |