Skip to content

Commit

Permalink
Merge pull request #54 from xhochy/make-recipe-bot-friendly
Browse files Browse the repository at this point in the history
Make the recipe bot-friendly
  • Loading branch information
xhochy authored Sep 25, 2023
2 parents badaf0a + 0f73e49 commit 235b8bd
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 21 deletions.
22 changes: 22 additions & 0 deletions recipe/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
@echo on

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"
%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
)
1 change: 1 addition & 0 deletions recipe/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
echo "noop"
22 changes: 1 addition & 21 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down

0 comments on commit 235b8bd

Please sign in to comment.