diff -ru orig-Numeric-17.1.2/Packages/FFT/setup.py Numeric-17.1.2/Packages/FFT/setup.py --- orig-Numeric-17.1.2/Packages/FFT/setup.py Fri Sep 29 09:02:20 2000 +++ Numeric-17.1.2/Packages/FFT/setup.py Wed Jan 3 09:55:44 2001 @@ -8,6 +8,24 @@ except: raise SystemExit, "Distutils problem, see Numeric README." +# __ See if we are being built 'in place' +if os.path.exists(os.path.join('..','..','Include','arrayobject.h')): + # __ We are building in place + if not os.path.exists(os.path.join('Include','Numeric')): + os.mkdir(os.path.join('Include','Numeric')); + + # __ Copy the core numeric header to the package's include directory + import shutil + headers = glob(os.path.join('..','..','Include','*.h')); + for h in headers: + # __ Use 'copy2' because it preserves modification times + shutil.copy2(h, os.path.join('Include','Numeric')); + +else: + # __ We are not building in place so assume that the headers + # from the numeric core are installed in their proper place + pass + setup (name = "FFTPACK", version = "1.0", maintainer = "Numerical Python Developers", diff -ru orig-Numeric-17.1.2/Packages/LALITE/setup.py Numeric-17.1.2/Packages/LALITE/setup.py --- orig-Numeric-17.1.2/Packages/LALITE/setup.py Fri Sep 29 09:02:34 2000 +++ Numeric-17.1.2/Packages/LALITE/setup.py Wed Jan 3 09:57:17 2001 @@ -13,6 +13,24 @@ except: raise SystemExit, "Distutils problem. See Numeric README." +# __ See if we are being built 'in place' +if os.path.exists(os.path.join('..','..','Include','arrayobject.h')): + # __ We are building in place + if not os.path.exists(os.path.join('Include','Numeric')): + os.mkdir(os.path.join('Include','Numeric')); + + # __ Copy the core numeric header to the package's include directory + import shutil + headers = glob(os.path.join('..','..','Include','*.h')); + for h in headers: + # __ Use 'copy2' because it preserves modification times + shutil.copy2(h, os.path.join('Include','Numeric')); + +else: + # __ We are not building in place so assume that the headers + # from the numeric core are installed in their proper place + pass + headers = glob (os.path.join ("Include","*.h")) # delete all but the first one in this list if using your own LAPACK/BLAS diff -ru orig-Numeric-17.1.2/Packages/RANLIB/setup.py Numeric-17.1.2/Packages/RANLIB/setup.py --- orig-Numeric-17.1.2/Packages/RANLIB/setup.py Fri Sep 29 09:02:55 2000 +++ Numeric-17.1.2/Packages/RANLIB/setup.py Wed Jan 3 09:57:37 2001 @@ -13,6 +13,24 @@ except: raise SystemExit, "Distutils problem, see Numeric README." +# __ See if we are being built 'in place' +if os.path.exists(os.path.join('..','..','Include','arrayobject.h')): + # __ We are building in place + if not os.path.exists(os.path.join('Include','Numeric')): + os.mkdir(os.path.join('Include','Numeric')); + + # __ Copy the core numeric header to the package's include directory + import shutil + headers = glob(os.path.join('..','..','Include','*.h')); + for h in headers: + # __ Use 'copy2' because it preserves modification times + shutil.copy2(h, os.path.join('Include','Numeric')); + +else: + # __ We are not building in place so assume that the headers + # from the numeric core are installed in their proper place + pass + headers = glob (os.path.join ("Include","*.h")) setup (name = "Numeric", packages = [''], diff -ru orig-Numeric-17.1.2/Packages/RNG/setup.py Numeric-17.1.2/Packages/RNG/setup.py --- orig-Numeric-17.1.2/Packages/RNG/setup.py Fri Sep 29 09:03:05 2000 +++ Numeric-17.1.2/Packages/RNG/setup.py Wed Jan 3 09:58:02 2001 @@ -16,6 +16,24 @@ except: raise SystemExit, "Distutils problem, see Numeric README." +# __ See if we are being built 'in place' +if os.path.exists(os.path.join('..','..','Include','arrayobject.h')): + # __ We are building in place + if not os.path.exists(os.path.join('Include','Numeric')): + os.mkdir(os.path.join('Include','Numeric')); + + # __ Copy the core numeric header to the package's include directory + import shutil + headers = glob(os.path.join('..','..','Include','*.h')); + for h in headers: + # __ Use 'copy2' because it preserves modification times + shutil.copy2(h, os.path.join('Include','Numeric')); + +else: + # __ We are not building in place so assume that the headers + # from the numeric core are installed in their proper place + pass + setup (name = "RNG", version = "3.0", maintainer = "Paul Dubois",