From 9dd6ef7e922878b6d93aa352114be39da05b9a36 Mon Sep 17 00:00:00 2001 From: fgsch Date: Sun, 9 Jan 2005 22:59:06 +0000 Subject: [PATCH] extension module to speed up the execution of Python code ok and help from alek@ and xsa@. ta! this time with the right name (doh!). thanks dug for pointing it out. --- dev/py-psyco/Makefile | 29 +++++++++++++++++++++++++++++ dev/py-psyco/distinfo | 4 ++++ dev/py-psyco/pkg/DESCR | 6 ++++++ dev/py-psyco/pkg/PFRAG.shared | 2 ++ dev/py-psyco/pkg/PLIST | 15 +++++++++++++++ 5 files changed, 56 insertions(+) create mode 100644 dev/py-psyco/Makefile create mode 100644 dev/py-psyco/distinfo create mode 100644 dev/py-psyco/pkg/DESCR create mode 100644 dev/py-psyco/pkg/PFRAG.shared create mode 100644 dev/py-psyco/pkg/PLIST diff --git a/dev/py-psyco/Makefile b/dev/py-psyco/Makefile new file mode 100644 index 00000000000..1d7debd31fa --- /dev/null +++ b/dev/py-psyco/Makefile @@ -0,0 +1,29 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2005/01/09 22:59:06 fgsch Exp $ + +COMMENT= "extension module to speed up the execution of Python code" + +SHARED_ONLY= Yes +ONLY_FOR_ARCHS= i386 + +DISTNAME= psyco-1.3-src +PKGNAME= py-${DISTNAME:S/-src//} +CATEGORIES= devel + +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=psyco/} +HOMEPAGE= http://psyco.sourceforge.net/ + +# MIT +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +MODULES= lang/python + +WRKSRC= ${WRKDIR}/${DISTNAME:S/-src//} + +do-regress: fake + @cd ${WRKSRC}/test && env PYTHONPATH=${WRKINST}${MODPY_SITEPKG} \ + ${MODPY_BIN} ./basetests.py + +.include diff --git a/dev/py-psyco/distinfo b/dev/py-psyco/distinfo new file mode 100644 index 00000000000..8f106234235 --- /dev/null +++ b/dev/py-psyco/distinfo @@ -0,0 +1,4 @@ +MD5 (psyco-1.3-src.tar.gz) = ef2dd14e933c40b420693d0cf5bb2aff +RMD160 (psyco-1.3-src.tar.gz) = aa91716f19d333756b8fbd78620321c67218e0d5 +SHA1 (psyco-1.3-src.tar.gz) = dadb3833456f84c1e5216b27cdbc5ba2034c3597 +SIZE (psyco-1.3-src.tar.gz) = 1099318 diff --git a/dev/py-psyco/pkg/DESCR b/dev/py-psyco/pkg/DESCR new file mode 100644 index 00000000000..c31c350edcb --- /dev/null +++ b/dev/py-psyco/pkg/DESCR @@ -0,0 +1,6 @@ +Psyco is a Python extension module which can massively speed up the +execution of any Python code. + +Think of Psyco as a kind of just-in-time (JIT) compiler, a little +bit like Java's, that emit machine code on the fly instead of +interpreting your Python program step by step. diff --git a/dev/py-psyco/pkg/PFRAG.shared b/dev/py-psyco/pkg/PFRAG.shared new file mode 100644 index 00000000000..42bf104be2f --- /dev/null +++ b/dev/py-psyco/pkg/PFRAG.shared @@ -0,0 +1,2 @@ +@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2005/01/09 22:59:06 fgsch Exp $ +lib/python${MODPY_VERSION}/site-packages/psyco/_psyco.so diff --git a/dev/py-psyco/pkg/PLIST b/dev/py-psyco/pkg/PLIST new file mode 100644 index 00000000000..32b608ff664 --- /dev/null +++ b/dev/py-psyco/pkg/PLIST @@ -0,0 +1,15 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2005/01/09 22:59:06 fgsch Exp $ +%%SHARED%% +lib/python${MODPY_VERSION}/site-packages/psyco/ +lib/python${MODPY_VERSION}/site-packages/psyco/__init__.py +lib/python${MODPY_VERSION}/site-packages/psyco/__init__.pyc +lib/python${MODPY_VERSION}/site-packages/psyco/classes.py +lib/python${MODPY_VERSION}/site-packages/psyco/classes.pyc +lib/python${MODPY_VERSION}/site-packages/psyco/core.py +lib/python${MODPY_VERSION}/site-packages/psyco/core.pyc +lib/python${MODPY_VERSION}/site-packages/psyco/logger.py +lib/python${MODPY_VERSION}/site-packages/psyco/logger.pyc +lib/python${MODPY_VERSION}/site-packages/psyco/profiler.py +lib/python${MODPY_VERSION}/site-packages/psyco/profiler.pyc +lib/python${MODPY_VERSION}/site-packages/psyco/support.py +lib/python${MODPY_VERSION}/site-packages/psyco/support.pyc