netcdf4-python/netcdf4-python-norpath.patch

22 lines
1.3 KiB
Diff
Raw Permalink Normal View History

2014-02-07 05:47:59 +00:00
diff -up netCDF4-1.0.7/setup.py.norpath netCDF4-1.0.7/setup.py
--- netCDF4-1.0.7/setup.py.norpath 2014-02-06 22:42:40.689954718 -0700
+++ netCDF4-1.0.7/setup.py 2014-02-06 22:43:16.600723399 -0700
@@ -295,7 +295,7 @@ else:
if has_cython and 'sdist' not in sys.argv[1:]:
sys.stdout.write('using Cython to compile netCDF4.pyx...\n')
# recompile netCDF4.pyx
- extensions = [Extension("netCDF4",["netCDF4.pyx"],libraries=libs,library_dirs=lib_dirs,include_dirs=inc_dirs,runtime_library_dirs=lib_dirs)]
+ extensions = [Extension("netCDF4",["netCDF4.pyx"],libraries=libs,library_dirs=lib_dirs,include_dirs=inc_dirs)]
# remove netCDF4.c file if it exists, so cython will recompile netCDF4.pyx.
if len(sys.argv) >= 2 and 'build' in sys.argv[1:] and os.path.exists('netCDF4.c'):
os.remove('netCDF4.c')
2014-05-09 21:41:43 +00:00
@@ -327,7 +327,7 @@ if has_cython and 'sdist' not in sys.arg
cmdclass = {'build_ext': build_ext}
else:
# use existing netCDF4.c, don't need cython.
- extensions = [Extension("netCDF4",["netCDF4.c"],libraries=libs,library_dirs=lib_dirs,include_dirs=inc_dirs,runtime_library_dirs=lib_dirs)]
+ extensions = [Extension("netCDF4",["netCDF4.c"],libraries=libs,library_dirs=lib_dirs,include_dirs=inc_dirs)]
cmdclass = {}
setup(name = "netCDF4",