Python-CA  installation memo

KEK, High Energy Accelerator Research Organization
Acceleator Lab
Noboru Yamamoto

  1. You need Python 2.4 or later and EPICS 3.14.7 or later. (It may work with older version, but these are oldest versions I have built.) 
  2. Get a Python-CA extension module package as a tarball  here[updated on 2007/05/03].
  3.  Expand this tarball at  your working directory.
  4. Open setup.py in your favourite editor and change some parametes, such as EPICS architechture and installation path, appropriately.
    EPICSROOT=os.path.join("your epics root path")
    EPICSBASE=os.path.join(EPICSROOT,"base")
    EPICSEXT=os.path.join(EPICSROOT,"extensions")
    HOSTARCH="your epics host architecture"
  5. run the installation script, setup.py/  for build extension moules.
    python setup.py build
  6. if you encounter the compilation errors or any trouble , please send a message to  noboru.yamamoto_at_kek.jp.
  7. You need to have write permission of the target directories for installation. Run:
    python setup.py install
  8. Test extension module.
start python interpreter.
 python
Try to import ca module
 import ca
Check access to EPICS DB. (Assuming excas is running.)
ca.Get("fred")

Note to a GUI programmer:

You should not call functions in GUI system(Tkinter or wxPython) in the Python-CA callback routines. It will crash your running program immediately.