[2599] | 1 | ================ |
---|
| 2 | Installing PyAFS |
---|
| 3 | ================ |
---|
| 4 | |
---|
| 5 | To install PyAFS, you will first need to install Cython_. It's always |
---|
| 6 | a good idea to install Cython through your package manager, if |
---|
| 7 | possible. Your system's Cython package may be named ``cython`` or |
---|
| 8 | ``cython-py25``. If your package manager doesn't have a package for |
---|
| 9 | Cython, or if you wish to install Cython by hand anyway, you can do so |
---|
| 10 | by running:: |
---|
| 11 | |
---|
| 12 | $ easy_install Cython |
---|
| 13 | |
---|
| 14 | Once you've done that, to install PyAFS globally, run:: |
---|
| 15 | |
---|
| 16 | $ python setup.py install |
---|
| 17 | |
---|
| 18 | If you want to build PyAFS without installing it globally, you may |
---|
| 19 | want to run:: |
---|
| 20 | |
---|
| 21 | $ python setup.py build_ext --inplace |
---|
| 22 | |
---|
| 23 | which will build the C extensions in place next to their source, |
---|
| 24 | allowing you to import the various modules, so long as your current |
---|
| 25 | working directory is the root of the PyAFS source tree. |
---|
| 26 | |
---|
| 27 | Alternatively, PyAFS has been packaged for Debian and Ubuntu. To build |
---|
| 28 | the Debian package of the latest release, run:: |
---|
| 29 | |
---|
| 30 | $ git checkout debian |
---|
| 31 | $ git buildpackage |
---|
| 32 | $ sudo debi |
---|
| 33 | |
---|
| 34 | You will need the devscripts and git-buildpackage packages installed, |
---|
| 35 | as well as this package's build dependencies (cdbs, debhelper, |
---|
| 36 | python-all-dev, python-support, python-pyrex, python-setuptools, |
---|
| 37 | libopenafs-dev). |
---|
| 38 | |
---|
| 39 | .. _Cython: http://cython.org/ |
---|