Changeset View
Changeset View
Standalone View
Standalone View
head/games/anki/files/patch-pylib_Makefile
Property | Old Value | New Value |
---|---|---|
fbsd:nokeywords | null | yes \ No newline at end of property |
svn:eol-style | null | native \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
Use the current directory to locate and load the ankirspy (= Rust/Python | |||||
bridge) module that was built with "build-rspy" target. | |||||
Also avoid Python wheel generation as the produced wheels won't be used. The | |||||
Python code will be compiled and installed via Port's Makefile. | |||||
--- pylib/Makefile.orig 2020-08-30 01:23:44 UTC | |||||
+++ pylib/Makefile | |||||
@@ -32,11 +32,9 @@ PHONY: all | |||||
all: check | |||||
.build/run-deps: setup.py | |||||
- SKIP_ANKI_RSPY=true python -m pip install -e . | |||||
@touch $@ | |||||
.build/dev-deps: requirements.dev | |||||
- python -m pip install -r requirements.dev | |||||
@touch $@ | |||||
PROTODEPS := ../proto/backend.proto ../proto/fluent.proto | |||||
@@ -45,7 +43,7 @@ PROTODEPS := ../proto/backend.proto ../proto/fluent.pr | |||||
protoc --proto_path=../proto --python_out=anki --mypy_out=anki $(PROTODEPS) | |||||
perl -i'' -pe 's/from fluent_pb2/from anki.fluent_pb2/' anki/backend_pb2.pyi | |||||
perl -i'' -pe 's/import fluent_pb2/import anki.fluent_pb2/' anki/backend_pb2.py | |||||
- python tools/genbackend.py | |||||
+ PYTHONPATH=. python tools/genbackend.py | |||||
python -m black -t py36 anki/rsbackend_gen.py | |||||
@touch $@ | |||||
@@ -104,9 +102,6 @@ CHECKDEPS := $(shell "${FIND}" anki tests -name '*.py' | |||||
build: .build/build | |||||
.build/build: $(BUILD_STEPS) $(CHECKDEPS) | |||||
- rm -rf dist build | |||||
- python setup.py -q bdist_wheel | |||||
- rsync -a dist/*.whl ../dist/ | |||||
touch $@ | |||||
# prepare code for running in place |