Skip to content

Commit

Permalink
Merge pull request #3023 from hyanwong/patch-59
Browse files Browse the repository at this point in the history
python3 -> python in Makefile
  • Loading branch information
benjeffery authored Oct 16, 2024
2 parents 26952f2 + b9a6363 commit baac2aa
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 baac2aa

Please sign in to comment.