forked from oscarhiggott/PyMatching
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update installation instructions, add cmake as sdist dependency, add …
…docs to manifest
- Loading branch information
1 parent
a9dbcc9
commit b79a4f2
Showing
4 changed files
with
29 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
include LICENSE | ||
include MANIFEST.in | ||
include README.in | ||
include README.md | ||
include CMakeLists.txt | ||
recursive-include src *.txt *.py *.cpp *.h | ||
graft lib | ||
graft lib | ||
graft docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,18 @@ | ||
Installation | ||
=============== | ||
|
||
PyMatching requires Python 3.6.0 or later. To install PyMatching, | ||
first clone the repository (you must use the ``--recursive`` flag):: | ||
PyMatching can be downloaded and installed from `PyPI <https://pypi.org/project/PyMatching/>`_ with the command:: | ||
|
||
git clone --recursive https://github.com/oscarhiggott/PyMatching.git | ||
pip install pymatching | ||
|
||
This is the recommended way to install PyMatching, since it does not require you to build the C++ extension. | ||
Note that PyMatching requires Python 3.6 or later. | ||
|
||
and then install using ``pip``:: | ||
If instead you would like to install PyMatching from source, clone the repository (using the `--recursive` flag to include the lib/pybind11 submodule), and then use `pip` to install:: | ||
|
||
git clone --recursive https://github.com/oscarhiggott/PyMatching.git | ||
pip install -e ./PyMatching | ||
|
||
The installation may take a few minutes since the C++ extension has to be compiled. If you'd also like to run the tests, first install `pytest <https://docs.pytest.org/en/stable/>`_, and then run:: | ||
|
||
pytest ./PyMatching/tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters