← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1020799] Re: Figure out a way to package LESS in friendlier manner

 

** Changed in: horizon
       Status: Confirmed => Won't Fix

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1020799

Title:
  Figure out a way to package LESS in friendlier manner

Status in OpenStack Dashboard (Horizon):
  Won't Fix

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/distutils to
  place those files there is beyond the scope of my knowledge.

  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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1020799/+subscriptions