@@ -33,7 +33,6 @@ set wheel=0
33
33
set platname = win32
34
34
set use-websockets = OFF
35
35
36
- @ Echo Using Python found in: %PYTHON_PATH% , building Python %build-python% %build-platform% extension
37
36
goto :args-loop
38
37
39
38
:NeedPython
@@ -46,6 +45,7 @@ if "%1" equ "" goto args-done
46
45
if " %1 " equ " --config" goto arg-build-config
47
46
if " %1 " equ " --wheel" goto arg-build-wheel
48
47
if " %1 " equ " --use-websockets" goto arg-use-websockets
48
+ if " %1 " equ " --platform" goto arg-build-platform
49
49
50
50
call :usage && exit /b 1
51
51
@@ -63,6 +63,12 @@ goto args-continue
63
63
set use-websockets = ON
64
64
goto args-continue
65
65
66
+ :arg-build-platform
67
+ shift
68
+ if " %1 " equ " " call :usage && exit /b 1
69
+ set build-platform = %1
70
+ goto args-continue
71
+
66
72
:args-continue
67
73
shift
68
74
goto args-loop
@@ -71,6 +77,8 @@ goto args-loop
71
77
72
78
:build
73
79
80
+ @ Echo Using Python found in: %PYTHON_PATH% , building Python %build-python% %build-platform% extension
81
+
74
82
set cmake-output = cmake_%build-platform%
75
83
76
84
REM -- C --
@@ -140,7 +148,7 @@ if %wheel%==1 (
140
148
echo IoTHub Device Client Python wheel done
141
149
142
150
echo Copy iothub_service_client.pyd to %build-root% \build_all\windows\iothub_service_client for IoTHub Service Client Python wheel generation
143
- copy %USERPROFILE% \%cmake-output% \python \src\%build-config% \iothub_service_client.pyd ..\..\build_all\windows\iothub_service_client
151
+ copy %USERPROFILE% \%cmake-output% \python_service_client \src\%build-config% \iothub_service_client.pyd ..\..\build_all\windows\iothub_service_client
144
152
if not !ERRORLEVEL! == 0 exit /b !ERRORLEVEL!
145
153
cd %build-root% \build_all\windows
146
154
echo update Python packages
0 commit comments