[Distutils] easy_install installing beta version of psycopg2

kiorky kiorky at cryptelium.net
Thu Feb 17 11:13:35 CET 2011


You can try zc.buildout :

a simple buildout.cfg like :

[buildout]
parts=scripts
versions=versions
[versions]
psycopg2 = 2.3.1
[scripts]
recipe=minitage.recipe.scripts
interpreter = mypy
eggs = psycopg2
	whateverelse

and you will have a bin/mypy wrapper with psycopg2 in its dependencies


Le 17/02/2011 01:01, Daniele Varrazzo a écrit :
> On Wed, Feb 16, 2011 at 8:40 PM, P.J. Eby <pje at telecommunity.com> wrote:
>> At 05:47 PM 2/16/2011 +0000, Daniele Varrazzo wrote:
>>>
>>> Do I, as a packager, have the possibility to say "what I have specified
>>> on PyPI as stable release is exactly what I mean"?
>>
>> If you don't want easy_install to find it, don't list it on the pages
>> referred to in your "Home Page" or "Download URL" on PyPI.  Easy_install
>> reads those pages because many package authors do not provide directly
>> usable URLs or packages on PyPI.
> 
> I'm sorry, it is obvious that I have not spent so much time into this
> problem as the designer of this feature. But it still don't get the
> rationale behind discarding available, non-ambiguous metadata in
> favour of screen scraping.
> 
> I don't think it is fair to ask to stop listing the beta from the
> homepage and the download page of the 2-pages website of the module:
> how should I advertise there is a beta around and testing is welcome?
> It won't happen that the shortcomings of a package manager will
> dictate the content of a website: I find more viable the option to
> tell users to stay away from easy_install and install from the sdist,
> or to suggest an alternative package manager with a more robust
> behaviour - if I found any.
> 
>>> possibly not requiring a writable egg cache (see
>>
>> You can prevent this as a package author, by specifying zip_safe=False in
>> your setup() script.
> 
> psycopg2 is not zip_safe, as it contains a C extension. Yes, sounds
> fishy, but I've not stumbled in the issue myself to debug it. I only
> see people reporting the problem and the solution. Will ask further
> info to the author of the article quoted.
> 
> -- Daniele
> _______________________________________________
> Distutils-SIG maillist  -  Distutils-SIG at python.org
> http://mail.python.org/mailman/listinfo/distutils-sig

-- 
Cordialement,
KiOrKY
GPG Key FingerPrint: 0x1A1194B7681112AF
Pensez à l’environnement.
N’imprimez ce courriel que si vous en avez vraiment besoin.




More information about the Distutils-SIG mailing list