1 parent f744a14 commit 2ec1a9dCopy full SHA for 2ec1a9d
1 file changed
src/setup.py
@@ -1,4 +1,7 @@
1
from distutils.core import setup, Extension
2
+from distutils.sysconfig import get_python_lib
3
+
4
+libdir = get_python_lib(1)
5
6
setup(
7
name = "python-dmidecode",
@@ -22,8 +25,8 @@
22
25
"src/xmlpythonizer.c"
23
26
],
24
27
include_dirs = [ "/usr/include/libxml2" ],
- library_dirs = [ "/home/nima/dev-room/projects/dmidecode", "/usr/lib64/python2.5/site-packages"],
- libraries = [ "util", "xml2", "xml2mod" ]
28
+ library_dirs = [ libdir ],
29
+ libraries = [ "xml2", "xml2mod" ]
30
)
31
32
py_modules = [ "dmidecode" ]
0 commit comments