Update to use the cextensions to improve the speed of py-storm.

From MAINTAINER (Will Maier) with help from eric@ (macppc regress
problem).

ok eric@, kili@
This commit is contained in:
merdely 2008-01-06 17:09:35 +00:00
parent 4bf0ed1590
commit 1e497f6c85
5 changed files with 35 additions and 3 deletions

View File

@ -1,10 +1,10 @@
# $OpenBSD: Makefile,v 1.1.1.1 2007/12/23 18:29:00 merdely Exp $
# $OpenBSD: Makefile,v 1.2 2008/01/06 17:09:35 merdely Exp $
COMMENT= generic object relational mapper for Python
V= 0.11
DISTNAME= storm-$V
PKGNAME= py-${DISTNAME}
PKGNAME= py-${DISTNAME}p0
CATEGORIES= databases

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-setup_py,v 1.1 2008/01/06 17:09:35 merdely Exp $
--- setup.py.orig Sun Dec 23 14:27:59 2007
+++ setup.py Sun Dec 23 14:28:12 2007
@@ -11,7 +11,7 @@ if os.path.isfile("MANIFEST"):
os.unlink("MANIFEST")
-BUILD_CEXTENSIONS = False
+BUILD_CEXTENSIONS = True
def find_packages():

View File

@ -0,0 +1,17 @@
$OpenBSD: patch-test,v 1.1 2008/01/06 17:09:36 merdely Exp $
This patch works around a strange problem with macppc. Even though the
regression tests pass, there is an output problem that causes
"make regress" to fail.
--- test.orig Sun Jan 6 11:47:52 2008
+++ test Sun Jan 6 11:48:19 2008
@@ -137,6 +137,8 @@ def test_with_unittest():
unittest_summary = Summary()
doctest_summary = Summary()
+ sys.stdout = open('/dev/null')
+
if unittests:
print "Running unittests..."
for relpath in unittests:

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PFRAG.shared,v 1.1 2008/01/06 17:09:36 merdely Exp $
lib/python${MODPY_VERSION}/site-packages/storm/cextensions.so

View File

@ -1,4 +1,5 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2007/12/23 18:29:00 merdely Exp $
@comment $OpenBSD: PLIST,v 1.2 2008/01/06 17:09:36 merdely Exp $
%%SHARED%%
lib/python${MODPY_VERSION}/site-packages/storm/
lib/python${MODPY_VERSION}/site-packages/storm-0.11-py${MODPY_VERSION}.egg-info/
lib/python${MODPY_VERSION}/site-packages/storm-0.11-py${MODPY_VERSION}.egg-info/PKG-INFO