Skip to content

Commit 554da96

Browse files
committed
build: use build instead of setuptools for future-proofing
1 parent 9324ea2 commit 554da96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ BROWSER := python -m webbrowser file://$(CURDIR)/
1414

1515
# This runs a Python command for every make invocation, but it's fast enough.
1616
# Is there a way to do it only when needed?
17-
VERSION := $(shell python -c "from setuptools import setup; setup()" --version)
17+
VERSION := $(shell python -c "import build.util as bu; print(bu.project_wheel_metadata('.')['Version'])")
1818
export VERSION
1919

2020
.PHONY: help clean sterile

0 commit comments

Comments
 (0)