Installation
============

The installation of PythonCAD is a two-step process. First,
execute the setup.py script

$ python setup.py install

This command will install the files in the "Generic" and
"Interface" directories into the Python library directory.
You may need to be root to do this on your machine.

Next, copy the file "gtkpycad.py" into one of the directories
in your PATH. Commonly this will be "/usr/local/bin", or
"/usr/bin".

At this point you should be able to invoke the gtkpycad.py
file at a prompt:

$ gtkpycad.py

After a few seconds, the application should start.

Problems
========

If something doesn't work, there are a couple of things to
check. For the sake of a few examples, pretend that the
python installation is in "/usr" and Python-2.2.X is installed,
so the site-packages directory is "/usr/lib/python2.2/site-packages",
and the python binary is "/usr/bin/python". Also pretend that
the "gtkpycad.py" file is copied into "/usr/bin".

1) Does "/usr/bin/gtkpycad.py" have the execute bits set? If
   not, do a chmod a+x /usr/bin/gtkpythoncad.

Check that there is a "PythonCAD" directory available in
python's "sys.path" variable

$ python
[ ... messages ... ]
>>> import sys
>>> sys.path
[ ... look here for a directory ending in 'PythonCAD' ... ]

If the 'PythonCAD' directory isn't found, then you'll need to
re-run the setup.py script again. I can't see this being a
common failure unless there are multiple copies of python
installed on the machine, and the python that runs setup.py
is different than the one this example presumes is in
'/usr/bin'.


