Skip to content

Commit

Permalink
Remove pre-generated cython files.
Browse files Browse the repository at this point in the history
They easily get stale, and it is better to re-generate at compile
time.

Also: switch to Python3 by default.
  • Loading branch information
hzeller committed Jul 10, 2024
1 parent 3c2a1d6 commit c331dac
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 19,865 deletions.
2 changes: 1 addition & 1 deletion bindings/python/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# TODO: This contains a lot of {c|p}ython build boilerplate, this needs cleanup.
PYTHON ?= python
PYTHON ?= python3
SETUP := setup.py
BUILD_ARGS := build --build-lib .
INST_ARGS := install
Expand Down
15 changes: 3 additions & 12 deletions bindings/python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,12 @@ the hardware in question (see below for setting it via command line argument).

Then, in the root directory for the matrix library simply type:

### Python 2

```shell
sudo apt-get update && sudo apt-get install python2.7-dev python-pillow -y
make build-python
sudo make install-python
```

### Python 3
You can also build for Python 3:

```shell
sudo apt-get update && sudo apt-get install python3-dev python3-pillow -y
make build-python PYTHON=$(command -v python3)
sudo make install-python PYTHON=$(command -v python3)
sudo apt-get update && sudo apt-get install python3-dev cython3 -y
make build-python
sudo make install-python
```

### PyPy
Expand Down
Loading

0 comments on commit c331dac

Please sign in to comment.