Table of Contents
This section will tell you how to install Pantry on Linux. Pantry is written in Python, a cross-platform language. Therefore, it should run on any Unix-like operating system, including any of the BSDs and Mac OS X. However, I don't know anything about the BSDs or OS X, so I can't give you instructions for those. However, Pantry is distributed using the Python distutils, which is a standard way to distribute Python software, so if you familiarize yourself with distutils you should be able to install Pantry on any Unix-like operating system.[1]
I'll assume you're comfortable using command-line tools--if you weren't, you probably wouldn't be attempting to use a command-line nutrient analysis program. The following sections will tell you step by step how to install Pantry.
Warning for experienced users: Pantry (and most Python programs) do not use the GNU configure and build system--that is, ./configure; make; make install will not work, so read the directions below.
Unpack the Pantry distribution file using tar -xzf pantry-*.tar.gz. Change to the newly made directory with cd pantry-*/.
Become root, and issue python setup.py install. That's it!
Optional: install manual page. The Pantry
installer only installs the Panty source code
and two very short scripts used to start Pantry.
It does not install the man page. In the Pantry
distribution, you will find a file
docs/pantry.1
. Copy this to
a location where your other locally installed
section 1 manpages are--on my system, that is
usr/local/share/man/man1/
.
You will also find the manpage in Appendix A, Reference pages.
The installer only installs the Python source code and two trivial launcher scripts. It does not install documentation or many other handy files that are in the Pantry distribution. So you will want to keep handy the directory where you unpacked the Pantry tarball. We'll use some of those files later on.
Speaking of documentation, you will find this manual in
many formats (including PDF, plain text, and the XML
source code) in the docs/
directory.
[1] Pantry may also be run on Windows, though this is not tested at this point and the documentation is Unix-centric. Frankly I doubt many Windows users would be interested in running Pantry in a Windows environment; Windows is pretty hostile to the command line. Maybe running it in Cygwin wouldn't be so bad though.