[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ITP: Name for "real" python-pgsql module



Piotr Ożarowski pisze:
[Paweł Tęcza, 2008-12-18 10:49]
I'm not DD, but I would like to make Debian package with python-pgsql module [1]. I need it for PostgreSQL support for Courier-Pythonfilter framework [2]. It has been debianized by Frederik Dannemare [3] and still waits for sponsoring at mentors.d.n site [4].

The problem with python-pgsql module is that Debian has package with the same name for long time, but it's different Python module! Its real name is pypgsql [5].

So my question is: what should I call that package? python-pypgsql? ;)

Will it be a problem to use psycopg2 instead? If these two libraries are
compatible (they should provide the same api, no?), just use psycopg2.
You can check it by changing filters/TtlDb.py lines 59-60 into:
        import psycopg2
        self.dbapi = psycopg2

Hello Piotr,

Thank you very much for your fast reply and the hint!

I don't know whether python-pypgsql and psycopg2 modules are compatible, because I don't have any experiences with them, but I can try it,
of course.

I contacted with author of Pythonfilter before and remember that he wants to switch to psycopg2 in the future.

Have a nice day,

Pawel


Reply to: