installation.rst 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. .. include:: global.rst.inc
  2. .. _installation:
  3. Installation
  4. ============
  5. |project_name| requires:
  6. * Python_ >= 3.2
  7. * OpenSSL_ >= 1.0.0
  8. * libacl_
  9. * some python dependencies, see install_requires in setup.py
  10. General notes
  11. -------------
  12. Even though Python 3 is not the default Python version on many systems, it is
  13. usually available as an optional install.
  14. Virtualenv_ can be used to build and install |project_name| without affecting
  15. the system Python or requiring root access.
  16. The llfuse_ python package is also required if you wish to mount an
  17. archive as a FUSE filesystem. Only FUSE >= 2.8.0 can support llfuse.
  18. You only need Cython to compile the .pyx files to the respective .c files
  19. when using |project_name| code from git. For |project_name| releases, the .c
  20. files will be bundled.
  21. Platform notes
  22. --------------
  23. FreeBSD: You may need to get a recent enough OpenSSL version from FreeBSD ports.
  24. Mac OS X: You may need to get a recent enough OpenSSL version from homebrew_.
  25. Mac OS X: A recent enough FUSE implementation might be unavailable.
  26. Debian / Ubuntu installation (from git)
  27. ---------------------------------------
  28. Note: this uses latest, unreleased development code from git.
  29. While we try not to break master, there are no guarantees on anything.
  30. Some of the steps detailled below might be useful also for non-git installs.
  31. .. parsed-literal::
  32. # Python 3.x (>= 3.2) + Headers, Py Package Installer
  33. apt-get install python3 python3-dev python3-pip
  34. # we need OpenSSL + Headers for Crypto
  35. apt-get install libssl-dev openssl
  36. # ACL support Headers + Library
  37. apt-get install libacl1-dev libacl1
  38. # if you do not have gcc / make / etc. yet
  39. apt-get install build-essential
  40. # optional: lowlevel FUSE py binding - to mount backup archives
  41. apt-get install python3-llfuse fuse
  42. # optional: for unit testing
  43. apt-get install fakeroot
  44. # install virtualenv tool, create and activate a virtual env
  45. apt-get install python-virtualenv
  46. virtualenv --python=python3 borg-env
  47. source borg-env/bin/activate # always do this before using!
  48. # install some dependencies into virtual env
  49. pip install cython # to compile .pyx -> .c
  50. pip install tox # optional, for running unit tests
  51. pip install sphinx # optional, to build the docs
  52. # get |project_name| from github, install it
  53. git clone |git_url|
  54. cd borg
  55. pip install -e . # in-place editable mode
  56. # optional: run all the tests, on all supported Python versions
  57. fakeroot -u tox