From 3d0d65bfa117f6fc7daba637a96ba647a3306c4b Mon Sep 17 00:00:00 2001 From: Nabil Ghodbane Date: Wed, 24 Mar 2021 15:11:28 +0100 Subject: [PATCH] SIP debug build fix - Windows only --- products/compil_scripts/sip.bat | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/products/compil_scripts/sip.bat b/products/compil_scripts/sip.bat index 3a18662..63d895c 100755 --- a/products/compil_scripts/sip.bat +++ b/products/compil_scripts/sip.bat @@ -61,8 +61,7 @@ if NOT %ERRORLEVEL% == 0 ( 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%\lib\%python_name%\site-packages - powershell -Command "Get-ChildItem *_d.pyd| Rename-Item -newname { $_.name -replace '_d.pyd','.pyd' }" - powershell -Command "Get-ChildItem *.pyd| Rename-Item -newname { $_.name -replace '.pyd','_d.pyd' }" + powershell -Command "Get-ChildItem -File -Recurse *.pyd| ForEach-Object {if (($_.Name.EndsWith('_d.pyd'))) { $_ | Copy-Item -Destination {$_.Name -replace '_d.pyd','.pyd'}}}" ) echo. -- 2.39.2