Skip to content

Commit

Permalink
Pip fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga committed Jan 29, 2025
1 parent fb7672f commit e582d75
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,13 @@ cmake --build . --target install || goto :error

echo MetaCall Built Successfully

rem Patch for fixing install phase of py_port (https://gitlab.kitware.com/cmake/cmake/-/issues/25835#note_1502642)
set "PYTHONHOME=%loc%\runtimes\python"
set "PIP_TARGET=%loc%\runtimes\python\Lib\site-packages"
set "PATH=%PATH%;%loc%\runtimes\python;%loc%\runtimes\python\Scripts;%loc%\runtimes\python\Lib\site-packages\bin"

"%loc%\runtimes\python\Scripts\pip3.exe" install "%loc%\core\source\ports\py_port"

rem Delete unnecesary data from tarball directory
cd %loc%
rmdir /S /Q "%loc%\core"
Expand Down

0 comments on commit e582d75

Please sign in to comment.