Show More
@@ -70,6 +70,7 b' from setupbase import (' | |||
|
70 | 70 | update_submodules, |
|
71 | 71 | require_submodules, |
|
72 | 72 | UpdateSubmodules, |
|
73 | CompileCSS, | |
|
73 | 74 | ) |
|
74 | 75 | from setupext import setupext |
|
75 | 76 | |
@@ -236,6 +237,7 b" setup_args['cmdclass'] = {" | |||
|
236 | 237 | 'sdist' : git_prebuild('IPython', sdist), |
|
237 | 238 | 'upload_wininst' : UploadWindowsInstallers, |
|
238 | 239 | 'submodule' : UpdateSubmodules, |
|
240 | 'css' : CompileCSS, | |
|
239 | 241 | } |
|
240 | 242 | |
|
241 | 243 | #--------------------------------------------------------------------------- |
@@ -30,6 +30,7 b' except:' | |||
|
30 | 30 | from distutils.command.build_py import build_py |
|
31 | 31 | from distutils.cmd import Command |
|
32 | 32 | from glob import glob |
|
33 | from subprocess import call | |
|
33 | 34 | |
|
34 | 35 | from setupext import install_data_ext |
|
35 | 36 | |
@@ -474,3 +475,26 b' def require_submodules(command):' | |||
|
474 | 475 | sys.exit(1) |
|
475 | 476 | command.run(self) |
|
476 | 477 | return DecoratedCommand |
|
478 | ||
|
479 | #--------------------------------------------------------------------------- | |
|
480 | # Notebook related | |
|
481 | #--------------------------------------------------------------------------- | |
|
482 | ||
|
483 | class CompileCSS(Command): | |
|
484 | """Recompile Notebook CSS | |
|
485 | ||
|
486 | Regenerate the compiled CSS from LESS sources. | |
|
487 | ||
|
488 | Requires various dev dependencies, such as fabric and lessc. | |
|
489 | """ | |
|
490 | description = "Recompile Notebook CSS" | |
|
491 | user_options = [] | |
|
492 | ||
|
493 | def initialize_options(self): | |
|
494 | pass | |
|
495 | ||
|
496 | def finalize_options(self): | |
|
497 | pass | |
|
498 | ||
|
499 | def run(self): | |
|
500 | call("fab css", shell=True, cwd=pjoin(repo_root, "IPython", "html")) |
General Comments 0
You need to be logged in to leave comments.
Login now