Source
xxxxxxxxxx
--- setup.py.orig 2014-10-16 00:35:21.000000000 -0700
+++ setup.py 2014-10-20 21:44:57.000000000 -0700
# - iconv.h
# - libxslt/xsltconfig.h
includes_dir = [
-"/usr/include",
-"/usr/local/include",
-"/opt/include",
-os.path.join(ROOT,'include'),
-HOME
+"@PREFIX@/include",
];
xml_includes=""
# those are added in the linker search path for libraries
libdirs = [
-os.path.join(ROOT,'lib'),
+"@PREFIX@/lib"
]
xml_files = ["libxml2-api.xml", "libxml2-python-api.xml",
result.close()
with_xslt=0
-if missing("libxslt-py.c") or missing("libxslt.py"):
- if missing("xsltgenerator.py") or missing("libxslt-api.xml"):
- print("libxslt stub generator not found, libxslt not built")
- else:
- try:
- import xsltgenerator
- except:
- print("failed to generate stubs for libxslt, aborting ...")
- print(sys.exc_info()[0], sys.exc_info()[1])
- else:
- head = open("libxsl.py", "r")
- generated = open("libxsltclass.py", "r")
- result = open("libxslt.py", "w")
- for line in head.readlines():
- if WITHDLLS:
- result.write(altImport(line))
- else:
- result.write(line)
- for line in generated.readlines():
- result.write(line)
- head.close()
- generated.close()
- result.close()
- with_xslt=1
-else:
- with_xslt=1
if with_xslt == 1:
xslt_includes=""