2019-02-27 22:40:03 +03:00
|
|
|
# -------------------------------------------------------------------------
|
|
|
|
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
# Licensed under the MIT License. See License.txt in the project root for
|
|
|
|
# license information.
|
|
|
|
# --------------------------------------------------------------------------
|
|
|
|
"""Build all packages for distribution"""
|
|
|
|
|
|
|
|
import glob
|
|
|
|
import os
|
|
|
|
import sys
|
|
|
|
from subprocess import check_call
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
target_dir = "../dist"
|
|
|
|
packages = [os.path.dirname(p) for p in glob.glob("azure*/setup.py")]
|
|
|
|
for package_name in packages:
|
2019-04-17 00:29:10 +03:00
|
|
|
command_sdist = "setup.py sdist --dist-dir={}".format(target_dir)
|
|
|
|
command_bdist_wheel = "setup.py bdist_wheel --dist-dir={} --universal".format(target_dir)
|
|
|
|
check_call([sys.executable] + command_sdist.split(), cwd=package_name)
|
2019-02-27 22:40:03 +03:00
|
|
|
check_call([sys.executable] + command_bdist_wheel.split(), cwd=package_name)
|