<div dir="ltr">Hi Roman,<div><br></div><div>those wheels still have to be built and maintained by someone. As there are no wheels for Linux in upstream PyPI, those would have to be built and maintained by openstack-infra, and I'm not sure how big variety of platforms has to be supported. Just taking corresponding deb/rpm package from upstream seems better option in such case.</div><div><br></div><div>Cheers,</div><br><div class="gmail_quote"><div dir="ltr">On Thu, Nov 26, 2015 at 3:57 PM Roman Podoliaka <<a href="mailto:rpodolyaka@mirantis.com" target="_blank">rpodolyaka@mirantis.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Pavlo,<br>
<br>
Can we just use a wheel package for numpy instead?<br>
<br>
Thanks,<br>
Roman<br>
<br>
On Thu, Nov 26, 2015 at 3:00 PM, Pavlo Shchelokovskyy<br>
<<a href="mailto:pshchelokovskyy@mirantis.com" target="_blank">pshchelokovskyy@mirantis.com</a>> wrote:<br>
> Hi again,<br>
><br>
> I've went on and created a proper pull request to websockify [0], comment<br>
> there if you think we need it :)<br>
><br>
> I also realized that there is another option, which is to include<br>
> python-numpy to files/debs/ironic and files/debs/nova (strangely it is<br>
> already present in rpms/ for nova, noVNC and spice services).<br>
> This should install a pre-compiled version from distro repos, and should<br>
> also speed things up.<br>
><br>
> Any comments welcome.<br>
><br>
> [0] <a href="https://github.com/kanaka/websockify/pull/212" rel="noreferrer" target="_blank">https://github.com/kanaka/websockify/pull/212</a><br>
><br>
> Best regards,<br>
><br>
> On Thu, Nov 26, 2015 at 1:44 PM Pavlo Shchelokovskyy<br>
> <<a href="mailto:pshchelokovskyy@mirantis.com" target="_blank">pshchelokovskyy@mirantis.com</a>> wrote:<br>
>><br>
>> Hi all,<br>
>><br>
>> I was long puzzled why devstack is installing numpy. Being a fantastic<br>
>> package itself, it has the drawback of taking about 4 minutes to compile its<br>
>> C extensions when installing on our gates (e.g. [0]). I finally took time to<br>
>> research and here is what I've found:<br>
>><br>
>> it is used only by websockify package (installed by AFAIK ironic and nova<br>
>> only), and there it is used to speed up the HyBi protocol. Although the code<br>
>> itself has a path to work without numpy installed [1], the setup.py of<br>
>> websockify declares numpy as a hard dependency [2].<br>
>><br>
>> My question is do we really need those speedups? Do we test any feature<br>
>> requiring fast HyBi support on gates? Not installing numpy would shave 4<br>
>> minutes off any gate job that is installing Nova or Ironic, which seems like<br>
>> a good deal to me.<br>
>><br>
>> If we decide to save this time, I have prepared a pull request for<br>
>> websockify that moves numpy requirement to "extras" [3]. As a consequence<br>
>> numpy will not be installed by default as dependency, but still possible to<br>
>> install with e.g. "pip install websockify[fastHyBi]", and package builders<br>
>> can also specify numpy as hard dependency for websockify package in package<br>
>> specs.<br>
>><br>
>> What do you think?<br>
>><br>
>> [0]<br>
>> <a href="http://logs.openstack.org/82/236982/6/check/gate-tempest-dsvm-ironic-agent_ssh/1141960/logs/devstacklog.txt.gz#_2015-11-11_19_51_40_784" rel="noreferrer" target="_blank">http://logs.openstack.org/82/236982/6/check/gate-tempest-dsvm-ironic-agent_ssh/1141960/logs/devstacklog.txt.gz#_2015-11-11_19_51_40_784</a><br>
>> [1]<br>
>> <a href="https://github.com/kanaka/websockify/blob/master/websockify/websocket.py#L143" rel="noreferrer" target="_blank">https://github.com/kanaka/websockify/blob/master/websockify/websocket.py#L143</a><br>
>> [2] <a href="https://github.com/kanaka/websockify/blob/master/setup.py#L37" rel="noreferrer" target="_blank">https://github.com/kanaka/websockify/blob/master/setup.py#L37</a><br>
>> [3]<br>
>> <a href="https://github.com/pshchelo/websockify/commit/0b1655e73ea13b4fba9c6fb4122adb1435d5ce1a" rel="noreferrer" target="_blank">https://github.com/pshchelo/websockify/commit/0b1655e73ea13b4fba9c6fb4122adb1435d5ce1a</a><br>
>><br>
>> Best regards,<br>
>> --<br>
>> Dr. Pavlo Shchelokovskyy<br>
>> Senior Software Engineer<br>
>> Mirantis Inc<br>
>> <a href="http://www.mirantis.com" rel="noreferrer" target="_blank">www.mirantis.com</a><br>
><br>
> --<br>
> Dr. Pavlo Shchelokovskyy<br>
> Senior Software Engineer<br>
> Mirantis Inc<br>
> <a href="http://www.mirantis.com" rel="noreferrer" target="_blank">www.mirantis.com</a><br>
><br>
> __________________________________________________________________________<br>
> OpenStack Development Mailing List (not for usage questions)<br>
> Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
><br>
<br>
__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</blockquote></div></div><div dir="ltr">-- <br></div><div dir="ltr"><span>Dr. Pavlo Shchelokovskyy</span><div>Senior Software Engineer</div><div>Mirantis Inc</div><div><a>www.mirantis.com</a></div></div>