Skip to content

Building the Knossos Cuber

Norbert Pfeiler edited this page Mar 14, 2015 · 2 revisions

The Knossos Cuber is a python tool used to create KNOSSOS datasets from image stacks. Its dependencies are:

  • Python 2
  • PyQt4 for Python 2
  • numpy
  • scipy
  • pillow

Building an executable for Windows

To create an .exe file for Windows you need the dependencies mentioned above and follow these steps:

  • Install py2exe

  • In the directory with the knossos_cuber_gui.py create a setup.py with following content:

      from distutils.core import setup
      import py2exe
    
      setup(
          windows=['knossos_cuber_gui.py'],
          options={"py2exe" : {"includes" : ["sip"]}}
          )
    
  • Install Microsoft Visual C++ 2008 Redistributable Package (x86). This will contain a msvcp90.dll.

  • Copy the msvcp90.dll into the directory containing the setup.py

  • Now run python setup.py py2exe. The resulting binary will be in the newly created dist folder.

Clone this wiki locally