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.
2 parents f868a56 + 23b329d commit 75066b5Copy full SHA for 75066b5
.github/workflows/build.yml
@@ -22,6 +22,7 @@ jobs:
22
"3.8",
23
"3.9",
24
"3.10",
25
+ "3.11.0-rc.1",
26
]
27
name: Python ${{ matrix.python }}
28
steps:
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