From bb55072b92f1e1b563c97a813488942bc230a45e Mon Sep 17 00:00:00 2001 From: Joost van Zwieten Date: Fri, 11 Aug 2023 11:26:57 +0200 Subject: [PATCH] fix Docker image build script Commit 163ea934 changed the build system for the Nutils package from setuptools to Flit. This patch replaces the call to `setup.py` with `pip wheel` in the build script for the Docker image. --- devtools/container/build.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/devtools/container/build.py b/devtools/container/build.py index 64160ba75..d0af2a7a4 100644 --- a/devtools/container/build.py +++ b/devtools/container/build.py @@ -51,8 +51,10 @@ log.info(f'installing Nutils from {wheel}') else: log.info(f'building wheel for commit {commit}') - run(sys.executable, 'setup.py', 'bdist_wheel', cwd=str(src.path), env=dict(SOURCE_DATE_EPOCH=str(src.get_commit_timestamp('HEAD')))) - wheel, = (src.path / 'dist').glob('nutils-*.whl') + dist_dir = src.path / 'dist' + dist_dir.mkdir() + run(sys.executable, '-m', 'pip', 'wheel', '--no-deps', str(src.path), cwd=str(src.path / 'dist'), env=dict(SOURCE_DATE_EPOCH=str(src.get_commit_timestamp('HEAD')))) + wheel, = dist_dir.glob('nutils-*.whl') if args.examples: examples = Path(args.examples)