Initial import of psycopg-0.99.5

Maintainer : Maurice Nonnekes <maurice@amaze.nl>
---

psycopg is a PostgreSQL database adapter for the Python programming
language (just like pygresql and popy.) It was written from scratch
with the aim of being very small and fast, and stable as a rock.
This commit is contained in:
shell 2001-08-21 23:00:38 +00:00
parent 14b0f36b04
commit c6679d44ad
6 changed files with 107 additions and 0 deletions

View File

@ -0,0 +1,36 @@
# $OpenBSD: Makefile,v 1.1.1.1 2001/08/21 23:00:38 shell Exp $
COMMENT= "PostgreSQL database adapter for Python"
VERSION= 0.99.5
DISTNAME= psycopg-${VERSION}
PKGNAME= py-psycopg-${VERSION}
CATEGORIES= databases
NEED_VERSION= 1.441
MASTER_SITES= http://initd.org/software/psycopg/
HOMEPAGE= http://initd.org/Software/psycopg/
MAINTAINER= Maurice Nonnekes <maurice@amaze.nl>
PERMIT_PACKAGE_FTP= Yes
PERMIT_PACKAGE_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PYTHON_VER= 2.1
DATETIME_PATH= ${LOCALBASE}/lib/python${PYTHON_VER}/site-packages/mx/DateTime
LIB_DEPENDS= pq.2::databases/postgresql
RUN_DEPENDS= python${PYTHON_VER}::lang/python \
${DATETIME_PATH}::devel/py-mxDateTime
BUILD_DEPENDS= ${RUN_DEPENDS}
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS= --with-python=python${PYTHON_VER} \
--with-python-version=${PYTHON_VER} \
--with-mxdatetime-includes=${DATETIME_PATH}/mxDateTime
SUBST_VARS= PYTHON_VER
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
MD5 (psycopg-0.99.5.tar.gz) = 6d1f0ffbaa4671ae5bd5021a8a3acf1f
RMD160 (psycopg-0.99.5.tar.gz) = 4bb3647daab93efc3c20586b02cb93846e75a3c8
SHA1 (psycopg-0.99.5.tar.gz) = 66425862bc8ba977c83be8e0ce0f2dd1e7470543

View File

@ -0,0 +1,32 @@
--- Makefile.pre.in.orig Tue Apr 3 09:23:30 2001
+++ Makefile.pre.in Mon Jun 18 22:14:19 2001
@@ -130,7 +130,7 @@
# Install Stuff
INSTALL = @INSTALL@
PY_LIB_DIR = @PYTHON_LIBRARY_DIR@
-PY_MOD_DIR = @PYTHON_MODULE_DIR@
+PY_MOD_DIR = $(prefix)/lib/python@PYTHON_VERSION@/lib-dynload/
# === Fixed definitions ===
@@ -155,7 +155,7 @@
# === Fixed rules ===
# Default target. This builds shared libraries.
-default: sharedmods
+all: sharedmods
# Build shared libraries from our extension modules
sharedmods: $(SHAREDMODS)
@@ -172,8 +172,9 @@
@echo 'Installing shared modules...'
@if [ -n "$(SHAREDMODS)" ]; then \
for mod in $(SHAREDMODS); do \
- echo " install -m 555 $$mod $(PY_MOD_DIR)"; \
- $(INSTALL) @INSTALLOPTS@ -m 555 $$mod $(PY_MOD_DIR); \
+ echo " install -m 555 $$mod $(DESTDIR)/$(PY_MOD_DIR)"; \
+ mkdir -p $(DESTDIR)$(PY_MOD_DIR); \
+ $(INSTALL) @INSTALLOPTS@ -m 555 $$mod $(DESTDIR)$(PY_MOD_DIR); \
done; \
fi

View File

@ -0,0 +1,11 @@
--- config.h.in.orig Mon Jun 18 23:53:16 2001
+++ config.h.in Mon Jun 18 23:53:27 2001
@@ -1,7 +1,7 @@
/* undef the builtin DateTime module path and replace with our own. note
that this only works if this file is included _after_ mxDateTime.h */
#undef MXDATETIME_API_MODULE
-#define MXDATETIME_API_MODULE "mxDateTime"
+#define MXDATETIME_API_MODULE "mx.DateTime.mxDateTime"
#define MXDATETIME_LOCATION "@MXMODULE@"

View File

@ -0,0 +1,23 @@
psycopg is a PostgreSQL database adapter for the Python programming
language (just like pygresql and popy.) It was written from scratch
with the aim of being very small and fast, and stable as a rock.
The main advantages of psycopg are that it supports (well... *will*
support) the full Python DBAPI-2.0 and being thread safe at level
2.
psycopg is different from the other database adapter because it was
designed for heavily multi-threaded applications that create and
destroy lots of cursors and make a conspicuous number of concurrent
INSERTs or UPDATEs. Every open Python connection keeps a pool of
real (UNIX or TCP/IP) connections to the database. Every time a new
cursor is created, a new connection does not need to be opened;
instead one of the unused connections from the pool is used. That
makes psycopg very fast in typical client-server applications that
create a servicing thread every time a client request arrives.
psycopg is still in development but that does not mean that it is
unstable. It just does not support the Python DBAPI-2.0 completely
and is missing some of the more esoteric features we want it to
have.
WWW ${HOMEPAGE}

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2001/08/21 23:00:38 shell Exp $
lib/python${PYTHON_VER}/lib-dynload/psycopgmodule.so