[Distutils] something else to throw into the static metadata mix

Tarek Ziadé ziade.tarek at gmail.com
Wed Sep 30 18:53:46 CEST 2009


On Wed, Sep 30, 2009 at 6:28 PM, Chris Withers <chris at simplistix.co.uk> wrote:
> Tarek Ziadé wrote:
>>
>> I think it's another issue, more related to the way easy_install or
>> pip works with PyPI
>> (using package_index.py)
>
> I think you're missing my point: how would the package be named and/or how
> would you express in static metadata, that a particular version of the
> package is for postgres 8 rather than postgres 7, or 8.4 rather than 8.3?

I am not sure to understand, you mean within the psycopg2 project metadata ?

Since it's a system requirement, it's out of the metadata scope.

So unless the project provides a binary version your system will have to
be able to compile source version.

I think psycopg2 deals like python-ldap for this :

they depend on system libraries, and a given source distribution is supposed to
compile against one given version of each of these libraries.

It's up to the project to have a name or a version that corresponds to the lib
it wraps. I think a good practice is to have a version number
partially synchronized with the
lib the project wraps. I know that python-ldap version numbers
have nothing to do with open ldap version, and that compilation might
fail if you
don't have the right open ldap, and it's hard to know which version matches.

Now for the static metadata, if you add 'pyscopg2' to the dependencies,
if this project provides binary releases with statically compiled libraries,
that matches your platform, it'll work.

lxml is a good example for this, it ships with libxml and libxslt in
binary releases now :  http://pypi.python.org/simple/lxml

But it's out of the scope of the static metadata  to describe these
system dependencies :
the dependencies are only *python* dependencies, so the micro-language
we will provide does only concerns the Python environment.

>
> cheers,
>
> Chris
>
> --
> Simplistix - Content Management, Batch Processing & Python Consulting
>           - http://www.simplistix.co.uk
>



-- 
Tarek Ziadé | http://ziade.org | オープンソースはすごい!


More information about the Distutils-SIG mailing list