[openstack-dev] [Horizon] the future of angularjs development in Horizon

Radomir Dopieralski openstack at sheep.art.pl
Tue Nov 18 16:14:45 UTC 2014

On 18/11/14 12:54, Matthias Runge wrote:
> On Tue, Nov 18, 2014 at 09:36:00PM +1100, Richard Jones wrote:
>> I guess I got the message that turning bower packages into system packages
>> was something that the Linux packagers were not keen on. Did I get the
>> message wrong there? If so, *and* we can get the bower stuff through #infra
>> and global-requirements then yes, we should totally try to avoid adding the
>> xstatic layer :)
> For me, it's more work to turn packages into bower, or to translate
> bower packages to system packages.
> But that is purely because we don't have bower packaged currently in Fedora.
> I would vote for the cleaner way (whatever that is).
> XStatic is obviously not the cleanest way, but a good compromise in most
> situations.

The way I thought about it, we would simply replace the Bower packages
with the corresponding system packages, by just changing the path in the
settings.py file.

Maybe an example would help illustrate it.
Currently we have something like this:


We would replace that with:

       os.path.join(BASE_DIR, 'bower_modules/angular'),

or wherever bower puts the files. Now, the packagers would replace those
lines with:


or whatever the packages in their distribution use. It's less work than
having to make a whole xstatic package just to put that single path in
there. The horizon system package would already depend on all the
javascript library packages, so we are sure the files are there.

Radomir Dopieralski

More information about the OpenStack-dev mailing list