Skip to content

Commit

Permalink
fix Docker image build script
Browse files Browse the repository at this point in the history
Commit 163ea93 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.
  • Loading branch information
joostvanzwieten committed Aug 11, 2023
1 parent c92bf1c commit bb55072
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions devtools/container/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bb55072

Please sign in to comment.