From 91c5a4363d022d34bc3b04341d540e424981e1a7 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Mon, 15 Apr 2024 19:00:34 +0200 Subject: Restore Makefile to work with pyproject.toml. --- Makefile | 4 ++-- pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 9d2993b..1e8f5ad 100644 --- a/Makefile +++ b/Makefile @@ -60,7 +60,7 @@ all: build .PHONY: build build: $(LIBBE_VERSION) - $(PYTHON) setup.py build + $(PYTHON) -mbuild -n .PHONY: doc doc: $(DOC) @@ -70,7 +70,7 @@ install: build doc $(PYTHON) setup.py install ${INSTALL_OPTIONS} test: build - $(PYTHON) test.py + PYTHONPATH=build/lib $(PYTHON) test.py .PHONY: clean clean: diff --git a/pyproject.toml b/pyproject.toml index 8dd1fe6..cf84758 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [build-system] -requires = ["setuptools>=64", "setuptools_scm>=8"] +requires = ["setuptools>=64", "setuptools_scm>=8", "build"] build-backend = "setuptools.build_meta" [project] -- cgit