Skip to content

Commit 8a6b004

Browse files
committed
add a requirements.txt file and prereq make target, confirm test of latest PRs
1 parent 5597cfd commit 8a6b004

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

Makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ GOGET=$(GOCMD) get
88

99
DIRS=`go list ./...`
1010

11+
PYTHON=python3
12+
PIP=$(PYTHON) -m pip
13+
1114
all: build
1215

1316
build:
@@ -46,6 +49,16 @@ gopath-update: export GO111MODULE = off
4649
gopath-update:
4750
@echo "GO111MODULE = $(value GO111MODULE)"
4851
go get -u ./...
52+
53+
prereq:
54+
@echo "Installing python prerequisites -- ignore err if already installed:"
55+
- $(PIP) install -r requirements.txt
56+
@echo
57+
@echo "if this fails, you may see errors like this:"
58+
@echo " Undefined symbols for architecture x86_64:"
59+
@echo " _PyInit__gi, referenced from:..."
60+
@echo
61+
4962

5063
# NOTE: MUST update version number here prior to running 'make release' and edit this file!
5164
VERS=v0.4.7

go.sum

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@ github.com/gonuts/flag v0.1.0 h1:fqMv/MZ+oNGu0i9gp0/IQ/ZaPIDoAZBOBaJoV7viCWM=
44
github.com/gonuts/flag v0.1.0/go.mod h1:ZTmTGtrSPejTo/SRNhCqwLTmiAgyBdCkLYhHrAoBdz4=
55
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
66
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
7+
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
78
golang.org/x/mod v0.9.0 h1:KENHtAZL2y3NLMYZeHY9DW8HW8V+kQyJsY/V9JlKvCs=
89
golang.org/x/mod v0.9.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
10+
golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc=
911
golang.org/x/sync v0.1.0 h1:wsuoTGHzEhffawBOhz5CYhcrV4IdKZbEyZjBMuTp12o=
12+
golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
1013
golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ=
1114
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
1215
golang.org/x/tools v0.7.0 h1:W4OVu8VVOaIO0yzWMNdepAulS7YfoS3Zabrm8DOXXU4=

0 commit comments

Comments
 (0)