[Insight-developers] [SimpleITK] PyPi distribution

Matt McCormick matt.mccormick at kitware.com
Thu Sep 15 13:01:20 EDT 2011


On Thu, Sep 15, 2011 at 12:30 PM, Matt McCormick
<matt.mccormick at kitware.com> wrote:
> Hi Brad,
>
>> I have made some really good progress on this.
>
> Outstanding!
>
>> I am looking for documentation on how easy_install determines which binary
>> distribution to use. On my Mac I am getting eggs with the following name
>> format: SimpleITK-0.2.0-Py2.6.egg. I don't know how it is suppose to
>> determine with OS the egg is for. I have the feeling that there is suppose
>> to be some platform string in the name too, but I don't know what
>> easy_install is looking for or which of the many platform strings available
>> in python should be used.

Our CMake build hack must not be correct.  It should be in the
filename, as you suggest:

http://peak.telecommunity.com/DevCenter/PythonEggs
"By the way, in case you're wondering how you can tell a "pure"
(all-Python) egg from one with C extensions, the difference is that
eggs containing C extensions will have their target platform's name at
the end of the filename, just before the .egg. "Pure" eggs are (in
principle) platform-indepenent, and have no platform name. If you're
using the pkg_resources runtime to find eggs for you, it will ignore
any eggs that it can tell are not usable on your platform or Python
version. If you're not using the runtime, you'll have to make sure
that you use only compatible eggs."

Maybe it needs to be in setup.py.  I will look into this sometime today...

Matt


More information about the Insight-developers mailing list