Debian Codegraph @

flit_core/build_dists.py

raw
1 """Build flit_core to upload to PyPI.
2
3 Normally, this should only be used by me when making a release.
4 """
5 import os
6
7 from flit_core import buildapi
8
9 os.chdir(os.path.dirname(os.path.abspath(__file__)))
10
11 print("Building sdist")
12 sdist_fname = buildapi.build_sdist('dist/')
13 print(os.path.join('dist', sdist_fname))
14
15 print("\nBuilding wheel")
16 whl_fname = buildapi.build_wheel('dist/')
17 print(os.path.join('dist', whl_fname))