-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
Update recipe files to 6.0.0 version
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,37 @@ | ||
setlocal ENABLEDELAYEDEXPANSION | ||
|
||
%PYTHON% -m pip install . --no-deps --ignore-installed --no-cache-dir -vvv | ||
if errorlevel 1 exit 1 | ||
|
||
set MENU_DIR=%PREFIX%\Menu | ||
IF NOT EXIST (%MENU_DIR%) mkdir %MENU_DIR% | ||
|
||
copy %SRC_DIR%\img_src\spyder.ico %MENU_DIR%\ | ||
copy %SRC_DIR%\img_src\spyder_reset.ico %MENU_DIR%\ | ||
if errorlevel 1 exit 1 | ||
copy %RECIPE_DIR%\menu-windows.json %MENU_DIR%\spyder_shortcut.json | ||
if errorlevel 1 exit 1 | ||
rem Copy Spyder's icon | ||
copy %RECIPE_DIR%\spyder.ico %MENU_DIR%\spyder.ico | ||
|
||
rem Replace variables in menu files | ||
for /F "delims=. tokens=1" %%i in ("%PKG_VERSION%") do set PKG_MAJOR_VER=%%i | ||
call :replace spyder-menu.json | ||
call :replace spyder-menu-v1.json.bak | ||
|
||
rem Copy GUI executable stub | ||
for /F "tokens=*" %%i in ( | ||
'%CONDA_PYTHON_EXE% -c "import conda_build, pathlib; print(pathlib.Path(conda_build.__file__).parent / 'gui-64.exe')"' | ||
) do ( | ||
set exe_path=%%i | ||
) | ||
copy /y /b %exe_path% %SCRIPTS% | ||
|
||
rem Copy launch script | ||
copy /y %RECIPE_DIR%\spyder-script.pyw %SCRIPTS% | ||
|
||
:exit | ||
exit /b %errorlevel% | ||
|
||
del %SCRIPTS%\spyder_win_post_install.py | ||
del %SCRIPTS%\spyder.bat | ||
del %SCRIPTS%\spyder | ||
:replace | ||
for /f "delims=" %%i in (%RECIPE_DIR%\%1) do ( | ||
set s=%%i | ||
set s=!s:__PKG_VERSION__=%PKG_VERSION%! | ||
echo !s:__PKG_MAJOR_VER__=%PKG_MAJOR_VER%!>> %MENU_DIR%\%1 | ||
) | ||
goto :eof |
This file was deleted.