Benjamin Greiner
5b2c36e178
- Back to bootstrap without pip OBS-URL: https://build.opensuse.org/request/show/945128 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flit-core?expand=0&rev=19
18 lines
421 B
Python
18 lines
421 B
Python
"""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 buildapi
|
|
|
|
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
|
|
|
print("Building sdist")
|
|
sdist_fname = buildapi.build_sdist('dist/')
|
|
print(os.path.join('dist', sdist_fname))
|
|
|
|
print("\nBuilding wheel")
|
|
whl_fname = buildapi.build_wheel('dist/')
|
|
print(os.path.join('dist', whl_fname))
|