[Distutils] Dynamic linking between Python modules

Chris Barker chris.barker at noaa.gov
Fri May 22 00:49:14 CEST 2015


On Thu, May 21, 2015 at 1:12 PM, Paul Moore <p.f.moore at gmail.com> wrote:

> > built from wheel right now, with no special tools. A conda recipe that
> > simply installs a wheel in it's build script would do just that.
>
> That sounds about right, from what I've seen of conda builds. You
> could probably do better (for example, by just repacking the wheel
> rather than going through the whole wheel install process)


but then conda would need to understand wheel -- now it doesn't have to.
ony pip or whatever has to understand wheel.


> Some possible problem areas - when you install a wheel, it will
> install executable wrappers for the entry points (like pip.exe) which
> are tied to the install location. You'd need to deal with that. But
> presumably conda already has to deal with that because setuptools does
> precisely the same.
>

indeed conda build (or is it install -- not sure!) does do path re-writing,
etc.


> > I'm still a bit confused about the role of wheel here. Why build a wheel,
> > just so you can go install it, rather than simply install the package
> > directly?
>
> Basically, because you can't "simply install". You may not have a
> compiler, or you may not have the required libraries, etc etc.
>

I'm thinking of the context of building a conda package -- or rpm, etc. --
not the general, "you are using pip as your package manager" case. And in
that case, you want to build it to match your environemnt -- which may not
be what a wheel onPyPi matches, for instance.

So you have to build the package -- not sure what that wheel step buys you.
But it doesn't cost much either, so why not?


> Generally, pretty much all of the reasons people don't compile all
> their software on their production machines :-)
>

right, but you're not running conda build on a production machine, either.

-CHB


-- 

Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20150521/a318dc34/attachment.html>


More information about the Distutils-SIG mailing list