Skip to content

Commit

Permalink
Solve more issues with pip.
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga committed Jan 30, 2025
1 parent 120b260 commit 82f187e
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions metacall.bat
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,22 @@ rem DotNet Core
set "PATH=%PATH%;%loc%\lib\runtimes\dotnet;%loc%\lib\runtimes\dotnet\host\fxr\5.0.12"

rem Package Managers Paths
set "pip_path=%loc%\runtimes\python\Scripts\pip.exe"
set "pip3_path=%loc%\runtimes\python\Scripts\pip3.exe"
set "npm_path=%loc%\runtimes\nodejs\npm.cmd"
set "npx_path=%loc%\runtimes\nodejs\npx.cmd"
set "bundle_path=%loc%\runtimes\ruby\bin\bundle.bat"
set "bundler_path=%loc%\runtimes\ruby\bin\bundler.bat"
set "erb_path=%loc%\runtimes\ruby\bin\erb.bat"
set "gem_path=%loc%\runtimes\ruby\bin\gem.cmd"
set "irb_path=%loc%\runtimes\ruby\bin\irb.bat"
set "racc_path=%loc%\runtimes\ruby\bin\racc.bat"
set "rake_path=%loc%\runtimes\ruby\bin\rake.bat"
set "rbs_path=%loc%\runtimes\ruby\bin\rbs.bat"
set "rdbg_path=%loc%\runtimes\ruby\bin\rdbg.bat"
set "rdoc_path=%loc%\runtimes\ruby\bin\rdoc.bat"
set "ri_path=%loc%\runtimes\ruby\bin\ri.bat"
set "typeprof_path=%loc%\runtimes\ruby\bin\typeprof.bat"
set pip_path="%loc%\runtimes\python\python.exe" -m pip
set pip3_path="%loc%\runtimes\python\python.exe" -m pip
set npm_path="%loc%\runtimes\nodejs\npm.cmd"
set npx_path="%loc%\runtimes\nodejs\npx.cmd"
set bundle_path="%loc%\runtimes\ruby\bin\bundle.bat"
set bundler_path="%loc%\runtimes\ruby\bin\bundler.bat"
set erb_path="%loc%\runtimes\ruby\bin\erb.bat"
set gem_path="%loc%\runtimes\ruby\bin\gem.cmd"
set irb_path="%loc%\runtimes\ruby\bin\irb.bat"
set racc_path="%loc%\runtimes\ruby\bin\racc.bat"
set rake_path="%loc%\runtimes\ruby\bin\rake.bat"
set rbs_path="%loc%\runtimes\ruby\bin\rbs.bat"
set rdbg_path="%loc%\runtimes\ruby\bin\rdbg.bat"
set rdoc_path="%loc%\runtimes\ruby\bin\rdoc.bat"
set ri_path="%loc%\runtimes\ruby\bin\ri.bat"
set typeprof_path="%loc%\runtimes\ruby\bin\typeprof.bat"
rem TODO: set "nuget_path=%loc%\runtimes\dotnet\nuget.exe"

rem Additional Packages Paths
Expand All @@ -44,7 +44,7 @@ for /f "tokens=1,* delims= " %%a in ("%*") do set SUBPROGRAM_PARAMETERS=%%b
setlocal ENABLEDELAYEDEXPANSION
set package_manager=^^^!%1_path^^^!
if not [%package_manager%]==[] (
call "%package_manager%" %SUBPROGRAM_PARAMETERS%
call %package_manager% %SUBPROGRAM_PARAMETERS%
exit /b %errorlevel%
)
endlocal
Expand Down

0 comments on commit 82f187e

Please sign in to comment.