@@ -412,14 +412,14 @@ jobs:
412412 ver=$(python -c "import os,sys,pathlib; sys.path.insert(0, str(pathlib.Path('bindings/python').resolve())); import find_version as v; print(v.get_package_dev_version(os.environ['BUILD_COMMIT_HASH']))")
413413 echo "Installing depthai==$ver using $(python -V)"
414414
415- # Install from Artifactory snapshot
415+ # Get the name of the one file in bindings/python/wheelhouse/audited
416+ wheel_name=$(ls bindings/python/wheelhouse/audited/*.whl)
417+
418+ # Install wheel
416419 python -m pip install -U pip
417- python -m pip install --force-reinstall -U --prefer-binary \
418- --extra-index-url "$ARTIFACTORY_URL/luxonis-python-snapshot-local" \
419- "depthai==$ver" \
420- --trusted-host 3.145.46.25
420+ python -m pip install --force-reinstall bindings/python/wheelhouse/audited/$wheel_name
421421
422- EXPECTED_VERSION="$ver" python .github/scripts /smoke_depthai.py
422+ EXPECTED_VERSION="$ver" python bindings/python/ci /smoke_depthai.py
423423
424424 # This job builds wheels for x86_64 arch
425425 build-linux-x86_64 :
@@ -539,13 +539,15 @@ jobs:
539539 ver=$("$PYBIN" -c "import os,sys,pathlib; sys.path.insert(0, str(pathlib.Path('bindings/python').resolve())); import find_version as v; print(v.get_package_dev_version(os.environ['BUILD_COMMIT_HASH']))")
540540 echo "Installing depthai==$ver using $($PYBIN -V)"
541541
542- # Install from Artifactory snapshot
542+ # Get the name of the one file in bindings/python/wheelhouse/audited
543+ wheel_name=$(ls bindings/python/wheelhouse/audited/*.whl)
544+
543545 "$PYBIN" -m ensurepip --upgrade || true
544546 "$PYBIN" -m pip install -U pip
545- "$PYBIN" -m pip install --force-reinstall -U --prefer-binary --extra-index-url "$ARTIFACTORY_URL/luxonis- python-snapshot-local" "depthai==$ver" --trusted-host 3.145.46.25
547+ "$PYBIN" -m pip install --force-reinstall bindings/ python/wheelhouse/audited/$wheel_name
546548
547549 # Smoke test: fail hard on any exception or version mismatch
548- EXPECTED_VERSION="$ver" python .github/scripts /smoke_depthai.py
550+ EXPECTED_VERSION="$ver" python bindings/python/ci /smoke_depthai.py
549551
550552 # This job builds wheels for ARM64 arch
551553 build-linux-arm64 :
@@ -667,12 +669,15 @@ jobs:
667669 ver=$("$PYBIN" -c "import os,sys,pathlib; sys.path.insert(0, str(pathlib.Path('bindings/python').resolve())); import find_version as v; print(v.get_package_dev_version(os.environ['BUILD_COMMIT_HASH']))")
668670 echo "Installing depthai==$ver using $($PYBIN -V)"
669671
672+ # Get the name of the one file in bindings/python/wheelhouse/audited
673+ wheel_name=$(ls bindings/python/wheelhouse/audited/*.whl)
674+
670675 # Install from Artifactory snapshot
671676 "$PYBIN" -m ensurepip --upgrade || true
672677 "$PYBIN" -m pip install -U pip
673- "$PYBIN" -m pip install --force-reinstall -U --prefer-binary --extra-index-url "$ARTIFACTORY_URL/luxonis- python-snapshot-local" "depthai==$ver" --trusted-host 3.145.46.25
678+ "$PYBIN" -m pip install --force-reinstall bindings/ python/wheelhouse/audited/$wheel_name
674679
675- EXPECTED_VERSION="$ver" "$PYBIN" .github/scripts /smoke_depthai.py
680+ EXPECTED_VERSION="$ver" "$PYBIN" bindings/python/ci /smoke_depthai.py
676681
677682 combine-windows-x86_64-wheels :
678683 needs : build-windows-x86_64
@@ -723,15 +728,15 @@ jobs:
723728 $ver = python -c "import os,sys,pathlib; sys.path.insert(0,str(pathlib.Path('bindings/python').resolve())); import find_version as v; print(v.get_package_dev_version(os.environ['BUILD_COMMIT_HASH']))"
724729 Write-Host "Installing depthai==$ver using:"; python -VV
725730
731+ # Get the name of the one file in bindings/python/wheelhouse/audited
732+ wheel_name=$(ls bindings/python/wheelhouse/audited/*.whl)
733+
726734 # Install from Artifactory snapshot
727735 python -m pip install -U pip
728- python -m pip install --force-reinstall -U --prefer-binary `
729- --extra-index-url "$env:ARTIFACTORY_URL/luxonis-python-snapshot-local" `
730- "depthai==$ver" `
731- --trusted-host 3.145.46.25
736+ python -m pip install --force-reinstall bindings/python/wheelhouse/audited/$wheel_name
732737
733738 # Smoke test (no heredoc; YAML-safe). Fail on import error or version mismatch.
734- $env:EXPECTED_VERSION = $ver "python .github/scripts /smoke_depthai.py
739+ $env:EXPECTED_VERSION = $ver "python bindings/python/ci /smoke_depthai.py
735740 release :
736741 if : startsWith(github.ref, 'refs/tags/v')
737742 # needs: [pytest, build-linux-armhf, build-windows-x86_64, build-macos-x86_64, build-macos-arm64, build-linux-x86_64, build-linux-arm64]
0 commit comments