We use conda constructor https://github.com/conda/constructor along with the configuration file located at
python-microscopy/construct.yaml to build executable installers for Windows and OSX.
- Make sure conda packages for
python-microscopy,pyme-dependsandpymecompressare up to date - [optional] Create a clean conda environment (or just install constructor into the conda base environment)
conda install constructorNOTE: At one point it was neccesary to git clone the constructor source, checkout the "v3" branch and do apython setup.py installinstead of the above. I think that the v3 branch has now been merged into main, but it might be worth trying the source install if you run into issues.- Download the latest
conda.exefor the platform you are building for from https://repo.anaconda.com/pkgs/misc/conda-execs/ see also conda/constructor#257 - Change to the
python-microscopydirectory - Edit
construct.yamlto set the version to the latest conda package version - Run
constructor --conda-exe PATH_TO_CONDA.EXE .
- Generated installer on Windows displays a bunch of complaint dialogs saying that it's not working. These can safely be dismissed whilst still resulting in a functional install
- Setting the installer icon is not working
- Might be getting a framework error (or other dependency problem) on OSX (it's been a while since I checked)
- There was a problem with packages wanting to run post-install scripts on OSX (not sure if this has gone away)