Skip to content

Commit

Permalink
allow running build
Browse files Browse the repository at this point in the history
  • Loading branch information
bertsky committed Jun 29, 2023
1 parent 7dc4b75 commit 7302b4a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
include ocrd-tool.json
include README.md
include requirements.txt
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ help:
@echo " install Install full Python package via pip"
@echo " deps-test Install Python dependencies for tests via pip and models via resmgr"
@echo " test Run regression tests"
@echo " build Build Python package as source and wheel distribution"
@echo " clean Remove symlinks in test/assets"
@echo " docker Build Docker image"
@echo
Expand Down Expand Up @@ -73,6 +74,9 @@ install: deps
deps-test: models-test
$(PIP) install -r requirements-test.txt

build:
$(PIP) install build
$(PYTHON) -m build .

# Clone OCR-D/assets to ./repo/assets
repo/assets:
Expand Down Expand Up @@ -138,4 +142,4 @@ count-regions := python -c "import sys; from ocrd_models.ocrd_page import parse;
# make cannot delete directories, so keep them
.PRECIOUS .SECONDARY: %/OCR-D-BIN %/OCR-D-SEG-$(MODEL)

.PHONY: help deps install deps-test models-test test clean docker
.PHONY: help deps install build deps-test models-test test clean docker

0 comments on commit 7302b4a

Please sign in to comment.