constructor
constructor copied to clipboard
post_install not running automatically on Windows
Checklist
- [X] I added a descriptive title
- [X] I searched open reports and couldn't find a duplicate
What happened?
Edit: First I thought this had to do with the choice of arguments in the yaml, but now I'm no longer sure. On further tests, it seems that the extra_files example, as originally defined, worked only the first time. When trying again it was simply ignored everytime. Sorry for not being able to provide a reproducible example. My current workaround is to use post_install_desc, which when checked ensures the script will run.
Original message (maybe misleading):
In the extra_files example, if you add the two new commands to construct.yaml (register_python=False and initialize_conda=False), post_install is no longer called (at least in Windows). This can be verified by adding if not exist "%PREFIX%\raise_if_called" exit 1
to test_install.bat (nothing happens).
The installer also doesn't show the usual "Running post_install...", which might indicate that something in the installer image might be broken.
On the other hand, if post_install_desc is set, then an unchecked checkbox appears and (if activated) the post_install script runs as expected.
This was tested on current master branch.