Skip to content

Commit 568884c

Browse files
committed
Improve SDK automation debugging
1 parent e38cf13 commit 568884c

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

tools/azure-sdk-tools/packaging_tools/generate_utils.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
from glob import glob
1313
import yaml
1414

15+
from . import build_packaging
1516
from .swaggertosdk.autorest_tools import build_autorest_options, generate_code
1617
from .swaggertosdk.SwaggerToSdkCore import CONFIG_FILE_DPG, read_config
1718
from .conf import CONF_NAME
@@ -62,10 +63,17 @@ def get_package_names(sdk_folder):
6263

6364

6465
def call_build_config(package_name: str, folder_name: str):
65-
check_call(
66-
f"python -m packaging_tools --build-conf {package_name} -o {folder_name}",
67-
shell=True,
66+
build_packaging(
67+
folder_name,
68+
os.environ.get("GH_TOKEN", None),
69+
packages=[package_name],
70+
build_conf=True,
6871
)
72+
# Replace this check_call by in process equivalent call, for better debugging
73+
# check_call(
74+
# f"python -m packaging_tools --build-conf {package_name} -o {folder_name}",
75+
# shell=True,
76+
# )
6977

7078
def init_new_service(package_name, folder_name, is_typespec = False):
7179
if not is_typespec:

0 commit comments

Comments
 (0)