On 11/26/2015 06:44 AM, Pavlo Shchelokovskyy wrote: > Hi all, > > I was long puzzled why devstack is installing numpy. Being a fantastic > package itself, it has the drawback of taking about 4 minutes to compile > its C extensions when installing on our gates (e.g. [0]). I finally took > time to research and here is what I've found: > > it is used only by websockify package (installed by AFAIK ironic and > nova only), and there it is used to speed up the HyBi protocol. Although > the code itself has a path to work without numpy installed [1], the > setup.py of websockify declares numpy as a hard dependency [2]. > > My question is do we really need those speedups? Do we test any feature > requiring fast HyBi support on gates? Not installing numpy would shave 4 > minutes off any gate job that is installing Nova or Ironic, which seems > like a good deal to me. > > If we decide to save this time, I have prepared a pull request for > websockify that moves numpy requirement to "extras" [3]. As a > consequence numpy will not be installed by default as dependency, but > still possible to install with e.g. "pip install websockify[fastHyBi]", > and package builders can also specify numpy as hard dependency for > websockify package in package specs.
I went down this same path before. That masking is mandatory in the spec - https://github.com/kanaka/websockify/pull/163 The right answer here is to get the wheel mirrors working in infra. -Sean -- Sean Dague http://dague.net __________________________________________________________________________ OpenStack Development Mailing List (not for usage questions) Unsubscribe: [email protected]?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
