From 5ba71c8afd0583a91cef8836cb09ba7c795042cf Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Mon, 25 Sep 2023 10:51:41 +0200 Subject: [PATCH 1/2] Make the recipe bot-friendly --- recipe/bld.bat | 22 ++++++++++++++++++++++ recipe/build.sh | 1 + recipe/meta.yaml | 22 +--------------------- 3 files changed, 24 insertions(+), 21 deletions(-) create mode 100644 recipe/bld.bat create mode 100644 recipe/build.sh diff --git a/recipe/bld.bat b/recipe/bld.bat new file mode 100644 index 0000000..beb31e9 --- /dev/null +++ b/recipe/bld.bat @@ -0,0 +1,22 @@ +@echo on + +if "%python_impl%" != "pypy" ( + set "STDLIB_DIR=%PREFIX%\Lib;%PREFIX%;%LIBRARY_BIN%" + %PYTHON% setup.py -q install --record=record.txt --skip-verstamp + echo "sleeping for 15" + %PYTHON% -c "import time; time.sleep(15)" + echo "Copying over stray DLLS" + if %ERRORLEVEL% neq 0 exit 1 + + dir %PREFIX%\Lib\site-packages\win32\py*.dll + copy %PREFIX%\Lib\site-packages\pywin32_system32\*.dll %PREFIX%\Lib\site-packages\win32\ + dir %PREFIX%\Lib\site-packages\win32\py*.dll + if %ERRORLEVEL% neq 0 exit 1 + + dir %LIBRARY_BIN%\py*.dll + copy %PREFIX%\Lib\site-packages\pywin32_system32\*.dll %LIBRARY_BIN%\ + if %ERRORLEVEL% neq 0 exit 1 + + dir %LIBRARY_BIN%\py*.dll + if %ERRORLEVEL% neq 0 exit 1 +) diff --git a/recipe/build.sh b/recipe/build.sh new file mode 100644 index 0000000..ae30f67 --- /dev/null +++ b/recipe/build.sh @@ -0,0 +1 @@ +echo "noop" diff --git a/recipe/meta.yaml b/recipe/meta.yaml index ff7466f..fbb0bad 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -12,27 +12,7 @@ source: - do-not-build-scintilla.patch build: - number: 0 - script: - - | # [win and python_impl != 'pypy'] - @echo on # [win and python_impl != 'pypy'] - set "STDLIB_DIR=%PREFIX%\Lib;%PREFIX%;%LIBRARY_BIN%" # [win and python_impl != 'pypy'] - {{ PYTHON }} setup.py -q install --record=record.txt --skip-verstamp # [win and python_impl != 'pypy'] - echo "sleeping for 15" # [win and python_impl != 'pypy'] - {{ PYTHON }} -c "import time; time.sleep(15)" # [win and python_impl != 'pypy'] - echo "Copying over stray DLLS" # [win and python_impl != 'pypy'] - if %ERRORLEVEL% neq 0 exit 1 # [win and python_impl != 'pypy'] - dir %PREFIX%\Lib\site-packages\win32\py*.dll # [win and python_impl != 'pypy'] - copy %PREFIX%\Lib\site-packages\pywin32_system32\*.dll %PREFIX%\Lib\site-packages\win32\ # [win and python_impl != 'pypy'] - dir %PREFIX%\Lib\site-packages\win32\py*.dll # [win and python_impl != 'pypy'] - if %ERRORLEVEL% neq 0 exit 1 # [win and python_impl != 'pypy'] - dir %LIBRARY_BIN%\py*.dll # [win and python_impl != 'pypy'] - copy %PREFIX%\Lib\site-packages\pywin32_system32\*.dll %LIBRARY_BIN%\ # [win and python_impl != 'pypy'] - if %ERRORLEVEL% neq 0 exit 1 # [win and python_impl != 'pypy'] - dir %LIBRARY_BIN%\py*.dll # [win and python_impl != 'pypy'] - if %ERRORLEVEL% neq 0 exit 1 # [win and python_impl != 'pypy'] - - echo "noop" - + number: 1 requirements: build: # [win and python_impl != 'pypy'] From 0f73e49d3164c1bcfc6357bdfa3632fae6e8bc6c Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Mon, 25 Sep 2023 11:16:06 +0200 Subject: [PATCH 2/2] NEQ --- recipe/bld.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipe/bld.bat b/recipe/bld.bat index beb31e9..03837f3 100644 --- a/recipe/bld.bat +++ b/recipe/bld.bat @@ -1,6 +1,6 @@ @echo on -if "%python_impl%" != "pypy" ( +if "%python_impl%" NEQ "pypy" ( set "STDLIB_DIR=%PREFIX%\Lib;%PREFIX%;%LIBRARY_BIN%" %PYTHON% setup.py -q install --record=record.txt --skip-verstamp echo "sleeping for 15"