Installing the pyceda module

Download

Run the following commands in a bash terminal to download the pyceda module (as a tarball named pyceda-0.7.tar.gz) from the cedanet website:


mkdir ~/developer
cd ~/developer
wget http://cedanet.com.au/ceda/xcpp/linux/pyceda-0.7.tar.gz

Alternatively download the tarball using this link: pyceda-0.7.tar.gz (file size is 18.3 MB)

Validate download

You can optionally validate the download by computing the SHA-1 checksum, using the following command:


sha1sum pyceda-0.7.tar.gz

The checksum should equal b33ff091313a0018fa711972904aa8123b0a2b5e

Uncompress tarball

Run the following commands to uncompress pyceda-0.7.tar.gz into ~/developer:


cd ~/developer
tar -xvf pyceda-0.7.tar.gz

This generates the following output:

pyceda-0.7/
pyceda-0.7/PKG-INFO
pyceda-0.7/pyceda/
pyceda-0.7/pyceda/utils.py
pyceda-0.7/pyceda/__init__.py
pyceda-0.7/pyceda/namespace.py
pyceda-0.7/pyceda/lib/
pyceda-0.7/pyceda/lib/linux/
pyceda-0.7/pyceda/lib/linux/libcxMessage.so
pyceda-0.7/pyceda/lib/linux/libcxPersistStore.so
pyceda-0.7/pyceda/lib/linux/libcxBuild.so
pyceda-0.7/pyceda/lib/linux/libcxPython.so
pyceda-0.7/pyceda/lib/linux/libcxUtils.so
pyceda-0.7/pyceda/lib/linux/libcxObject.so
pyceda-0.7/pyceda/lib/linux/libcxMacroExpander.so
pyceda-0.7/pyceda/lib/linux/libcxCedaScript.so
pyceda-0.7/pyceda/lib/linux/libcxThread.so
pyceda-0.7/pyceda/lib/linux/libcxLss.so
pyceda-0.7/pyceda/lib/linux/libcxOperation.so
pyceda-0.7/pyceda/lib/linux/libcxRmi.so
pyceda-0.7/pyceda/lib/linux/libcxSocket.so
pyceda-0.7/pyceda/lib/linux/libcxWorkingSetIpc.so
pyceda-0.7/pyceda/pstore.py
pyceda-0.7/setup.py

and results in the following tree structure:

 pyceda-0.7    ├── PKG-INFO
    ├── pyceda
    │   ├── __init__.py
    │   ├── lib
    │   │   └── linux
    │   │       ├── libcxBuild.so
    │   │       ├── libcxCedaScript.so
    │   │       ├── libcxLss.so
    │   │       ├── libcxMacroExpander.so
    │   │       ├── libcxMessage.so
    │   │       ├── libcxObject.so
    │   │       ├── libcxOperation.so
    │   │       ├── libcxPersistStore.so
    │   │       ├── libcxPython.so
    │   │       ├── libcxRmi.so
    │   │       ├── libcxSocket.so
    │   │       ├── libcxThread.so
    │   │       ├── libcxUtils.so
    │   │       └── libcxWorkingSetIpc.so
    │   ├── namespace.py
    │   ├── pstore.py
    │   └── utils.py
    └── setup.py

Install

To install the pyceda module on your system, run the command:


cd ~/developer/pyceda-0.7 
sudo python setup.py install

This generates the following output:

running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/pyceda
copying pyceda/utils.py -> build/lib.linux-x86_64-2.7/pyceda
copying pyceda/__init__.py -> build/lib.linux-x86_64-2.7/pyceda
copying pyceda/namespace.py -> build/lib.linux-x86_64-2.7/pyceda
copying pyceda/pstore.py -> build/lib.linux-x86_64-2.7/pyceda
creating build/lib.linux-x86_64-2.7/pyceda/lib
creating build/lib.linux-x86_64-2.7/pyceda/lib/linux
copying pyceda/lib/linux/libcxMessage.so -> build/lib.linux-x86_64-2.7/pyceda/lib/linux
copying pyceda/lib/linux/libcxPersistStore.so -> build/lib.linux-x86_64-2.7/pyceda/lib/linux
copying pyceda/lib/linux/libcxBuild.so -> build/lib.linux-x86_64-2.7/pyceda/lib/linux
copying pyceda/lib/linux/libcxPython.so -> build/lib.linux-x86_64-2.7/pyceda/lib/linux
copying pyceda/lib/linux/libcxUtils.so -> build/lib.linux-x86_64-2.7/pyceda/lib/linux
copying pyceda/lib/linux/libcxObject.so -> build/lib.linux-x86_64-2.7/pyceda/lib/linux
copying pyceda/lib/linux/libcxMacroExpander.so -> build/lib.linux-x86_64-2.7/pyceda/lib/linux
copying pyceda/lib/linux/libcxCedaScript.so -> build/lib.linux-x86_64-2.7/pyceda/lib/linux
copying pyceda/lib/linux/libcxThread.so -> build/lib.linux-x86_64-2.7/pyceda/lib/linux
copying pyceda/lib/linux/libcxLss.so -> build/lib.linux-x86_64-2.7/pyceda/lib/linux
copying pyceda/lib/linux/libcxOperation.so -> build/lib.linux-x86_64-2.7/pyceda/lib/linux
copying pyceda/lib/linux/libcxRmi.so -> build/lib.linux-x86_64-2.7/pyceda/lib/linux
copying pyceda/lib/linux/libcxSocket.so -> build/lib.linux-x86_64-2.7/pyceda/lib/linux
copying pyceda/lib/linux/libcxWorkingSetIpc.so -> build/lib.linux-x86_64-2.7/pyceda/lib/linux
running install_lib
creating /usr/local/lib/python2.7/dist-packages/pyceda
copying build/lib.linux-x86_64-2.7/pyceda/utils.py -> /usr/local/lib/python2.7/dist-packages/pyceda
copying build/lib.linux-x86_64-2.7/pyceda/__init__.py -> /usr/local/lib/python2.7/dist-packages/pyceda
copying build/lib.linux-x86_64-2.7/pyceda/namespace.py -> /usr/local/lib/python2.7/dist-packages/pyceda
creating /usr/local/lib/python2.7/dist-packages/pyceda/lib
creating /usr/local/lib/python2.7/dist-packages/pyceda/lib/linux
copying build/lib.linux-x86_64-2.7/pyceda/lib/linux/libcxMessage.so -> /usr/local/lib/python2.7/dist-packages/pyceda/lib/linux
copying build/lib.linux-x86_64-2.7/pyceda/lib/linux/libcxPersistStore.so -> /usr/local/lib/python2.7/dist-packages/pyceda/lib/linux
copying build/lib.linux-x86_64-2.7/pyceda/lib/linux/libcxBuild.so -> /usr/local/lib/python2.7/dist-packages/pyceda/lib/linux
copying build/lib.linux-x86_64-2.7/pyceda/lib/linux/libcxPython.so -> /usr/local/lib/python2.7/dist-packages/pyceda/lib/linux
copying build/lib.linux-x86_64-2.7/pyceda/lib/linux/libcxUtils.so -> /usr/local/lib/python2.7/dist-packages/pyceda/lib/linux
copying build/lib.linux-x86_64-2.7/pyceda/lib/linux/libcxObject.so -> /usr/local/lib/python2.7/dist-packages/pyceda/lib/linux
copying build/lib.linux-x86_64-2.7/pyceda/lib/linux/libcxMacroExpander.so -> /usr/local/lib/python2.7/dist-packages/pyceda/lib/linux
copying build/lib.linux-x86_64-2.7/pyceda/lib/linux/libcxCedaScript.so -> /usr/local/lib/python2.7/dist-packages/pyceda/lib/linux
copying build/lib.linux-x86_64-2.7/pyceda/lib/linux/libcxThread.so -> /usr/local/lib/python2.7/dist-packages/pyceda/lib/linux
copying build/lib.linux-x86_64-2.7/pyceda/lib/linux/libcxLss.so -> /usr/local/lib/python2.7/dist-packages/pyceda/lib/linux
copying build/lib.linux-x86_64-2.7/pyceda/lib/linux/libcxOperation.so -> /usr/local/lib/python2.7/dist-packages/pyceda/lib/linux
copying build/lib.linux-x86_64-2.7/pyceda/lib/linux/libcxRmi.so -> /usr/local/lib/python2.7/dist-packages/pyceda/lib/linux
copying build/lib.linux-x86_64-2.7/pyceda/lib/linux/libcxSocket.so -> /usr/local/lib/python2.7/dist-packages/pyceda/lib/linux
copying build/lib.linux-x86_64-2.7/pyceda/lib/linux/libcxWorkingSetIpc.so -> /usr/local/lib/python2.7/dist-packages/pyceda/lib/linux
copying build/lib.linux-x86_64-2.7/pyceda/pstore.py -> /usr/local/lib/python2.7/dist-packages/pyceda
byte-compiling /usr/local/lib/python2.7/dist-packages/pyceda/utils.py to utils.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/pyceda/__init__.py to __init__.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/pyceda/namespace.py to namespace.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/pyceda/pstore.py to pstore.pyc
running install_egg_info
Writing /usr/local/lib/python2.7/dist-packages/pyceda-0.7.egg-info

Verification

As a simple check that the pyceda package has been installed correctly, do the following

Run the python interpreter by running the command 'python' in a bash terminal


user@host:~/developer$ python
Python 2.7.12 (default, Nov 19 2016, 06:48:10)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>

Import the pyceda module


>>> import pyceda

Display the root directory of the ceda namespace


>>> dir(pyceda.cns)

The output should resemble this:

['FindChildNameSpace', 'FindElement', 'FindElementWithRelativePath',
 'GetChildNameSpaceIterator', 'GetElementIterator', 'GetName', 'Int64',
 'PyObject', 'UInt64', 'ceda']

Press ctrl-D to exit the python interpreter