Skip to content

Commit

Permalink
Merge pull request #111 from esc/update-readme
Browse files Browse the repository at this point in the history
update REAMDE and add makefile
  • Loading branch information
esc authored Mar 4, 2024
2 parents 1cababd + b7a592b commit 3850458
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 6 deletions.
26 changes: 20 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,34 @@ bytecode.

## dependencies

* Python 3.11
* Python 3.11 or 3.12
* make (optional, build tool)
* graphviz
* pyyaml
* pytest (for testing)
* sphinx (for docs)
* sphinx_rt_theme (for docs)

You can create a conda env using the following:

```
conda env create -n numba-rvsdg python=3.11 python-graphviz
conda activate numba-rvsdg
pip install pyyaml
$ conda env create -n numba-rvsdg python=3.12 python-graphviz pyyaml pytest sphinx sphinx_rtd_theme
$ conda activate numba-rvsdg
```

At the time of writing `pyyaml` was not available for Python 3.11 via
`defaults` so it had to be installed with `pip`.
If you have `make` and `conda` available, a common workflow could be:

```
$ make conda-env # setup conda environment
$ conda activate numba-rvsdg # activate it
$ make # "build" the project
$ make test # run all tests
$ make docs # build the docs
$ open docs/build/html/index.html # view the docs (OSX)
```

Feel free to look at the `makefile` for low-level commands.


## overview

Expand Down
9 changes: 9 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.PHONY: build test docs env
build:
python -m pip install -vv -e .
test:
pytest --pyargs numba_rvsdg
docs:
cd docs && make html
conda-env:
conda create -n numba-rvsdg python=3.12 python-graphviz pyyaml pytest sphinx sphinx_rtd_theme

0 comments on commit 3850458

Please sign in to comment.