[Distutils] [issue83] I wish setuptools would prefer v1.4.1 in binary egg format over v1.4.5 in sdist format when I'm requiring >= v1.1.0
Leonardo Santagada
santagada at gmail.com
Wed Jul 29 03:46:20 CEST 2009
On Jul 27, 2009, at 6:13 PM, Zooko O'Whielacronx wrote:
>
> New submission from Zooko O'Whielacronx <zooko at zooko.com>:
>
> It is often the case that a binary .egg is usable and an sdist is
> not (when the
> package requires compiling C or C++ code). Here is an example where
> this is
> currently happening:
>
> http://allmydata.org/trac/tahoe/ticket/773#comment:7
>
> Tahoe-LAFS requires zfec>=1.1.0. There are two distributions found
> during build
> a binary .egg of zfec v1.4.1 for the current platform and python
> version and an
> sdist of zfec v1.4.5. Setuptools is choosing the latter, which then
> fails to
> build because the C/C++ compiler isn't set up on the target system.
>
> If setuptools would prefer binaries over sdists when both satisfy
> the versioning
> requirements, then this would be better.
Why not try to compile a package and if it fails (because disutils
can't find a compiler) it just try to find a pre-compiled egg? This
would made everyone happy I think?
--
Leonardo Santagada
santagada at gmail.com
More information about the Distutils-SIG
mailing list