Skip to content

Commit 9a59d5d

Browse files
author
gerrymanoim
authored
Merge pull request #157 from quantopian/install-instructions
DOC: Add install steps
2 parents 10e0f02 + 11dce85 commit 9a59d5d

3 files changed

Lines changed: 105 additions & 1 deletion

File tree

README.rst

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,53 @@
77

88
Utilities for writing C++ extension modules for CPython.
99

10-
tests
10+
Requirements
11+
------------
12+
13+
lipy supports:
14+
15+
- macOS/Linux
16+
- Python >=3.5
17+
18+
lipy requires:
19+
20+
- gcc>=8 or clang>=10
21+
- numpy>=1.11.3
22+
23+
libpy also depends on:
24+
25+
- pcre
26+
- google sparsehash
27+
28+
To install these dependencies:
29+
30+
ubuntu
31+
~~~~~~
32+
33+
.. code-block:: bash
34+
35+
$ sudo apt install libpcre2-dev libsparsehash-dev
36+
37+
macOS
38+
~~~~~
39+
40+
.. code-block:: bash
41+
42+
$ brew install pcre2 google-sparsehash
43+
44+
Install
45+
-------
46+
47+
To install for development:
48+
49+
.. code-block:: bash
50+
51+
$ make
52+
53+
Otherwise, ``pip install libpy``, making sure ``CC`` and ``CXX`` environment variables are set to the the right compiler.
54+
55+
56+
Tests
1157
-----
1258

1359
To run the unit tests, invoke:

docs/source/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Welcome to libpy's documentation!
66
:caption: Contents:
77

88
tutorial
9+
install
910
appendix
1011

1112

docs/source/install.rst

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
Setup
2+
=====
3+
4+
Requirements
5+
------------
6+
7+
lipy supports:
8+
9+
- macOS/Linux
10+
- Python >=3.5
11+
12+
lipy requires:
13+
14+
- gcc>=8 or clang>=10
15+
- numpy>=1.11.3
16+
17+
libpy also depends on:
18+
19+
- pcre
20+
- google sparsehash
21+
22+
To install these dependencies:
23+
24+
ubuntu
25+
~~~~~~
26+
27+
.. code-block:: bash
28+
29+
$ sudo apt install libpcre2-dev libsparsehash-dev
30+
31+
macOS
32+
~~~~~
33+
34+
.. code-block:: bash
35+
36+
$ brew install pcre2 google-sparsehash
37+
38+
Install
39+
-------
40+
41+
To install for development:
42+
43+
.. code-block:: bash
44+
45+
$ make
46+
47+
Otherwise, ``pip install libpy``, making sure ``CC`` and ``CXX`` environment variables are set to the the right compiler.
48+
49+
50+
Tests
51+
-----
52+
53+
To run the unit tests, invoke:
54+
55+
.. code-block:: bash
56+
57+
$ make test

0 commit comments

Comments
 (0)