-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
28 lines (22 loc) · 702 Bytes
/
justfile
File metadata and controls
28 lines (22 loc) · 702 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
go_dir := "src/fibonacci/go"
local_bin := justfile_directory() + "/bin"
local_path := local_bin + ":" + env("PATH")
export GOBIN := local_bin
export PATH := local_path
# Show help message
[private]
@default:
just --list
# Install dependencies
@install:
pip install --upgrade pip
pip install -e .
go mod tidy
go install golang.org/x/tools/cmd/goimports@latest
go install github.com/go-python/gopy@latest
# Build Go bindings
@build:
{{ local_bin }}/gopy build --output=./{{ go_dir }}/py_build -no-make=true -rename=true -vm=python ./{{ go_dir }}/source
# Remove build Go bindings
@remove-build:
find ./{{ go_dir }}/py_build/ ! -name ".gitkeep" -type f -exec rm -f {} +