Skip to content

Commit 01399f8

Browse files
author
Zoltan Varga
committed
Merge remote-tracking branch 'origin/develop'
2 parents 6b6549e + c085d42 commit 01399f8

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,3 +207,5 @@ c/build_all/windows/nuget.exe
207207
*.so
208208
build_all/windows/nuget.exe
209209
build_all/windows/pyenv.bat
210+
build_all/windows/build/lib/iothub_client/__init__.py
211+
build_all/windows/build/lib/iothub_service_client/__init__.py

build_all/windows/build_client.cmd

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ set wheel=0
3333
set platname=win32
3434
set use-websockets=OFF
3535

36-
@Echo Using Python found in: %PYTHON_PATH%, building Python %build-python% %build-platform% extension
3736
goto :args-loop
3837

3938
:NeedPython
@@ -46,6 +45,7 @@ if "%1" equ "" goto args-done
4645
if "%1" equ "--config" goto arg-build-config
4746
if "%1" equ "--wheel" goto arg-build-wheel
4847
if "%1" equ "--use-websockets" goto arg-use-websockets
48+
if "%1" equ "--platform" goto arg-build-platform
4949

5050
call :usage && exit /b 1
5151

@@ -63,6 +63,12 @@ goto args-continue
6363
set use-websockets=ON
6464
goto args-continue
6565

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+
6672
:args-continue
6773
shift
6874
goto args-loop
@@ -71,6 +77,8 @@ goto args-loop
7177

7278
:build
7379

80+
@Echo Using Python found in: %PYTHON_PATH%, building Python %build-python% %build-platform% extension
81+
7482
set cmake-output=cmake_%build-platform%
7583

7684
REM -- C --
@@ -140,7 +148,7 @@ if %wheel%==1 (
140148
echo IoTHub Device Client Python wheel done
141149

142150
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
144152
if not !ERRORLEVEL!==0 exit /b !ERRORLEVEL!
145153
cd %build-root%\build_all\windows
146154
echo update Python packages
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from .iothub_service_client import *

0 commit comments

Comments
 (0)