Introduction
For packages where the package index and the binary host are on different domains but both are PyPI-style upstreams (like PyTorch/TorchVision), the common workaround is to create two separate PyPI remote repositories (one per host) and front them with a virtual repository. This works because both sources speak the PyPI protocol.
FlashInfer presents a different challenge. Its index page is PyPI-compatible, but the actual .whl download links point to GitHub, a plain file server, not a PyPI-compatible upstream:
- Index page: https://flashinfer.ai/whl/cu129/ — a static, pip-compatible HTML page listing available wheels.
- Binary host: https://github.com (the flashinfer-ai/whl GitHub repository) — where the .whl download links in the index page actually point.
Because GitHub is not a PyPI-style upstream, the two-remote workaround cannot be used here.
Artifactory handles this natively through two PyPI-specific repository settings: Registry URL (the index host) and Registry Index Location URL Suffix (the path to the index page on that host), combined with setting the repository's main URL to the binary host. This lets a single remote repository proxy the index from one domain and the binaries from another, regardless of whether the binary host is PyPI-compatible.
This document describes how to configure such a remote PyPI repository in Artifactory.
Resolution
1. Create a New PyPI Remote Repository
1. In the Artifactory UI, navigate to Administration → Repositories.
2. Click Create a Repository → Remote Repository.
3. Select PyPI as the package type.
4. Give the repository a name (for example, pypi-flashinfer).
2. Configure the Repository URL and PyPI Settings
The key to making split-host PyPI sources work is to set three fields correctly:
- URL: set this to the binary host, the server where the actual .whl files will be downloaded from. For FlashInfer this is https://github.com.
- Registry URL (under PyPI Settings): set this to the index host, the server that serves the pip-compatible package index. For FlashInfer this is https://flashinfer.ai/.
- Registry Index Location URL Suffix (under PyPI Settings): set this to the path on the index host that leads to the index page. Artifactory appends this to the Registry URL, so whl/cu129/ results in pip reading https://flashinfer.ai/whl/cu129/.
Click Save.
3. Verify the Repository in the Artifacts Browser
After saving, navigate to Application → Artifactory → Artifacts and search for the repository name. The repository should appear as a PyPI remote repository. When packages are resolved through it, cached .whl files will appear under the repository's cache node.