Skip to content

Commit

Permalink
python3 -> python in Makefile
Browse files Browse the repository at this point in the history
My installation doesn't bother defining python3 any more. I think we can assume python is v3 now
  • Loading branch information
hyanwong authored and benjeffery committed Oct 16, 2024
1 parent 2fb6ab8 commit b9a6363
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ an overview of how to contribute a new feature to `tskit`.
### Requirements

To develop the Python code you will need a working C compiler and a
development installation of Python (>= 3.8). On Debian/Ubuntu we can install these
development installation of Python (>= 3.9). On Debian/Ubuntu we can install these
with:

```bash
$ sudo apt install python3-dev build-essential doxygen
$ sudo apt install python3-dev python-is-python3 build-essential doxygen
```

Python packages required for development are listed in `python/requirements/development.txt`.
Expand Down
9 changes: 7 additions & 2 deletions python/Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
PYTHON := $(shell command -v python 2> /dev/null)
ifndef PYTHON
$(error "python is not available via the `python` executable. If you have python only via `python3` you may need to `apt install python-is-python3`")
endif

all: ext3

allchecks: _tskitmodule.c
CFLAGS="-std=c99 --coverage -Wall -Wextra -Werror -Wno-unused-parameter -Wno-cast-function-type" \
python3 setup.py build_ext --inplace
python setup.py build_ext --inplace

ext3: _tskitmodule.c
python3 setup.py build_ext --inplace

python setup.py build_ext --inplace

ctags:
ctags lib/*.c lib/*.h tskit/*.py
Expand Down

0 comments on commit b9a6363

Please sign in to comment.