summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorrecht <recht@pkgsrc.org>2003-12-24 10:56:27 +0000
committerrecht <recht@pkgsrc.org>2003-12-24 10:56:27 +0000
commit89efd732135d66d534b80a7ab10b1b6b975e01a1 (patch)
tree2a1075a633ff3bef5da313df6a61dc27ed86e393 /math
parentbfe128c81ff0091debbae3ff51b045cadb32d8ad (diff)
downloadpkgsrc-89efd732135d66d534b80a7ab10b1b6b975e01a1.tar.gz
initial import of py-fpconst-0.6.0
This python module implements constants and functions for working with IEEE754 double-precision special values. It provides constants for Not-a-Number (NaN), Positive Infinity (Inf), and Negative Infinity (-Inf), as well as functions to test for these values. The code is implemented in pure python by taking advantage of the 'struct' standard module. Care has been taken to generate proper results on both big-endian and little-endian machines. Some efficiency could be gained by translating the core routines into C.
Diffstat (limited to 'math')
-rw-r--r--math/py-fpconst/DESCR9
-rw-r--r--math/py-fpconst/Makefile17
-rw-r--r--math/py-fpconst/PLIST4
-rw-r--r--math/py-fpconst/distinfo4
4 files changed, 34 insertions, 0 deletions
diff --git a/math/py-fpconst/DESCR b/math/py-fpconst/DESCR
new file mode 100644
index 00000000000..5cd2145c1ee
--- /dev/null
+++ b/math/py-fpconst/DESCR
@@ -0,0 +1,9 @@
+This python module implements constants and functions for working with IEEE754
+double-precision special values. It provides constants for Not-a-Number (NaN),
+Positive Infinity (Inf), and Negative Infinity (-Inf), as well as functions to
+test for these values.
+
+The code is implemented in pure python by taking advantage of the 'struct'
+standard module. Care has been taken to generate proper results on both
+big-endian and little-endian machines. Some efficiency could be gained by
+translating the core routines into C.
diff --git a/math/py-fpconst/Makefile b/math/py-fpconst/Makefile
new file mode 100644
index 00000000000..1317e102597
--- /dev/null
+++ b/math/py-fpconst/Makefile
@@ -0,0 +1,17 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/12/24 10:56:27 recht Exp $
+#
+
+DISTNAME= fpconst-0.6.0
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES= math python
+MASTER_SITES= http://www.analytics.washington.edu/Zope/projects/fpconst/
+
+MAINTAINER= recht@NetBSD.org
+HOMEPAGE= http://www.analytics.washington.edu/Zope/projects/fpconst/
+COMMENT= IEEE 754 floating point special handling for Python
+
+USE_BUILDLINK2= yes
+PYDISTUTILSPKG= yes
+
+.include "../../lang/python/extension.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/math/py-fpconst/PLIST b/math/py-fpconst/PLIST
new file mode 100644
index 00000000000..2a11a403071
--- /dev/null
+++ b/math/py-fpconst/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2003/12/24 10:56:27 recht Exp $
+${PYSITELIB}/fpconst.py
+${PYSITELIB}/fpconst.pyc
+${PYSITELIB}/fpconst.pyo
diff --git a/math/py-fpconst/distinfo b/math/py-fpconst/distinfo
new file mode 100644
index 00000000000..4be36a0515b
--- /dev/null
+++ b/math/py-fpconst/distinfo
@@ -0,0 +1,4 @@
+$NetBSD: distinfo,v 1.1.1.1 2003/12/24 10:56:27 recht Exp $
+
+SHA1 (fpconst-0.6.0.tar.gz) = 65f21e3dc95005e1d903b8d091df73a957d35c71
+Size (fpconst-0.6.0.tar.gz) = 4837 bytes