Salome HOME
Merge branch 'bos/23995' into master
[tools/sat_salome.git] / products / compil_scripts / Python-3.6.5.bat
index 5a5474a3908f33b8119556ed002693b6f7678297..a639fc81e791b52cd230c5d41cb30d50804f19b5 100644 (file)
@@ -140,6 +140,15 @@ set PATH=%PRODUCT_INSTALL%\Scripts;%PATH%
 
 %PRODUCT_INSTALL%\python.exe %SOURCE_DIR%\externals\pip-19.1.1\get-pip.py --force-reinstall --no-setuptools --no-wheel  --no-index --find-links=%SOURCE_DIR%\externals\pip-19.1.1
 
+REM In debug mode, we need to rename all _d.pyd to .pyd... don't ask why. Seems like a known bug in OmniORB.
+if %SAT_DEBUG% == 1 (
+  cd %PRODUCT_INSTALL%
+  powershell -Command "Get-ChildItem -File -Recurse *.pyd| ForEach-Object {if ((!$_.Name.EndsWith('_d.pyd'))) {  $_ | Copy-Item -Destination {$_.Name  -replace '.pyd','_d.pyd'}}}"
+  cd %PRODUCT_INSTALL%\lib\site-packages
+  powershell -Command "Get-ChildItem -File -Recurse *.pyd| ForEach-Object {if ((!$_.Name.EndsWith('_d.pyd'))) {  $_ | Copy-Item -Destination {$_.Name  -replace '.pyd','_d.pyd'}}}"
+)
+
+
 taskkill /F /IM "mspdbsrv.exe"
 
 echo.