def run(self): # build foris plugin files from foris_plugins_distutils import build cmd = build(copy.copy(self.distribution)) cmd.ensure_finalized() cmd.run() # build package build_py.run(self)