One last attempt to get shit to work

This commit is contained in:
Fabio Manganiello 2020-06-10 12:37:26 +02:00
parent 929b7c9a5c
commit 4e8876309c

View file

@ -5,9 +5,9 @@ import os
import re import re
from distutils.cmd import Command from distutils.cmd import Command
from distutils.command.build import build as _build from distutils.command.build import build as _build
from distutils.command.install import install from distutils.command.install import install as _install
from setuptools import setup, find_packages
from setuptools.command.bdist_egg import bdist_egg as _bdist_egg from setuptools.command.bdist_egg import bdist_egg as _bdist_egg
from setuptools import setup, find_packages
class WebBuildCommand(Command): class WebBuildCommand(Command):
@ -62,10 +62,10 @@ class WebBuildCommand(Command):
self.generate_css_files() self.generate_css_files()
class InstallCommand(install): class install(_install):
def do_egg_install(self): def do_egg_install(self):
self.run_command('web_build') self.run_command('web_build')
install.do_egg_install(self) _install.do_egg_install(self)
class bdist_egg(_bdist_egg): class bdist_egg(_bdist_egg):
@ -137,7 +137,7 @@ setup(
scripts=['bin/platyvenv'], scripts=['bin/platyvenv'],
cmdclass={ cmdclass={
'web_build': WebBuildCommand, 'web_build': WebBuildCommand,
'install': InstallCommand, 'install': install,
'build': build, 'build': build,
'bdist_egg': bdist_egg, 'bdist_egg': bdist_egg,
}, },