1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
Author: Alastair McKinstry <mckinstry@debian.org>
Description: Build against dynamic library rather than hard-build into python module.
Last-Updated: 2010-11-04
Forwarded: no
Index: spherepack-3.2/setup.py
===================================================================
--- spherepack-3.2.orig/setup.py 2010-11-04 10:33:19.000000000 +0000
+++ spherepack-3.2/setup.py 2010-11-04 10:29:05.000000000 +0000
@@ -11,24 +11,14 @@
from numpy.distutils.core import Extension
import sys
-sources = """
-Src/alf.f Src/gradgs.f Src/idvtgs.f Src/isfvpgs.f Src/ivrtec.f Src/shaes.f Src/slapec.f Src/vhaes.f Src/vlapgc.f Src/vtsgc.f
-Src/divec.f Src/hrfft.f Src/igradec.f Src/islapec.f Src/ivrtes.f Src/shagc.f Src/slapes.f Src/vhagc.f Src/vlapgs.f Src/vtsgs.f
-Src/dives.f Src/idivec.f Src/igrades.f Src/islapes.f Src/ivrtgc.f Src/shags.f Src/slapgc.f Src/vhags.f Src/vrtec.f
-Src/divgc.f Src/idives.f Src/igradgc.f Src/islapgc.f Src/ivrtgs.f Src/shigc.f Src/slapgs.f Src/vhsec.f Src/vrtes.f
-Src/divgs.f Src/idivgc.f Src/igradgs.f Src/islapgs.f Src/sfvpec.f Src/shigs.f Src/sphcom.f Src/vhses.f Src/vrtgc.f
-Src/gaqd.f Src/idivgs.f Src/ihgeod.f Src/ivlapec.f Src/sfvpes.f Src/shsec.f Src/sshifte.f Src/vhsgc.f Src/vrtgs.f
-Src/gradec.f Src/idvtec.f Src/isfvpec.f Src/ivlapes.f Src/sfvpgc.f Src/shses.f Src/trssph.f Src/vhsgs.f Src/vshifte.f
-Src/grades.f Src/idvtes.f Src/isfvpes.f Src/ivlapgc.f Src/sfvpgs.f Src/shsgc.f Src/trvsph.f Src/vlapec.f Src/vtsec.f
-Src/gradgc.f Src/idvtgc.f Src/isfvpgc.f Src/ivlapgs.f Src/shaec.f Src/shsgs.f Src/vhaec.f Src/vlapes.f Src/vtses.f
-""".split()
-
extra_link_args=[]
if sys.platform=='darwin':
extra_link_args = ['-bundle','-bundle_loader '+sys.prefix+'/bin/python']
ext1 = Extension(name = 'spherepack',
extra_link_args=extra_link_args,
- sources = ['Src/spherepack.pyf',]+sources)
+ libraries = ['sphere'],
+ library_dirs = [ os.path.join( os.getcwd() + '/Src')],
+ sources = ['Src/spherepack.pyf',])
if __name__ == "__main__":
from numpy.distutils.core import setup
|