I’ve packaged Hooke’s wtk branch for Gentoo. You need layman and my wtk overlay. With the doc flag enabled, you will also need the science overlay (for dev-python/numpydoc). Set up all of that with:
# emerge -av app-portage/layman
# layman --add science
# layman --add wtk
# emerge -av sci-physics/hooke
Hooke is routinely run successfully on Windows and Linux based systems. It is possible to run it happily on Mac OS X (though install can be a bit trickier). Technically, Hooke should run wherever the Python programming language is installed.
You’ll need the following Python modules:
Hooke is available as an Subversion repository:
$ svn checkout http://hooke.googlecode.com/svn/trunk/ hooke
There is also a GUI fork (Rolf Schmidt):
$ svn checkout http://hooke.googlecode.com/svn/branches/illysam/ hooke
And a fork versioned in Mercurial (W. Trevor King):
$ hg clone http://www.physics.drexel.edu/~wking/code/hg/hgwebdir.cgi/hooke/ hooke
$ hg update wtk
There are also periodic bundled releases. See the homepage for each fork for details. For example, get the most recent snapshot of Trevor’s fork in zip form with:
$ wget -O hooke.zip http://www.physics.drexel.edu/~wking/code/hg/hgwebdir.cgi/hooke/archive/tip.zip
$ unzip hooke.zip
Run:
$ python setup.py install
to install Hooke. Run:
$ python setup.py install --help
to see a list of installation options you may want to configure.
If you install Hooke, you should probably setup a system- or user-wide configuration file (Configuring Hooke), and replace any relative paths with appropriate absolute paths. For example:
# Commands for managing a command stack (similar to macros).
[command_stack plugin]
# Directory containing command stack files.
path = resources/command_stack
# wxWindows graphical user interface.
[gui user interface]
# Path to the hooke icon image.
icon image = /usr/share/hooke/doc/img/microscope.ico
# Path to the Hooke splash screen image.
splash screen image = /usr/share/hooke/doc/img/hooke.jpg
# Directory containing perspective files.
perspective path = ~/.hooke/resources/gui/perspective
If you like, you can avoid installation by running Hooke directly from it’s source directory:
$ wget -O hooke.zip http://www.physics.drexel.edu/~wking/code/hg/hgwebdir.cgi/hooke/archive/tip.zip
$ unzip hooke.zip
$ cd hooke
$ python bin/hk.py
You may need to give the full path for Python on Windows systems, and also check that the current working directory (.) is in your PYTHONPATH. See python(1) for details.