We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f868a56 commit 09053a2Copy full SHA for 09053a2
Makefile
@@ -7,8 +7,10 @@ VERSION := $(shell $(PYTHON) setup.py --version)
7
TESTFLAGS = -v
8
9
define buildscript
10
-import sys,sysconfig
11
-print("build/lib.{}-{}.{}".format(sysconfig.get_platform(), *sys.version_info[:2]))
+import sys, sysconfig, setuptools
+sversion = int(setuptools.__version__.split(".")[0])
12
+end = sys.implementation.cache_tag if sversion >= 61 else "{}.{}".format(*sys.version_info[:2])
13
+print("build/lib.{}-{}".format(sysconfig.get_platform(), end))
14
endef
15
16
builddir := $(shell $(PYTHON) -c '$(buildscript)')
0 commit comments