32 lines
817 B
Batchfile
32 lines
817 B
Batchfile
@echo off
|
|
REM Download all Python packages as wheel files for offline installation
|
|
REM Run this on a machine with internet access
|
|
|
|
echo.
|
|
echo 📦 Downloading Python wheels for offline installation...
|
|
echo.
|
|
|
|
REM Create wheels directory
|
|
if not exist wheels mkdir wheels
|
|
|
|
REM Download all dependencies including their dependencies
|
|
pip download ^
|
|
--dest wheels ^
|
|
--platform manylinux2014_x86_64 ^
|
|
--only-binary=:all: ^
|
|
--python-version 3.11 ^
|
|
-r requirements.txt
|
|
|
|
echo.
|
|
echo ✅ Downloaded all wheels to ./wheels/
|
|
echo.
|
|
echo Files downloaded:
|
|
dir wheels /b
|
|
echo.
|
|
echo Next steps:
|
|
echo 1. Commit the wheels directory: git add wheels/ ^&^& git commit -m "Add offline Python wheels"
|
|
echo 2. Push to Git: git push
|
|
echo 3. The Dockerfile will install from local wheels (no PyPI access needed)
|
|
echo.
|
|
pause
|