Skip to content

Commit

Permalink
Add script to build flit_core distributions
Browse files Browse the repository at this point in the history
  • Loading branch information
takluyver committed Sep 6, 2020
1 parent 9ade766 commit de99119
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions flit_core/build_dists.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
"""Build flit_core to upload to PyPI.
Normally, this should only be used by me when making a release.
"""
import os

from flit_core import build_thyself

os.chdir(os.path.dirname(os.path.abspath(__file__)))

print("Building sdist")
sdist_fname = build_thyself.build_sdist('dist/')
print(os.path.join('dist', sdist_fname))

print("\nBuilding wheel")
whl_fname = build_thyself.build_wheel('dist/')
print(os.path.join('dist', whl_fname))

0 comments on commit de99119

Please sign in to comment.