python version dependencies
Björn Lundin
b.f.lundin at gmail.com
Sun Jan 23 06:54:48 PST 2011
Hmm, found the answer myself:
use py27-appcript instead of py-appscript, and py27-psycopg2 instaed
of py-psycopg.
I now realise that python ports are divided betweeen versions.
Mac-mini:py-appscript bnl$ port search py27-appscript
py27-appscript @0.22.0 (python)
High-level application scripting package for Python
Mac-mini:py-appscript bnl$ port search py27-psycopg2
py27-psycopg2 @2.3.2 (python, databases)
A python DBAPI-2.0 ompliant database adapter for postgresql
Mac-mini:py-appscript bnl$
/Björn
Den 23 januari 2011 13:42 skrev Björn Lundin <b.f.lundin at gmail.com>:
> Hi!
> I'm trying to learn python, and I've done some automation of recording
> tv in EyeTv,
> and pushing data into a postgres database (8.4)
>
> but both py-appscript and py-psycopg2 depends on python 2.4, which is
> a bit old by now.
> I tinkered a bit in the portfile for making py-psycopg2 accept
> postgresql 8.4 and it worked.
> But I cannot figure out how to 'fix' the Portfiles to python 2.7. I
> tried just changing the Portgroup to
> python27 instead of python24, but failed.
>
> This is on Leopard, 10.5.8, and PPC
>
> How should I proceed to bump the dependencies to more recent versions
> of both postgresql and python?
>
> /Björn
>
> Mac-mini:py-appscript bnl$ port version
> Version: 1.9.2
>
> Mac-mini:py-appscript bnl$ uname -a
> Darwin Mac-mini.local 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15
> 16:57:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_PPC Power Macintosh
>
>
> Mac-mini:py-appscript bnl$ port info py-appscript
> py-appscript @0.22.0 (python)
>
> Description: Appscript is a high-level, user-friendly
> MacPython to Apple event bridge that allows you to control scriptable
> Mac OS X applications
> using ordinary Python scripts. Appscript makes
> MacPython a serious alternative to Apple's own AppleScript language
> for automating your
> Mac.
> Homepage: http://appscript.sourceforge.net/
>
> Library Dependencies: python24, py-setuptools
> Platforms: darwin
> License: unknown
> Maintainers: arsptr at internode.on.net
>
> Mac-mini:py-appscript bnl$ port info py-psycopg
> py-psycopg @1.1.21, Revision 2 (python, databases)
> Variants: postgresql82, postgresql83, universal
>
> Description: psycopg is a postgresql database adapter for
> python. It's fully compliant to pythons DBAPI-2.0. psycopg is designed
> for heavily
> multi-threaded applications featuring connection pooling.
> Homepage: http://www.initd.org/software/initd/psycopg/
>
> Library Dependencies: py-mx, python24, openssl
> Platforms: darwin, freebsd
> License: unknown
> Maintainers: nomaintainer at macports.org
> Mac-mini:py-appscript bnl$
>
>
> --
> /Björn
>
--
/Björn
More information about the macports-users
mailing list