[Distutils] more easyinstall error messages - haha

Tarek Ziadé ziade.tarek at gmail.com
Thu Jun 18 12:19:13 CEST 2009


On Thu, Jun 18, 2009 at 11:59 AM, David Lyon<david.lyon at preisshare.net> wrote:
> On Thu, 18 Jun 2009 11:52:02 +0200, Tarek Ziadé <ziade.tarek at gmail.com>
> wrote:
>> On Thu, Jun 18, 2009 at 11:42 AM, David Lyon>
>> wrote:
>>>
>>> Why can't Distutils check that a package will work on multiple python
>>> versions before uploading it?
>>
>> you mean before uploading a distribution at pypi ? how do you automate
> that
>> ?
>
> Easily(*).....
>
> in a script...
>
> for pyver in installed_python_versions:
>    run_all_tests_on(pyver)
>
> eg.. A 2.6 python can fire off a 2.2 python script.... which can run lots
> of
> tests on the 2.2 system....

I'm lost now :)

What do you want to do exaclty ?

Let's suppose you have all your code 100% covered in tests (wich is
not the case in 99.99% of the packages).
So you run the test using all Python versions (which supposes you have
*all* Python versions installed, which is not the case on 99% of the
people systems out ther)

Then what happens ? Do you store the result in the metadata ? Like, by
setting up the Requires-Python field with the output ?

Frankly, you could just explicitely mark the Python version your code
is suppose to run with,


More information about the Distutils-SIG mailing list