Fix python bin dir not set, improve dev script
This commit is contained in:
parent
00b3288823
commit
c87d2f62fc
@ -10,6 +10,9 @@ set root_dir=%devenver_root%
|
||||
:: Arguments :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||||
set clang_dir=%root_dir%\LLVM
|
||||
set cmake_dir=%root_dir%\CMake
|
||||
set msvc_dir=%root_dir%\msvc
|
||||
set msvc_vc_dir=%msvc_dir%\msvc_host_x64_target_x64
|
||||
set msvc_sdk_dir=%msvc_dir%\sdk_host_x64_target_x64
|
||||
set node_dir=%root_dir%\NodeJS
|
||||
set raddbg_dir=%root_dir%\raddbg\trunk
|
||||
set raddbg_args=--user:%raddbg_dir%\..\doylet.raddbg_user
|
||||
@ -27,15 +30,16 @@ set virustotal_url=https://www.virustotal.com/gui/file
|
||||
set option=%1
|
||||
shift
|
||||
|
||||
if "%option%"=="clang" set "exe_dir=%clang_dir%\%1\bin" && set path=%exe_dir%;%path% && set cmd_line=!exe_dir!\%2 && shift && shift
|
||||
if "%option%"=="cmake" set "exe_dir=%cmake_dir%\%1" && set path=%exe_dir%;%path% && set cmd_line=!exe_dir!\%2 && shift && shift
|
||||
if "%option%"=="node" set "exe_dir=%node_dir%\%1" && set path=%exe_dir%;%path% && set cmd_line=!exe_dir!\%2 && shift && shift
|
||||
if "%option%"=="msvc" endlocal && call %msvc_vc_dir%\%1\devcmd.bat && call %msvc_sdk_dir%\%2\devcmd.bat && goto :eof
|
||||
if "%option%"=="rad_update" set "exe_dir=%rad_update_dir%" && set path=%rad_update_dir%;%path% && set cmd_line=!exe_dir!\update_trunk.bat
|
||||
if "%option%"=="raddbg" set "exe_dir=%raddbg_dir%" && set path=%exe_dir%;%path% && set cmd_line=start /B !exe_dir!\%raddbg_exe% %raddbg_args%
|
||||
if "%option%"=="raddbg_env" endlocal && set path=%raddbg_dir%;%path% && goto :eof
|
||||
if "%option%"=="radlink" set "exe_dir=%radlink_dir%" && set path=%exe_dir%;%path% && set cmd_line=!exe_dir!\%radlink_exe%
|
||||
if "%option%"=="radlink_env" endlocal && set path=%radlink_dir%;%path% && goto :eof
|
||||
if "%option%"=="rad_update" set "exe_dir=%rad_update_dir%" && set path=%rad_update_dir%;%path% && set cmd_line=!exe_dir!\update_trunk.bat
|
||||
if "%option%"=="clang" set "exe_dir=%clang_dir%\%1\bin" && set path=%exe_dir%;%path% && set cmd_line=!exe_dir!\%2 && shift && shift
|
||||
if "%option%"=="cmake" set "exe_dir=%cmake_dir%\%1" && set path=%exe_dir%;%path% && set cmd_line=!exe_dir!\%2 && shift && shift
|
||||
if "%option%"=="remedybg" set "exe_dir=%remedybg_dir%\%1" && set path=%exe_dir%;%path% && set cmd_line=start /B !exe_dir!\%remedybg_exe% && shift
|
||||
if "%option%"=="node" set "exe_dir=%node_dir%\%1" && set path=%exe_dir%;%path% && set cmd_line=!exe_dir!\%2 && shift && shift
|
||||
if "%option%"=="virustotal" for /f "delims=" %%a in ('powershell -Command "(Get-FileHash \"%1\" -Algorithm SHA256).Hash"') do set virustotal_hash=%%a && shift
|
||||
if "%option%"=="virustotal" set cmd_line=start /B %virustotal_url%/%virustotal_hash%
|
||||
|
||||
@ -45,6 +49,8 @@ if "%option%"=="help" (
|
||||
for /f "delims=" %%a in ('dir /B %cmake_dir%') do set "cmake_versions=%%a !cmake_versions!"
|
||||
for /f "delims=" %%a in ('dir /B %remedybg_dir%') do set "remedybg_versions=%%a !remedybg_versions!"
|
||||
for /f "delims=" %%a in ('dir /B %node_dir%') do set "node_versions=%%a !node_versions!"
|
||||
for /f "delims=" %%a in ('dir /B %msvc_vc_dir%') do set "msvc_vc_versions=%%a !msvc_vc_versions!"
|
||||
for /f "delims=" %%a in ('dir /B %msvc_sdk_dir%') do set "msvc_sdk_versions=%%a !msvc_sdk_versions!"
|
||||
|
||||
echo USAGE: dev [option] [args...]
|
||||
echo.
|
||||
@ -60,6 +66,11 @@ if "%option%"=="help" (
|
||||
echo Example: 'dev clang 18.1.4 clang++.exe --help'
|
||||
echo Versions: !clang_versions!
|
||||
echo.
|
||||
echo msvc [vc_version] [sdk_version] MSVC build tools: '%msvc_vc_dir%\[vc_version]'
|
||||
echo '%msvc_sdk_dir%\[sdk_version]'
|
||||
echo VC Versions: !msvc_vc_versions!
|
||||
echo SDK Versions: !msvc_sdk_versions!
|
||||
echo.
|
||||
echo node [version] [exe] Node JS: '%node_dir%\[version]\[exe]'
|
||||
echo Versions: !node_versions!
|
||||
echo.
|
||||
|
@ -972,7 +972,7 @@ def get_manifest(is_windows):
|
||||
exe_path = "install/python.exe"
|
||||
add_to_devenv_script = [
|
||||
f"set PYTHONHOME=%~dp0{label}\\{version}\\install",
|
||||
f"set PATH=%~dp0{label}\\{version}\\install\\Script;%PATH%",
|
||||
f"set PATH=%~dp0{label}\\{version}\\install\\Scripts;%PATH%",
|
||||
]
|
||||
else:
|
||||
download_url = f"https://github.com/indygreg/python-build-standalone/releases/download/{date}/cpython-{version}-x86_64_v2-unknown-linux-gnu-pgo+lto-full.tar.zst"
|
||||
|
Loading…
Reference in New Issue
Block a user