File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2727#
2828
2929from distutils .core import setup , Extension
30- from distutils .sysconfig import get_python_lib
3130from setup_common import *
3231
3332#
3433# Some default values
3534#
3635incdir = []
37- #. XXX: Debian Workaound: libdir = [get_python_lib(1), "/usr/lib/pymodules/python%d.%d"%sys.version_info[0:2]]
38- libdir = [get_python_lib (1 )]
36+ libdir = []
3937libs = []
4038
4139# Get libxml2 info
Original file line number Diff line number Diff line change 2727#
2828
2929from distutils .core import setup , Extension
30- from distutils .sysconfig import get_python_lib
3130from setup_common import *
3231
3332#
3433# Some default values
3534#
3635incdir = []
37- #. XXX: Debian Workaound: libdir = [get_python_lib(1), "/usr/lib/pymodules/python%d.%d"%sys.version_info[0:2]]
38- libdir = [get_python_lib (1 )]
36+ libdir = []
3937libs = []
4038
4139# Get libxml2 info
Original file line number Diff line number Diff line change 2727#
2828
2929import commands , sys
30+ from os import path as os_path
31+ from distutils .sysconfig import get_python_lib
3032
3133# libxml2 - C flags
3234def libxml2_include (incdir ):
@@ -46,6 +48,10 @@ def libxml2_include(incdir):
4648
4749# libxml2 - library flags
4850def libxml2_lib (libdir , libs ):
51+ libdir .append (get_python_lib (1 ))
52+ if os_path .exists ("/etc/debian_version" ): #. XXX: Debian Workaround...
53+ libdir .append ("/usr/lib/pymodules/python%d.%d" % sys .version_info [0 :2 ])
54+
4955 (res , libxml2_libs ) = commands .getstatusoutput ("xml2-config --libs" )
5056 if res != 0 :
5157 print "Could not build python-dmidecode."
You can’t perform that action at this time.
0 commit comments