Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
grumpy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
grumpy
Commits
587a5134
Commit
587a5134
authored
Jan 18, 2017
by
Alexander F Rødseth
Committed by
Dylan Trotter
Jan 18, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check if python2 exists before defaulting to python (#156)
parent
b65b3b89
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
Makefile
Makefile
+9
-1
No files found.
Makefile
View file @
587a5134
...
@@ -21,7 +21,15 @@ GOOS ?= $(word 1,$(GO_ENV))
...
@@ -21,7 +21,15 @@ GOOS ?= $(word 1,$(GO_ENV))
GOARCH
?=
$(
word
2,
$(GO_ENV)
)
GOARCH
?=
$(
word
2,
$(GO_ENV)
)
ROOT_DIR
:=
$(
realpath
.
)
ROOT_DIR
:=
$(
realpath
.
)
PKG_DIR
:=
build/pkg/
$(GOOS)
_
$(GOARCH)
PKG_DIR
:=
build/pkg/
$(GOOS)
_
$(GOARCH)
PYTHON
?=
python
# Try python2 and then python if PYTHON has not been set
ifeq
($(PYTHON),)
ifneq
($(shell which python2),)
PYTHON
=
python2
else
PYTHON
=
python
endif
endif
PYTHON_BIN
:=
$(
shell
which
$(PYTHON)
)
PYTHON_BIN
:=
$(
shell
which
$(PYTHON)
)
PYTHON_VER
:=
$(
word
2,
$(
shell
$(PYTHON)
-V
2>&1
))
PYTHON_VER
:=
$(
word
2,
$(
shell
$(PYTHON)
-V
2>&1
))
PY_DIR
:=
build/lib/python2.7/site-packages
PY_DIR
:=
build/lib/python2.7/site-packages
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment