|
| 1 | +--- /home/sanotehu/Downloads/python-igraph-0.6.5/setup.py 2013-02-27 06:04:09.000000000 -0500 |
| 2 | ++++ build/igraph/python-igraph-0.6.5/setup.py 2013-11-06 08:54:17.944200143 -0500 |
| 3 | +@@ -19,7 +19,7 @@ |
| 4 | + from shutil import copy2 |
| 5 | + from subprocess import Popen, PIPE |
| 6 | + |
| 7 | +-LIBIGRAPH_FALLBACK_INCLUDE_DIRS = ['/usr/include/igraph', '/usr/local/include/igraph'] |
| 8 | ++LIBIGRAPH_FALLBACK_INCLUDE_DIRS = ['../../python-install/include/igraph', '../../python-install/include/python2.7'] |
| 9 | + LIBIGRAPH_FALLBACK_LIBRARIES = ['igraph'] |
| 10 | + LIBIGRAPH_FALLBACK_LIBRARY_DIRS = [] |
| 11 | + |
| 12 | +@@ -40,26 +40,15 @@ |
| 13 | + |
| 14 | + def detect_igraph_include_dirs(default = LIBIGRAPH_FALLBACK_INCLUDE_DIRS): |
| 15 | + """Tries to detect the igraph include directory""" |
| 16 | +- line, exit_code = get_output("pkg-config igraph --cflags") |
| 17 | +- if exit_code > 0 or len(line) == 0: |
| 18 | +- return default |
| 19 | +- opts=line.split() |
| 20 | +- return [opt[2:] for opt in opts if opt.startswith("-I")] |
| 21 | ++ return default |
| 22 | + |
| 23 | + def detect_igraph_libraries(default = LIBIGRAPH_FALLBACK_LIBRARIES): |
| 24 | + """Tries to detect the libraries that igraph uses""" |
| 25 | +- line, exit_code = get_output("pkg-config igraph --libs") |
| 26 | +- if exit_code>0 or len(line) == 0: |
| 27 | +- return default |
| 28 | +- opts=line.split() |
| 29 | +- return [opt[2:] for opt in opts if opt.startswith("-l")] |
| 30 | ++ return default |
| 31 | + |
| 32 | + def detect_igraph_library_dirs(default = LIBIGRAPH_FALLBACK_LIBRARY_DIRS): |
| 33 | + """Tries to detect the igraph library directory""" |
| 34 | +- line, exit_code = get_output("pkg-config igraph --libs") |
| 35 | +- if exit_code>0 or len(line) == 0: return default |
| 36 | +- opts=line.split() |
| 37 | +- return [opt[2:] for opt in opts if opt[0:2]=="-L"] |
| 38 | ++ return default |
| 39 | + |
| 40 | + sources=glob.glob(os.path.join('src', '*.c')) |
| 41 | + include_dirs=[] |
| 42 | +@@ -113,7 +102,7 @@ |
| 43 | + Many thanks to the maintainers of this page! |
| 44 | + """ |
| 45 | + |
| 46 | +-plat = get_platform() |
| 47 | ++plat = 'arm-gnueabi' |
| 48 | + options = dict( |
| 49 | + name = 'python-igraph', |
| 50 | + version = '0.6.5', |
0 commit comments