From 7441c355662d5d4cb621c35657c299e0e6882fe2 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Wed, 10 Jun 2020 12:15:02 +0200 Subject: [PATCH] SCSS compilation done in install command instead of build --- setup.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index f4a8aa51..b88a94fb 100755 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ import errno import os import re import distutils.cmd -from distutils.command.build import build +from distutils.command.install import install from setuptools import setup, find_packages @@ -60,9 +60,9 @@ class WebBuildCommand(distutils.cmd.Command): self.generate_css_files() -class BuildCommand(build): +class InstallCommand(install): def run(self): - build.run(self) + install.run(self) self.run_command('web_build') @@ -125,7 +125,7 @@ setup( scripts=['bin/platyvenv'], cmdclass={ 'web_build': WebBuildCommand, - 'build': BuildCommand, + 'install': InstallCommand, }, # data_files = [ # ('/etc/platypush', ['platypush/config.example.yaml'])