<p dir="ltr">Tell me more about setup-requires. It's nice to hear it has users. Should we promote it to a pypa project?</p>
<div class="gmail_quote">On Aug 27, 2014 7:45 AM, "James Tocknell" <<a href="mailto:aragilar@gmail.com">aragilar@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div>Scipy (the package) doesn't work due to the build requirement on numpy (and the lack of metadata stating this), however some of the others have included <a href="https://bitbucket.org/dholth/setup-requires" target="_blank">https://bitbucket.org/dholth/setup-requires</a> (or something equivalent) to install using numpy. Effectively, if the package can be pip installed, then wheeling should work (I created a script a while ago which uses distlib to modify scipy wheels such that they contain the correct metadata, and I haven't run into any issues). Matplotlib works, however some of the graphics toolkits aren't wheelable (e.g. pygtk and pyqt).<br>
<br>One case that I know of where wheels do not replace a straight install is PySide (there needs to be rpath modification), however the PySide developers are aware of this and in their installation instructions they explicitly mention to run a post install script if installing from a wheel (The post install probably could be got rid of if $ORIGIN was used, but that would involve digging into the cmake install, and checking that it doesn't break anything. Also, I'm not sure how widely $ORIGIN is supported). I'd guess that any package which creates shared libraries which link to each other would have this problem also, though how many of those are pip installable is probably almost none.<br>
<br></div>James<br><div><div class="gmail_extra"><br><br><div class="gmail_quote">On 27 August 2014 17:29, Donald Stufft <span dir="ltr"><<a href="mailto:donald@stufft.io" target="_blank">donald@stufft.io</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><div><br><div><blockquote type="cite"><div>On Aug 27, 2014, at 2:50 AM, Paul Moore <<a href="mailto:p.f.moore@gmail.com" target="_blank">p.f.moore@gmail.com</a>> wrote:</div>
<br><div>tl; dr; If you know of a project that can't be successfully installed<br>with "pip wheel proj; pip install /path/to/the/wheel.whl" can you let<br>me know the details?<br><br>One of the longer-term goals of the introduction of wheels was to<br>
split the build and install steps for a package - specifically, in<br>pip, to restrict "pip install" to installing from wheels, and when no<br>wheel is available, to (transparently) run "pip wheel" on the sdist<br>
followed by "pip install on the generated wheel". During a discussion<br>yesterday, I realised that I don't know how close we are to that goal.<br>So I'm looking for information on packages which don't install<br>
properly from wheels at the moment. If anyone has examples of packages<br>where replacing "pip install foo" with "pip wheel -w /tmp/xxx; pip<br>install /tmp/xxx/*.whl" does not result in an equivalent install,<br>
could they post them here with details of how & why they fail?<br><br>Things I already know about (but would like specific examples):<br><br>1. Post-install steps included in setup.py. That should be covered by<br>the support in Metadata 2.0. I'd also be interested in how much of an<br>
issue omitting the postinstall would be in practice (for instance many<br>such steps just set up "Start Menu" type shortcuts, which are not<br>essential for the package to be usable).<br>2. Actually, that's the only one :-)<br>
<br>Things that should not be a problem (but might be):<br><br>1. Numpy (and the scipy stack) need better tagging facilities for<br>wheels - but that wouldn't matter for a wheel that's built, used, then<br>thrown away.<br>
2. Some things are complex to build - but I don't know of any cases<br>where building a wheel is *more* complex than installing, and I don't<br>see how it could be, in theory.<br>3. Projects that customise setup.py so much that they aren't<br>
compatible with setuptools and bdist_wheel. Such projects are quite<br>probably already incompatible with pip (which injects setuptools when<br>running setup.py anyway) and so not relevant for this discussion. But<br>if any do work with "pip install" but not "pip wheel", I'd like to<br>
hear about them.<br><br>Thanks in advance for any information.<br>Paul<br>_______________________________________________<br>Distutils-SIG maillist - <a href="mailto:Distutils-SIG@python.org" target="_blank">Distutils-SIG@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/distutils-sig" target="_blank">https://mail.python.org/mailman/listinfo/distutils-sig</a><br></div></blockquote></div><div><br></div></div></div><div><div>Numpy (and other SciPy stack) has the problem too that it uses numpy.distutils</div>
<div>so I'm not even sure if ``pip wheel`` actually works on it at all or not. They</div><div>might have their own support for ``setup.py bdist_wheel`` though I don't know.</div></div><br><div>
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<div>---</div><div>Donald Stufft</div><div>PGP: 7C6B 7C5D 5E2B 6356 A926 F04F 6E3C BCE9 3372 DCFA</div></div></div>
</div>
<br></div><br>_______________________________________________<br>
Distutils-SIG maillist - <a href="mailto:Distutils-SIG@python.org" target="_blank">Distutils-SIG@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/distutils-sig" target="_blank">https://mail.python.org/mailman/listinfo/distutils-sig</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Don't send me files in proprietary formats (.doc(x), .xls, .ppt etc.). It isn't good enough for <a href="http://opendotdotdot.blogspot.com/2010/04/rms-and-tim-berners-lee-separated-at.html" target="_blank">Tim Berners-Lee</a>, and it isn't good enough for me either. For more information visit <a href="http://www.gnu.org/philosophy/no-word-attachments.html" target="_blank">http://www.gnu.org/philosophy/no-word-attachments.html</a>.<br>
<br>Truly great madness cannot be achieved without significant intelligence.<br> - Henrik Tikkanen<br><br>If you're not messing with your sanity, you're not having fun.<br> - James Tocknell<br><br>In theory, there is no difference between theory and practice; In practice, there is.
</div></div></div>
<br>_______________________________________________<br>
Distutils-SIG maillist - <a href="mailto:Distutils-SIG@python.org">Distutils-SIG@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/distutils-sig" target="_blank">https://mail.python.org/mailman/listinfo/distutils-sig</a><br>
<br></blockquote></div>