diff --git a/tools/build_release b/tools/build_release index 651aec7..f5d99ee 100755 --- a/tools/build_release +++ b/tools/build_release @@ -3,9 +3,8 @@ """ import os import sys -from shutil import rmtree -from toollib import sh, pjoin, get_ipdir, cd, sdists, buildwheels +from toollib import sh, get_ipdir, cd, build_command def build_release(): @@ -14,8 +13,7 @@ def build_release(): cd(ipdir) # Build source and binary distros - sh(sdists) - buildwheels() + sh(build_command) # don't try to change, xz, bz2 deprecated. sh(' '.join([sys.executable, 'tools/retar.py', 'dist/*.gz'])) diff --git a/tools/toollib.py b/tools/toollib.py index 03f76c6..90727f0 100644 --- a/tools/toollib.py +++ b/tools/toollib.py @@ -18,10 +18,7 @@ archive = '%s:%s' % (archive_user, archive_dir) # Build commands # Source dists -sdists = "{python} -m build".format(python=sys.executable) -# Binary dists -def buildwheels(): - sh("{python} -m build".format(python=sys.executable)) +build_command = "{python} -m build".format(python=sys.executable) # Utility functions