mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-15 14:03:02 +00:00
@@ -5,7 +5,7 @@ python:
|
|||||||
- 3.4
|
- 3.4
|
||||||
- 3.3
|
- 3.3
|
||||||
before_install:
|
before_install:
|
||||||
- npm install -g less bower jupyter/configurable-http-proxy
|
- npm install -g less less-plugin-clean-css bower jupyter/configurable-http-proxy
|
||||||
- git clone --quiet --depth 1 https://github.com/minrk/travis-wheels travis-wheels
|
- git clone --quiet --depth 1 https://github.com/minrk/travis-wheels travis-wheels
|
||||||
install:
|
install:
|
||||||
- pip install -f travis-wheels/wheelhouse -r dev-requirements.txt .
|
- pip install -f travis-wheels/wheelhouse -r dev-requirements.txt .
|
||||||
|
4
setup.py
4
setup.py
@@ -158,7 +158,7 @@ class CSS(BaseCommand):
|
|||||||
sourcemap = style_css + '.map'
|
sourcemap = style_css + '.map'
|
||||||
try:
|
try:
|
||||||
check_call([
|
check_call([
|
||||||
'lessc', '-x', '--verbose',
|
'lessc', '--clean-css', '--verbose',
|
||||||
'--source-map-basepath={}'.format(static),
|
'--source-map-basepath={}'.format(static),
|
||||||
'--source-map={}'.format(sourcemap),
|
'--source-map={}'.format(sourcemap),
|
||||||
'--source-map-rootpath=../',
|
'--source-map-rootpath=../',
|
||||||
@@ -166,7 +166,7 @@ class CSS(BaseCommand):
|
|||||||
])
|
])
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
print("Failed to run lessc: %s" % e, file=sys.stderr)
|
print("Failed to run lessc: %s" % e, file=sys.stderr)
|
||||||
print("You can install less with `npm install -g less`", file=sys.stderr)
|
print("You can install less with `npm install -g less less-plugin-clean-css`", file=sys.stderr)
|
||||||
raise
|
raise
|
||||||
# update data-files in case this created new files
|
# update data-files in case this created new files
|
||||||
self.distribution.data_files = get_data_files()
|
self.distribution.data_files = get_data_files()
|
||||||
|
Reference in New Issue
Block a user