aboutsummaryrefslogtreecommitdiffstats
path: root/math/py-scientific/files
diff options
context:
space:
mode:
authortg <tg@FreeBSD.org>2001-03-29 20:22:56 +0800
committertg <tg@FreeBSD.org>2001-03-29 20:22:56 +0800
commitdb86e5f388058fe0cbbb464bdfd45886bc767965 (patch)
treeeb57dc91d931ec056d2525fb7398d65a8cea0c62 /math/py-scientific/files
parentd2f06e4918dd12be09bb9aa146bb11e9a05adb40 (diff)
downloadfreebsd-ports-gnome-db86e5f388058fe0cbbb464bdfd45886bc767965.tar.gz
freebsd-ports-gnome-db86e5f388058fe0cbbb464bdfd45886bc767965.tar.zst
freebsd-ports-gnome-db86e5f388058fe0cbbb464bdfd45886bc767965.zip
Upgrade to 2.0.1.
Diffstat (limited to 'math/py-scientific/files')
-rw-r--r--math/py-scientific/files/Setup8
-rw-r--r--math/py-scientific/files/setup.cfg8
-rw-r--r--math/py-scientific/files/setup.py33
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"]
+ )
+ ],
+ )