diff options
author | Thomas Gellekum <tg@FreeBSD.org> | 2001-03-29 12:22:56 +0000 |
---|---|---|
committer | Thomas Gellekum <tg@FreeBSD.org> | 2001-03-29 12:22:56 +0000 |
commit | ae2b0784072bf6ab3d77b77b20e51109754033b9 (patch) | |
tree | 9ee9cb42cc0a0c852b9f8a716edb76114d71bb4f /math/py-scientific/files | |
parent | 10427f38633c0f24c0247cb77f05bfe26e85adfa (diff) |
Upgrade to 2.0.1.
Notes
Notes:
svn path=/head/; revision=40527
Diffstat (limited to 'math/py-scientific/files')
-rw-r--r-- | math/py-scientific/files/Setup | 8 | ||||
-rw-r--r-- | math/py-scientific/files/setup.cfg | 8 | ||||
-rw-r--r-- | math/py-scientific/files/setup.py | 33 |
3 files changed, 41 insertions, 8 deletions
diff --git a/math/py-scientific/files/Setup b/math/py-scientific/files/Setup deleted file mode 100644 index a8cd38fbc4a1..000000000000 --- a/math/py-scientific/files/Setup +++ /dev/null @@ -1,8 +0,0 @@ -*shared* - -# netCDF interface module - -# Change the paths after -I and -L to the directories where -# the files netcdf.h and libnetcdf.* are located. - -Scientific_netcdf -I${PREFIX}/include -I${PREFIX}/include/%%PYTHON_VERSION%%/Numeric -I../Scientific/Include Scientific_netcdf.c -L${PREFIX}/lib -lnetcdf diff --git a/math/py-scientific/files/setup.cfg b/math/py-scientific/files/setup.cfg new file mode 100644 index 000000000000..ec0c1e20b120 --- /dev/null +++ b/math/py-scientific/files/setup.cfg @@ -0,0 +1,8 @@ +# +# setup configuration for ScientificPython +# + +# installation +[install] +compile = 1 +optimize = 1 diff --git a/math/py-scientific/files/setup.py b/math/py-scientific/files/setup.py new file mode 100644 index 000000000000..8ab86fd7038d --- /dev/null +++ b/math/py-scientific/files/setup.py @@ -0,0 +1,33 @@ +# +# setup script for ScientificPython +# + +from distutils.core import setup, Extension +from distutils.sysconfig import get_python_inc +import os, sys + +incdirs = [os.path.join(get_python_inc(plat_specific = 1), "Numeric")] +incdirs.append(os.path.join(sys.prefix, "include")) +incdirs.append(os.path.join("Scientific", "Include")) + +libdirs = [os.path.join(sys.prefix, "lib")] + +setup(name = "ScientificPython", + version = "2.0.1", + description = "Various useful scientific modules for Python.", + packages = ["Scientific", + "Scientific.Functions", + "Scientific.Geometry", + "Scientific.IO", + "Scientific.Physics", + "Scientific.Statistics", + "Scientific.TkWidgets", + "Scientific.Visualization"], + ext_modules = [Extension("Scientific_netcdf", + ["Src/Scientific_netcdf.c"], + include_dirs = incdirs, + library_dirs = libdirs, + libraries = ["netcdf"] + ) + ], + ) |