mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
output into dist/
This commit is contained in:
parent
253d429a8b
commit
e2ede3af0e
6 changed files with 9 additions and 7 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -6,7 +6,7 @@
|
|||
.build
|
||||
.coverage
|
||||
.DS_Store
|
||||
build
|
||||
dist
|
||||
pyenv
|
||||
.mypy_cache
|
||||
__pycache__
|
||||
|
|
2
clean
2
clean
|
@ -4,6 +4,8 @@ set -e
|
|||
|
||||
. scripts.inc
|
||||
|
||||
rm -rf dist
|
||||
|
||||
for dir in $DEVEL; do
|
||||
echo $dir
|
||||
(cd $dir && make clean)
|
||||
|
|
|
@ -9,7 +9,7 @@ RUNARGS :=
|
|||
BLACKARGS := -t py36 anki tests --exclude='backend_pb2|buildhash'
|
||||
ISORTARGS := anki tests
|
||||
|
||||
$(shell mkdir -p .build ../build)
|
||||
$(shell mkdir -p .build ../dist)
|
||||
|
||||
PHONY: all
|
||||
all: check
|
||||
|
@ -80,7 +80,7 @@ build: $(BUILD_STEPS) $(CHECKDEPS)
|
|||
rm -rf dist
|
||||
echo "build='$$(git rev-parse --short HEAD)'" > anki/buildhash.py
|
||||
python setup.py bdist_wheel
|
||||
rsync -a dist/*.whl ../build/
|
||||
rsync -a dist/*.whl ../dist/
|
||||
|
||||
# prepare code for running in place
|
||||
.PHONY: develop
|
||||
|
|
|
@ -9,7 +9,7 @@ MAKEFLAGS += --no-builtin-rules
|
|||
BLACKARGS := -t py36 aqt tests --exclude=aqt/forms
|
||||
ISORTARGS := aqt tests
|
||||
|
||||
$(shell mkdir -p .build ../build)
|
||||
$(shell mkdir -p .build ../dist)
|
||||
|
||||
PHONY: all
|
||||
all: check
|
||||
|
@ -103,7 +103,7 @@ CHECKDEPS := $(shell find aqt tests -name '*.py')
|
|||
build: $(BUILD_STEPS)
|
||||
rm -rf dist
|
||||
python setup.py bdist_wheel
|
||||
rsync -a dist/*.whl ../build/
|
||||
rsync -a dist/*.whl ../dist/
|
||||
|
||||
.PHONY: develop
|
||||
develop: $(BUILD_STEPS)
|
||||
|
|
|
@ -4,9 +4,9 @@ SHELL := bash
|
|||
MAKEFLAGS += --warn-undefined-variables
|
||||
MAKEFLAGS += --no-builtin-rules
|
||||
|
||||
$(shell mkdir -p .build ../build)
|
||||
$(shell mkdir -p .build ../dist)
|
||||
|
||||
OUTDIR := ../build
|
||||
OUTDIR := ../dist
|
||||
BUILDFLAGS := --release --strip
|
||||
|
||||
.PHONY: all develop build check fix clean
|
||||
|
|
Loading…
Reference in a new issue