Ticket #22033: patch-Src-MPI-compile.py.diff
File patch-Src-MPI-compile.py.diff, 1.5 KB (added by stromnov (Andrey Stromnov), 15 years ago) |
---|
-
Src/MPI/compile.py
old new 5 5 import distutils 6 6 import distutils.sysconfig 7 7 import os, sys 8 from Scientific import N9 8 10 9 cfgDict = distutils.sysconfig.get_config_vars() 11 10 … … 14 13 sources='mpipython.c Scientific_mpi.c' 15 14 16 15 extra_compile_args = "" 17 if N.package == "NumPy": 18 arrayobject_h_include = os.path.join(sys.prefix, 19 "lib/python%s.%s/site-packages/numpy/core/include" 20 % sys.version_info [:2]) 21 extra_compile_args = "-DNUMPY=1 -I"+arrayobject_h_include 16 arrayobject_h_include = os.path.join(sys.prefix, 17 "lib/python%s.%s/site-packages/numpy/core/include" 18 % sys.version_info [:2]) 19 extra_compile_args = "-DNUMPY=1 -I"+arrayobject_h_include 22 20 23 21 linkforshared = cfgDict['LINKFORSHARED'] 24 22 if sys.platform == 'darwin': … … 32 30 items[i] = os.path.join(frameworkdir[0], items[i]) 33 31 linkforshared = ' '.join(items) 34 32 35 cmd = '%s %s -o mpipython - I%s %s %s -L%s -lpython%s %s %s' % \33 cmd = '%s %s -o mpipython -Wl,-search_paths_first @prefix@/lib/libmpi.a @prefix@/lib/liblam.a -I@worksrcpath@/Include -I%s %s %s %s %s' % \ 36 34 (mpicompiler, 37 35 linkforshared, 38 36 cfgDict['INCLUDEPY'], 39 37 extra_compile_args, 40 38 sources, 41 cfgDict['LIBPL'],42 cfgDict['VERSION'],43 39 cfgDict['LIBS'], 44 40 cfgDict['LIBM']) 45 41