The object is self-describing: I need to subclass the setup.py build in order to complete the additional build steps. However, I could not find the build command class for inheritance. I have tried:
class BuildCommandProxy(setuptools.command.build): pass
and
class BuildCommandProxy(distutils.command.build): pass
and even:
class BuildCommandProxy(setuptools.distutils.command.build): pass
without any success.
UPDATE : Finding how to implement something like this with setuptools .
UPDATE2 . I have a custom command implementation:
class CustomCommand(setuptools.Command):
What I would like to implement is to pass this cmdclass command as follows:
cmdclass={ "build": CustomCommand, }
and then call the original build in CustomCommand.run after doing some custom steps.
source share