mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 15:02:21 -04:00
Merge pull request #481 from evandroforks/fixed_python3_windows_usage
Fixed rspy/Makefile trying to use python3 on Windows
This commit is contained in:
commit
229c33ff62
1 changed files with 7 additions and 1 deletions
|
@ -1,6 +1,12 @@
|
||||||
SHELL := /bin/bash
|
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)
|
||||||
|
PYTHON_BIN := python
|
||||||
|
else
|
||||||
|
PYTHON_BIN := python3
|
||||||
|
endif
|
||||||
|
|
||||||
.SHELLFLAGS := -eu -o pipefail -c
|
.SHELLFLAGS := -eu -o pipefail -c
|
||||||
.DELETE_ON_ERROR:
|
.DELETE_ON_ERROR:
|
||||||
MAKEFLAGS += --warn-undefined-variables
|
MAKEFLAGS += --warn-undefined-variables
|
||||||
|
@ -37,7 +43,7 @@ build: $(DEPS)
|
||||||
rm -rf $(OUTDIR)/ankirspy*
|
rm -rf $(OUTDIR)/ankirspy*
|
||||||
touch ../proto/backend.proto
|
touch ../proto/backend.proto
|
||||||
FTL_TEMPLATE_DIRS="$(QT_FTL_TEMPLATES)" FTL_LOCALE_DIRS="$(QT_FTL_LOCALES)" \
|
FTL_TEMPLATE_DIRS="$(QT_FTL_TEMPLATES)" FTL_LOCALE_DIRS="$(QT_FTL_LOCALES)" \
|
||||||
maturin build -i $(shell which python3) -o $(OUTDIR) $(BUILDFLAGS)
|
maturin build -i $(shell which ${PYTHON_BIN}) -o $(OUTDIR) $(BUILDFLAGS)
|
||||||
|
|
||||||
check: .build/check
|
check: .build/check
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue