Skip to main content
Version: 2.3 (deprecated)

setuptools


The Python setuptools library (https://github.com/pypa/setuptools).

Backend: ``

Config section: [setuptools]

Basic options

None

Advanced options

extra_requirements

--setuptools-extra-requirements="['<str>', '<str>', ...]"
PANTS_SETUPTOOLS_EXTRA_REQUIREMENTS
pants.toml
[setuptools]
extra_requirements = [
'<str>',
'<str>',
...,
]
default:
[
  "wheel>=0.35.1,<0.37"
]

Any additional requirement strings to use with the tool. This is useful if the tool allows you to install plugins or if you need to constrain a dependency to a certain version.

version

--setuptools-version=<str>
PANTS_SETUPTOOLS_VERSION
pants.toml
[setuptools]
version = <str>
default: setuptools>=50.3.0,<54.0

Requirement string for the tool.

Deprecated options

entry_point

--setuptools-entry-point=<str>
PANTS_SETUPTOOLS_ENTRY_POINT
pants.toml
[setuptools]
entry_point = <str>
default: None
Deprecated, will be removed in version: 2.5.0.dev0.
This option was never used.

DEPRECATED: Unused.

interpreter_constraints

--setuptools-interpreter-constraints="['<str>', '<str>', ...]"
PANTS_SETUPTOOLS_INTERPRETER_CONSTRAINTS
pants.toml
[setuptools]
interpreter_constraints = [
'<str>',
'<str>',
...,
]
default: []
Deprecated, will be removed in version: 2.5.0.dev0.
Interpreter constraints for setup.py execution are now derived from the `python_distribution` being packaged so this option is not needed.

DEPRECATED: Python interpreter constraints to use when selecting an interpreter to package python_distribution targets using setup.py.

None