mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 08:22:24 -04:00
Merge pull request #485 from evandroforks/allow_to_define_python_bin
Allow to define python bin
This commit is contained in:
commit
20ce1eca96
2 changed files with 20 additions and 6 deletions
18
Makefile
18
Makefile
|
@ -1,11 +1,21 @@
|
||||||
SHELL := /bin/bash
|
SHELL := /bin/bash
|
||||||
|
|
||||||
ifeq ($(OS),Windows_NT)
|
ifeq ($(OS),Windows_NT)
|
||||||
PYTHON_BIN := python
|
ifndef ACTIVATE_SCRIPT
|
||||||
ACTIVATE_SCRIPT := pyenv/Scripts/activate
|
ACTIVATE_SCRIPT := pyenv/Scripts/activate
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifndef PYTHON_BIN
|
||||||
|
PYTHON_BIN := python
|
||||||
|
endif
|
||||||
else
|
else
|
||||||
PYTHON_BIN := python3
|
ifndef ACTIVATE_SCRIPT
|
||||||
ACTIVATE_SCRIPT := pyenv/bin/activate
|
ACTIVATE_SCRIPT := pyenv/bin/activate
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifndef PYTHON_BIN
|
||||||
|
PYTHON_BIN := python3
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifndef ANKI_EXTRA_PIP
|
ifndef ANKI_EXTRA_PIP
|
||||||
|
|
|
@ -2,9 +2,13 @@ SHELL := /bin/bash
|
||||||
FIND := $(if $(wildcard /bin/find),/bin/find,/usr/bin/find)
|
FIND := $(if $(wildcard /bin/find),/bin/find,/usr/bin/find)
|
||||||
|
|
||||||
ifeq ($(OS),Windows_NT)
|
ifeq ($(OS),Windows_NT)
|
||||||
PYTHON_BIN := python
|
ifndef PYTHON_BIN
|
||||||
|
PYTHON_BIN := python
|
||||||
|
endif
|
||||||
else
|
else
|
||||||
PYTHON_BIN := python3
|
ifndef PYTHON_BIN
|
||||||
|
PYTHON_BIN := python3
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
.SHELLFLAGS := -eu -o pipefail -c
|
.SHELLFLAGS := -eu -o pipefail -c
|
||||||
|
|
Loading…
Reference in a new issue