Re: [Distutils] setup('postinstall'='my.py')

2016-02-03 Thread AltSheets Dev
Thanks a lot! I could get that working! See setup.py lines 13 and 69 in https://github.com/altsheets/coinquery/blob/f1759a6dd5cd891f493da343c52e8184b45fc926/setup.py BUT my custom install routines are called when the windows installer binary is CREATED, not when it is UNPACKED on the target

Re: [Distutils] setup('postinstall'='my.py')

2016-02-03 Thread Leonardo Rochael Almeida
Hi, The thing about setup.py is that it only runs at "build time". However, it looks like you want to generate a unique id at every install. Since you mentioned a windows installer, consider adding some code to the installer itself so that it calls an entry point in your library to generate

Re: [Distutils] setup('postinstall'='my.py')

2016-02-02 Thread Robert T. McGibbon
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 <

[Distutils] setup('postinstall'='my.py')

2016-02-02 Thread AltSheets Dev
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