Figure out a way to package LESS in friendlier manner
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Won't Fix
|
Wishlist
|
Gabriel Hurley |
Bug Description
The way we're packaging LESS right now (in the /bin dir) doesn't make us a great citizen towards downstream packagers.
In an ideal world, the lessc script would be installed as a standard script and be moved to the platform's scripts dir (e.g. /usr/local/bin). This can be easily accomplished by listing it as a script in setup.py. However, the path to the related .js files is hardcoded into the lessc file and assumes that they are in the top level of the adjacent "lib" directory. Forcing setuptools/
If we can solve that bit, then the path to the lessc binary in settings.py can then be written as a check for the file at the expected path with a fallback to the output of "which lessc" on the shell.
Either way, the current method of just shoving horizon's "bin" directory into the package isn't very friendly and will probably need to be fixed before the final Folsom release.
That said, I defer to actual downstream packagers to shed more light on the situation. I know just enough about packaging to get by.
Changed in horizon: | |
status: | Fix Committed → Confirmed |
Changed in horizon: | |
status: | Confirmed → Won't Fix |
Fix proposed to branch: master /review. openstack. org/9309
Review: https:/