1. Installing pyxrootd

1.1. Requirements

  • Python 2.4 or later
    • Works on Python 2.4 -> 2.7
    • Python 3 not yet supported (coming soon)
  • New XRootD client + development headers
    • xrootd-cl, xrootd-cl-devel packages
    • Version 3.3.x required

1.2. RPM Installation

If you just want to install via RPM, we build one incrementally using TeamCity. You can get it here. Once you’ve done that, you’re done - you don’t need to follow any of the rest of the instructions here.

1.3. Getting the source

Clone the repository:

$ git clone git://github.com/xrootd/xrootd-python.git

1.4. Installation

If you have obtained a copy of pyxrootd yourself use the setup.py script to install.

To install in your home directory:

$ python setup.py install --user

To install system-wide (requires root privileges):

$ sudo python setup.py install

1.5. Post-installation

If you installed pyxrootd into your home directory with the –user option above, add ${HOME}/.local/bin to your ${PATH} if it is not there already (put this in your .bashrc):

$ export PATH=${HOME}/.local/bin${PATH:+:$PATH}

1.6. Running the tests

Testing requires the pytest package. Once pyxrootd is installed, it may be tested (from inside the source directory) by running:

$ py.test