Is it possible to process dist files before they are build via a setuptools hook?

Lawrence D’Oliveiro lawrencedo99 at gmail.com
Fri Sep 9 16:59:07 EDT 2016


On Friday, September 9, 2016 at 7:52:32 PM UTC+12, Mark Summerfield wrote:
> So, I need to have some hook that lets me run a python script after the build
> dir has been populated but before the distributable is made -- is this
> possible?

You can subclass distutils.command.build with your own custom version that does whatever additional steps you require. Here <https://github.com/ldo/pycairo/blob/ldo/setup.py> is one example.



More information about the Python-list mailing list