mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-17 06:52:59 +00:00
run bower/css in develop
ensures js/css dependencies are installed after `pip install -e`
This commit is contained in:
10
setup.py
10
setup.py
@@ -167,10 +167,20 @@ setup_args['cmdclass'] = {
|
||||
'css': CSS,
|
||||
}
|
||||
|
||||
|
||||
# setuptools requirements
|
||||
|
||||
if 'setuptools' in sys.modules:
|
||||
setup_args['zip_safe'] = False
|
||||
from setuptools.command.develop import develop
|
||||
class develop_js_css(develop):
|
||||
def run(self):
|
||||
if not self.uninstall:
|
||||
self.distribution.run_command('bower')
|
||||
self.distribution.run_command('css')
|
||||
develop.run(self)
|
||||
setup_args['cmdclass']['develop'] = develop_js_css
|
||||
|
||||
|
||||
with open('requirements.txt') as f:
|
||||
install_requires = [ line.strip() for line in f.readlines() ]
|
||||
|
Reference in New Issue
Block a user