You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.9 KiB

  1. ***********************
  2. Installation
  3. ***********************
  4. Requirements
  5. ==================
  6. Before installing stormpy, make sure
  7. - `pycarl <https://moves-rwth.github.io/pycarl>`_
  8. - `storm <https://moves-rwth.github.io/storm/>`_
  9. are both available on your system. To avoid issues, we suggest that both use the same version of `carl <https://smtrat.github.io/carl>`_.
  10. The simplest way of ensuring this is to first install carl as explained in the `storm installation guide <https://moves-rwth.github.io/storm/documentation/installation/configuration-guide.html#carl>`_.
  11. You can then install storm and pycarl independently.
  12. .. topic:: Virtual Environments
  13. Virtual environments create isolated environments for your projects. This helps to keep your system clean, work with different versions of packages and different version of python. While it is not required, we recommend the use of
  14. such virtual environments. To get you started, we recommend `this guide <http://docs.python-guide.org/en/latest/dev/virtualenvs/>`_ or `this primer <https://realpython.com/blog/python/python-virtual-environments-a-primer>`_.
  15. Installation Steps
  16. ====================
  17. Clone stormpy into any suitable location::
  18. $ git clone https://srv-i2.informatik.rwth-aachen.de/scm/git/stormpy.git
  19. $ cd stormpy
  20. Here, build stormpy in develop mode using your favourite python distribution way of installing: e.g.::
  21. $ python3 setup.py develop
  22. or::
  23. $ pip install -ve .
  24. .. topic:: Specifying which storm library to use
  25. If you have multiple versions of storm or cmake is not able to find your storm version,
  26. you can specify the `--storm-DIR YOUR-PATH-TO-STORM` flag in the build_ext step::
  27. $ python3 setup.py build_ext --storm-DIR YOUR-PATH-TO-STORM develop
  28. After building, you can run the test files by::
  29. py.test tests/
  30. If tests pass, you can continue with our :doc:`getting_started`.