| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -41,6 +41,10 @@ if "%DO_FETCH%"=="false" goto end | |||
| 41 | 41 | if "%ORG%"=="" (set ORG=python) | |
| 42 | 42 | call "%PCBUILD%find_python.bat" "%PYTHON%" | |
| 43 | 43 | ||
| 44 | + if "%PYTHON%"=="" ( | ||
| 45 | + where /Q git || echo Python 3.6 could not be found or installed, and git.exe is not on your PATH && exit /B 1 | ||
| 46 | + ) | ||
| 47 | + | ||
| 44 | 48 | echo.Fetching external libraries... | |
| 45 | 49 | ||
| 46 | 50 | set libraries= | |
@@ -55,6 +59,9 @@ set libraries=%libraries% xz-5.2.2 | |||
| 55 | 59 | for %%e in (%libraries%) do ( | |
| 56 | 60 | if exist "%EXTERNALS_DIR%\%%e" ( | |
| 57 | 61 | echo.%%e already exists, skipping. | |
| 62 | + ) else if "%PYTHON%"=="" ( | ||
| 63 | + echo.Fetching %%e with git... | ||
| 64 | + git clone --depth 1 https://github.com/%ORG%/cpython-source-deps --branch %%e "%EXTERNALS_DIR%\%%e" | ||
| 58 | 65 | ) else ( | |
| 59 | 66 | echo.Fetching %%e... | |
| 60 | 67 | %PYTHON% "%PCBUILD%get_external.py" -O %ORG% %%e | |
@@ -71,6 +78,9 @@ if NOT "%IncludeSSLSrc%"=="false" set binaries=%binaries% nasm-2.11.06 | |||
| 71 | 78 | for %%b in (%binaries%) do ( | |
| 72 | 79 | if exist "%EXTERNALS_DIR%\%%b" ( | |
| 73 | 80 | echo.%%b already exists, skipping. | |
| 81 | + ) else if "%PYTHON%"=="" ( | ||
| 82 | + echo.Fetching %%b with git... | ||
| 83 | + git clone --depth 1 https://github.com/%ORG%/cpython-bin-deps --branch %%b "%EXTERNALS_DIR%\%%b" | ||
| 74 | 84 | ) else ( | |
| 75 | 85 | echo.Fetching %%b... | |
| 76 | 86 | %PYTHON% "%PCBUILD%get_external.py" -b -O %ORG% %%b | |
| Back | FazBrowse Home | New Git URL |
0 commit comments