Skip to content

Commit c05884a

Browse files
committed
Ensure setuptools and wheel are installed when needed
1 parent 82c6a8c commit c05884a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

noxfile.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ def test(session: nox.Session) -> None:
8989
shutil.rmtree(sdist_dir, ignore_errors=True)
9090

9191
# fmt: off
92+
session.install("setuptools")
9293
session.run(
9394
"python", "setup.py", "sdist", "--formats=zip", "--dist-dir", sdist_dir,
9495
silent=True,
@@ -351,6 +352,7 @@ def build_dists(session: nox.Session) -> List[str]:
351352
)
352353

353354
session.log("# Build distributions")
355+
session.install("setuptools", "wheel")
354356
session.run("python", "setup.py", "sdist", "bdist_wheel", silent=True)
355357
produced_dists = glob.glob("dist/*")
356358

0 commit comments

Comments
 (0)