File tree 1 file changed +11
-3
lines changed
tools/azure-sdk-tools/packaging_tools
1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 12
12
from glob import glob
13
13
import yaml
14
14
15
+ from . import build_packaging
15
16
from .swaggertosdk .autorest_tools import build_autorest_options , generate_code
16
17
from .swaggertosdk .SwaggerToSdkCore import CONFIG_FILE_DPG , read_config
17
18
from .conf import CONF_NAME
@@ -62,10 +63,17 @@ def get_package_names(sdk_folder):
62
63
63
64
64
65
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 ,
68
71
)
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
+ # )
69
77
70
78
def init_new_service (package_name , folder_name , is_typespec = False ):
71
79
if not is_typespec :
You can’t perform that action at this time.
0 commit comments