[Distutils] setup('postinstall'='my.py')
Robert T. McGibbon
rmcgibbo at gmail.com
Tue Feb 2 18:00:02 EST 2016
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+mailinglists at 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 at python.org
> https://mail.python.org/mailman/listinfo/distutils-sig
>
>
--
-Robert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20160202/36a063f1/attachment.html>
More information about the Distutils-SIG
mailing list