Skip to content

Commit

Permalink
Replace f-string with .format, add python_requires
Browse files Browse the repository at this point in the history
Signed-off-by: ddelange <14880945+ddelange@users.noreply.github.com>
  • Loading branch information
ddelange committed Jul 6, 2023
1 parent 1bd83cd commit 9a8e0ce
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions python/packaging/frontend_sdist/setup.py
Expand Up @@ -93,19 +93,21 @@ def parent_command_line():
name=tensorrt_module,
version=tensorrt_version,
description="A high performance deep learning inference library",
long_description=f"""A high performance deep learning inference library
long_description="""A high performance deep learning inference library
To install, please execute the following:
```
pip install tensorrt --extra-index-url {nvidia_pip_index_url}
pip install tensorrt --extra-index-url {}
```
Or add the index URL to the (space-separated) PIP_EXTRA_INDEX_URL environment variable:
```
export PIP_EXTRA_INDEX_URL='{nvidia_pip_index_url}'
export PIP_EXTRA_INDEX_URL='{}'
pip install tensorrt
```
When the extra index url does not contain `{nvidia_pip_index_url}`, a nested `pip install` will run with the proper extra index url hard-coded.
""",
When the extra index url does not contain `{}`, a nested `pip install` will run with the proper extra index url hard-coded.
""".format(
nvidia_pip_index_url, nvidia_pip_index_url, nvidia_pip_index_url
),
long_description_content_type="text/markdown",
author="NVIDIA Corporation",
license="Proprietary",
Expand All @@ -116,6 +118,7 @@ def parent_command_line():
],
packages=[tensorrt_module],
install_requires=install_requires,
python_requires=">=3.6", # ref https://pypi.nvidia.com/tensorrt-bindings/
cmdclass=cmdclass,
extras_require={"numpy": "numpy"},
package_data={tensorrt_module: ["*.so*", "*.pyd", "*.pdb"]},
Expand Down

0 comments on commit 9a8e0ce

Please sign in to comment.