Skip to content

Notes on freezing with Windows

John Readey edited this page May 17, 2016 · 2 revisions

This page collects some notes after a successful freezing of HDF Compass on a Mac OS X running Yosemite. The notes assume a ideally clean machine, and they guide you to create a setup that is mainly based on brew.

Python Installation

Install WxPython

Install shapely

  • pip install https://github.com/Toblerity/Shapely/archive/master.zip
  • conda install -c scitools cartopy

Install BAG

  • pip install hydroffice.bag

HDF Compass installation

  • clone the HDF Compass repository (e.g., with SourceTree)
  • install it in dev mode: pip install -e .
  • test if it works: python HDFCompass.py

HDF Compass freezing

  • pip install pyinstaller
  • pip install --upgrade setuptools==19.2
  • Update HDFCompass.1file.spec with path to mkl dlls: a.binaries + [('my_lib.dll', 'path/to/dll', 'BINARY')]
  • pyinstaller --clean -y --hiddenimport-FixTk HDFCompass.1file.spec
  • test if it works: ./dist/HDFCompass_0.6.0b3