Skip to content

doc: Explain how to query values for --platform and --python-version #13251

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
5 changes: 5 additions & 0 deletions docs/html/cli/pip_download.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,12 @@ constrained download requirement. If some of your dependencies are not
available as binaries, you can build them manually for your target platform
and let pip download know where to find them using ``--find-links``.

.. note::

To determine the appropriate values for ``--python-version`` and ``--platform``, you can query the target system using the following commands:

- For the Python version, use :func:`sysconfig.get_python_version() <sysconfig.get_python_version>`.
- For the platform, use :func:`packaging.tags.platform_tags() <packaging.tags.platform_tags>`.

Options
=======
Expand Down
1 change: 1 addition & 0 deletions docs/html/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
intersphinx_mapping = {
"python": ("https://docs.python.org/3", None),
"pypug": ("https://packaging.python.org", None),
"packaging": ("https://packaging.pypa.io/en/stable/", None),
}

# -- Options for towncrier_draft extension --------------------------------------------
Expand Down