Skip to content

Commit 2ec1a9d

Browse files
author
David Sommerseth
committed
Cleaned up and fetch libdir from Python settings instead
1 parent f744a14 commit 2ec1a9d

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/setup.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
from distutils.core import setup, Extension
2+
from distutils.sysconfig import get_python_lib
3+
4+
libdir = get_python_lib(1)
25

36
setup(
47
name = "python-dmidecode",
@@ -22,8 +25,8 @@
2225
"src/xmlpythonizer.c"
2326
],
2427
include_dirs = [ "/usr/include/libxml2" ],
25-
library_dirs = [ "/home/nima/dev-room/projects/dmidecode", "/usr/lib64/python2.5/site-packages"],
26-
libraries = [ "util", "xml2", "xml2mod" ]
28+
library_dirs = [ libdir ],
29+
libraries = [ "xml2", "xml2mod" ]
2730
)
2831
],
2932
py_modules = [ "dmidecode" ]

0 commit comments

Comments
 (0)