Sean Davis wrote:
> On Nov 27, 2007 5:00 PM, Christopher Hilton <[EMAIL PROTECTED]> wrote:
>> Does anyone know of a canned build of pygresql for Mac OS X? I can build
>> it from MacPorts but on Leopard that builds against python 2.4.x and
>> Leopard now includes python 2.5...
> 
> Hi, Chris.  If I were you, I would set up python easy_install and use
> that for installing python libraries.  It will generally just work.
> It then becomes as simple as doing:
> 
> easy_install pygresql
> 
> and the newest version will be installed to match up with the default
> python.  Do a google for easy_install.
> 

Thanks Sean,

Firstly sorry about the out of context letter. I know it's been a while 
since I asked the question... To refresh briefly, I've gotten PyGreSQL 
installed on Mac OS X using MacPorts but the MacPorts install is against 
python 2.4 and is in a non-standard directory. To use it I'm going to 
have to make a bunch of changes to my environment that I'd rather not 
do. I would like to have a copy of PyGreSQL installed against the Mac OS 
X default version of python (2.5). Gratefully OS X includes easy_install 
so I:

      Followed the setup instructions to build a local python package 
directory.

      Used easy_install to download and build PyGreSQL.

I expected to get a directory:

      ~/Library/Python/2.5/site-packages/PyGreSQL

with the standard:

      __init__.py...

files. Instead I have:

      ~/Library/Python/2.5/site-packages/PyGreSQL-3.8.2... .egg file

I'm not sure what to do with this.

      python
      >>> import PyGreSQL

Throws an ImportError. Am I missing a step somewhere?

-- Chris
_______________________________________________
PyGreSQL mailing list
[email protected]
http://mailman.vex.net/mailman/listinfo/pygresql

Reply via email to