forked from platypush/platypush
SCSS compilation done in install command instead of build
This commit is contained in:
parent
a18002dea0
commit
7441c35566
1 changed files with 4 additions and 4 deletions
8
setup.py
8
setup.py
|
@ -4,7 +4,7 @@ import errno
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
import distutils.cmd
|
import distutils.cmd
|
||||||
from distutils.command.build import build
|
from distutils.command.install import install
|
||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages
|
||||||
|
|
||||||
|
|
||||||
|
@ -60,9 +60,9 @@ class WebBuildCommand(distutils.cmd.Command):
|
||||||
self.generate_css_files()
|
self.generate_css_files()
|
||||||
|
|
||||||
|
|
||||||
class BuildCommand(build):
|
class InstallCommand(install):
|
||||||
def run(self):
|
def run(self):
|
||||||
build.run(self)
|
install.run(self)
|
||||||
self.run_command('web_build')
|
self.run_command('web_build')
|
||||||
|
|
||||||
|
|
||||||
|
@ -125,7 +125,7 @@ setup(
|
||||||
scripts=['bin/platyvenv'],
|
scripts=['bin/platyvenv'],
|
||||||
cmdclass={
|
cmdclass={
|
||||||
'web_build': WebBuildCommand,
|
'web_build': WebBuildCommand,
|
||||||
'build': BuildCommand,
|
'install': InstallCommand,
|
||||||
},
|
},
|
||||||
# data_files = [
|
# data_files = [
|
||||||
# ('/etc/platypush', ['platypush/config.example.yaml'])
|
# ('/etc/platypush', ['platypush/config.example.yaml'])
|
||||||
|
|
Loading…
Reference in a new issue