One very simple technique used by some projects like numpy is just to have ``setup.py`` write a file into the source tree before calling setup().
example: https://github.com/numpy/numpy/blob/master/setup.py#L338-L339 -Robert On Tue, Feb 2, 2016 at 1:48 PM, AltSheets Dev < altsheets+mailingli...@gmail.com> wrote: > Hello everyone on distutils-sig@, > this is a first timer, please be gentle to me *g* > > I am just starting with setuptools, > and I just cannot get my idea working: > > At install time, > I'd like to generate a file with a random UID, > which will later always be the same. > > I had hoped for a setup('postinstall'='my.py') or setup('preinstall'= ...) > but there isn't one. > > Then I have been trying with a customized > distutils.command.install.install > class - but so far with no success. > > Here is a detailed explanation of my futile attempts: > https://github.com/altsheets/coinquery/blob/master/README-setupCustom.md > > I guess this is be a pretty frequent question? > > Happy about any hints. > > Thanks. > :-) > > > > _______________________________________________ > Distutils-SIG maillist - Distutils-SIG@python.org > https://mail.python.org/mailman/listinfo/distutils-sig > > -- -Robert
_______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org https://mail.python.org/mailman/listinfo/distutils-sig