зеркало из
1
0
Форкнуть 0
azure-iot-sdk-python/build_packages.py

21 строка
919 B
Python
Исходник Обычный вид История

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:
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)