Vendor pyusb wheel for offline Windows source installs

Include pyusb-1.2.1-py3-none-any.whl under vendor/wheels and wire
setup scripts to pip install --no-index --find-links.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
joyharam
2026-07-15 10:44:09 +09:00
parent ec99c5eac6
commit 861b569994
10 changed files with 52 additions and 9 deletions
+4 -1
View File
@@ -14,12 +14,15 @@ python3 -m venv .venv
# shellcheck disable=SC1091
source .venv/bin/activate
pip install -U pip
pip install -r requirements.txt
# vendor wheel 우선 (오프라인 가능)
pip install --no-index --find-links=vendor/wheels -r requirements.txt \
|| pip install --find-links=vendor/wheels -r requirements.txt
pip install -e .
echo
echo "설치 완료. 예:"
echo " source $ROOT/.venv/bin/activate"
echo " juc500 info"
echo " juc500 gui"
echo " juc500 recv -y --dest ~/Downloads"
echo " juc500 send /path/to/file"
+11 -2
View File
@@ -5,12 +5,21 @@ cd /d %~dp0..
py -3 -m venv .venv
call .venv\Scripts\activate.bat
python -m pip install -U pip
pip install -r requirements.txt
pip install -e .
REM PyPI 없이 vendor\wheels 의 pyusb wheel 사용
python -m pip install --no-index --find-links=vendor\wheels -r requirements.txt
if errorlevel 1 (
echo [!] --no-index 실패. find-links + 온라인 허용으로 재시도…
python -m pip install --find-links=vendor\wheels -r requirements.txt
)
python -m pip install --no-index --find-links=vendor\wheels -e .
if errorlevel 1 (
python -m pip install --find-links=vendor\wheels -e .
)
echo.
echo Setup done. Next:
echo .venv\Scripts\activate
echo python -m juc500_xfer info
echo python -m juc500_xfer gui
echo See docs\WINDOWS.md for Zadig / WinUSB steps.
endlocal