Skip to content

Commit

Permalink
builder.dist: Create the output directory before building
Browse files Browse the repository at this point in the history
This is necessary, as `build` otherwise fails on macOS.
  • Loading branch information
nbraud committed Jan 1, 2021
1 parent 02d4454 commit df850b8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bork/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def dist():
"""Build the sdist and wheel distributions."""

builder = build.ProjectBuilder('.')
(Path.cwd() / 'dist').mkdir(mode=0o755, exist_ok=True)
builder.build('sdist', './dist/')
builder.build('wheel', './dist/')

Expand Down

0 comments on commit df850b8

Please sign in to comment.