Skip to content

Commit

Permalink
add venv and maturin build commands to make file
Browse files Browse the repository at this point in the history
  • Loading branch information
steinerkelvin committed Jun 12, 2024
1 parent 5494220 commit b8905ff
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
/tmp/
/.direnv/

/venv/

/debug/
/target/
/crates/*/target/

__pycache__

Expand Down
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
.PHONY: check rust-check rust-check-fmt rust-fmt
.PHONY: create-venv build

all: check build

check: rust-check rust-check-fmt

Expand All @@ -10,3 +13,12 @@ rust-check-fmt:

rust-fmt:
cargo fmt --all

create-venv:
python3 -m venv venv
@echo "Enter venv with:"
@echo "source venv/bin/activate"

build:
cd crates/benda; \
maturin develop
7 changes: 2 additions & 5 deletions examples/simple.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import ast
import inspect

import benda
from benda import u24
from benda import bjit, u24


def simple():
def simple() -> u24:
x = u24(3)
y = x - u24(2)
return y
Expand Down

0 comments on commit b8905ff

Please sign in to comment.