Skip to content

Building Tellurium Spyder

Kiri Choi edited this page Aug 29, 2019 · 24 revisions

Binary installer for Tellurium Spyder is only available for Windows. For all other OSs, it is encouraged to install Tellurium Notebook or install through pip on Anaconda distros.

Windows version of Tellurium Spyder utilizes WinPython. If you are starting to configure Tellurium Spyder or wish to update WinPython, check Setting Up. If you are simply updating few packages, check Maintenance.

Setting Up

WinPython comes with either full Qt5 version or bare-bone Zero version for various Python distributions. Zero version is preferred because it is smaller and cleaner. We currently support Python 2.7 and 3.6 64-bit. Install corresponding WinPython installations. Copy settings folder to somewhere else and start installing packages listed under Required Packages using pip. Once this is done, follow the instruction below for both Python 2.7 and 3.6 versions of WinPython.

Manual Customizations

After adding specified packages, the following steps must be taken in either Windows or Mac version of Tellurium to ensure compatibility.

Spyder manual customization:

  • Contents of spyder_mod should be placed accordingly. Splash image from spyder/images must be placed in site-packages/spyder/images. These modifications to the Spyder source allow us to put customized splash images, default IPython console imports, and default code in the editor. Make sure .pth files are placed under site-packages.
  • For import plugins, check out the following page.
  • For opensbml plugins, check out the following page.
  • For rate law plugins, check out the following page.

Required Packages

Following lists the bare minimum number of packages required for Tellurium Spyder.

  • numpy - use pre-built wheels from here
  • scipy - use pre-built wheels from here
  • spyder
  • jupyter
  • ipywidgets
  • tellurium
  • libroadrunner
  • antimony
  • rrplugins
  • tesbml
  • tesedml
  • tenuml
  • tecombine
  • phrasedml
  • netplotlib
  • pySBOL
  • sbml2matlab
  • bioservices
  • sympy
  • matplotlib
  • pandas
  • scikit-learn
  • scikit-image
  • scikit-optimize
  • scikit-fuzzy
  • seaborn
  • bokeh
  • statsmodels
  • plotly
  • control
  • simplesbml
  • matplotlib2tikz
  • lmfit
  • cobra
  • biopython
  • tensorflow
  • Theano
  • twine
  • spyder-ratelaw
  • spyder-teimport
  • spyder-opensbml

Quick and Dirty Setup

Pretty much what is inside the Tellurium installation folder can be reused for releases. Simply copy the contents except the uninstaller executable to obtain a carbon copy of what was used to build the installer.

Building Binary Installers

Now that packages are installed and manual customization are configured, build binary installers using Inno Setup with ISSI.

Maintenance

In many cases, updating WinPython version is not necessary. If you already set up WinPython, simply update packages you wish to update using pip, re-build the installer and release.

Uploading to SourceForge

Check this page to upload installers to SourceForge website.