1 |
bicatali 10/02/02 17:02:19 |
2 |
|
3 |
Added: scientificpython-2.9-mpi-netcdf.patch |
4 |
Log: |
5 |
Added a patch to use netcdf with mpi, thanks xarthisius, bug #303160. |
6 |
(Portage version: 2.2_rc62/cvs/Linux x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 dev-python/scientificpython/files/scientificpython-2.9-mpi-netcdf.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/scientificpython/files/scientificpython-2.9-mpi-netcdf.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/scientificpython/files/scientificpython-2.9-mpi-netcdf.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: scientificpython-2.9-mpi-netcdf.patch |
15 |
=================================================================== |
16 |
--- ScientificPython-2.9.0.orig/setup.py 2008-10-28 14:52:30.000000000 +0100 |
17 |
+++ ScientificPython-2.9.0/setup.py 2010-02-02 14:58:55.029160416 +0100 |
18 |
@@ -3,6 +3,7 @@ |
19 |
from distutils.core import setup, Extension |
20 |
from distutils.command.install_headers import install_headers |
21 |
import os, sys |
22 |
+from subprocess import Popen, PIPE |
23 |
from glob import glob |
24 |
|
25 |
class Dummy: |
26 |
@@ -106,6 +107,8 @@ |
27 |
else: |
28 |
print "Using netCDF installation in ", netcdf_prefix |
29 |
netcdf_include = os.path.join(netcdf_prefix, 'include') |
30 |
+ mpi_ccflags = Popen(["mpicc", "-showme:compile"], stdout=PIPE).communicate()[0].rstrip().split() |
31 |
+ mpi_ldflags = Popen(["mpicc", "-showme:link"], stdout=PIPE).communicate()[0].rstrip().split() |
32 |
netcdf_h_file = os.path.join(netcdf_prefix, 'include', 'netcdf.h') |
33 |
netcdf_lib = os.path.join(netcdf_prefix, 'lib') |
34 |
ext_modules = [Extension('Scientific_netcdf', |
35 |
@@ -114,7 +117,7 @@ |
36 |
+ arrayobject_h_include, |
37 |
library_dirs=[netcdf_lib], |
38 |
libraries = ['netcdf'], |
39 |
- extra_compile_args=extra_compile_args)] |
40 |
+ extra_compile_args=extra_compile_args + mpi_ccflags +mpi_ldflags )] |
41 |
|
42 |
try: |
43 |
# Add code for including documentation in Mac packages |