Commits
Joshua Root authored b97c7ff5d03
1 - | --- setup.py 2005-09-04 19:12:47.000000000 -0400 |
2 - | +++ setup.py.new 2007-05-16 07:46:02.000000000 -0400 |
1 + | --- setup.py.orig 2007-10-11 15:24:20.000000000 +0200 |
2 + | +++ setup.py 2007-10-11 15:24:54.000000000 +0200 |
3 3 | |
4 4 | # - iconv.h |
5 5 | # - libxslt/xsltconfig.h |
6 6 | includes_dir = [ |
7 7 | -"/usr/include", |
8 8 | -"/usr/local/include", |
9 9 | -"/opt/include", |
10 10 | -os.path.join(ROOT,'include'), |
11 11 | -HOME |
12 12 | +"@PREFIX@/include", |
15 15 | xml_includes="" |
16 16 | |
17 17 | |
18 18 | # those are added in the linker search path for libraries |
19 19 | libdirs = [ |
20 20 | -os.path.join(ROOT,'lib'), |
21 21 | +"@PREFIX@/lib" |
22 22 | ] |
23 23 | |
24 24 | xml_files = ["libxml2-api.xml", "libxml2-python-api.xml", |
25 + | |
26 + | result.close() |
27 + | |
28 + | with_xslt=0 |
29 + | -if missing("libxslt-py.c") or missing("libxslt.py"): |
30 + | - if missing("xsltgenerator.py") or missing("libxslt-api.xml"): |
31 + | - print "libxslt stub generator not found, libxslt not built" |
32 + | - else: |
33 + | - try: |
34 + | - import xsltgenerator |
35 + | - except: |
36 + | - print "failed to generate stubs for libxslt, aborting ..." |
37 + | - print sys.exc_type, sys.exc_value |
38 + | - else: |
39 + | - head = open("libxsl.py", "r") |
40 + | - generated = open("libxsltclass.py", "r") |
41 + | - result = open("libxslt.py", "w") |
42 + | - for line in head.readlines(): |
43 + | - if WITHDLLS: |
44 + | - result.write(altImport(line)) |
45 + | - else: |
46 + | - result.write(line) |
47 + | - for line in generated.readlines(): |
48 + | - result.write(line) |
49 + | - head.close() |
50 + | - generated.close() |
51 + | - result.close() |
52 + | - with_xslt=1 |
53 + | -else: |
54 + | - with_xslt=1 |
55 + | |
56 + | if with_xslt == 1: |
57 + | xslt_includes="" |