- return samples
- def pip_cache(version, requires=None):
- """
- Defines a container that just sets the environment for using the pip caching server.
- https://github.com/dusty-nv/jetson-containers/blob/master/docs/build.md#pip-server
- """
- short_version = f"cu{version.replace('.', '')}"
- index_host = os.environ.get('INDEX_HOST', 'jetson-ai-lab.dev')
- pip_path = (
- f"jp{JETPACK_VERSION.major}/{short_version}" if IS_TEGRA
- else f"sbsa/{short_version}" if IS_SBSA
- else f"{DOCKER_ARCH}/{short_version}"
- )
- apt_path = pip_path if Version(LSB_RELEASE).major < 24 else f"{pip_path}/{LSB_RELEASE}"
- pip_cache = package.copy()