<p dir="ltr">I thought upx only works on executables, not shared libraries?</p>
<p dir="ltr">The pynativelib stuff could also significantly shrink our venvs compared to the current situation.</p>
<p dir="ltr">-n</p>
<div class="gmail_quote">On Apr 20, 2016 2:14 AM, "Olivier Grisel" <<a href="mailto:olivier.grisel@ensta.org">olivier.grisel@ensta.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This project seems interesting:<br>
<br>
<a href="http://upx.sourceforge.net/" rel="noreferrer" target="_blank">http://upx.sourceforge.net/</a><br>
<br>
This could potentially reduce the size of our wheels significantly to<br>
both reduce bandwidth usage<br>
and speed up install times with pip. We could add an option to<br>
auditwheel repair to enable UPX compaction on the compiled extensions<br>
and the grafted libraries.<br>
<br>
Another benefit would be to reduce on-disk size of the typical<br>
virtualenv holding the full scipy stack.<br>
This can be important to deploy it in serverless environments such as<br>
AWS lambda which has size restrictions (50MB) for the hosted code. For<br>
instance see this blog post on this topic (it does not use UPX, only<br>
stripped binaries):<br>
<br>
<a href="https://serverlesscode.com/post/deploy-scikitlearn-on-lamba/" rel="noreferrer" target="_blank">https://serverlesscode.com/post/deploy-scikitlearn-on-lamba/</a><br>
<br>
Note that this second use case (venv compaction) could easily be<br>
addressed by a tool not related to wheels but I thought that using UPX<br>
upstream in the build & packaging process might be of general interest<br>
(primarily to save bandwidth and speedup installs).<br>
<br>
--<br>
Olivier<br>
<a href="http://twitter.com/ogrisel" rel="noreferrer" target="_blank">http://twitter.com/ogrisel</a> - <a href="http://github.com/ogrisel" rel="noreferrer" target="_blank">http://github.com/ogrisel</a><br>
_______________________________________________<br>
Wheel-builders mailing list<br>
<a href="mailto:Wheel-builders@python.org">Wheel-builders@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/wheel-builders" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/wheel-builders</a><br>
</blockquote></div>