Skip to main content
Version: 2.2 (deprecated)

setup-py-generation


Options to control how setup.py is generated from a python_distribution target.

Backend: ``

Config section: [setup-py-generation]

Basic options

first_party_dependency_version_scheme

--setup-py-generation-first-party-dependency-version-scheme=<FirstPartyDependencyVersionScheme>
PANTS_SETUP_PY_GENERATION_FIRST_PARTY_DEPENDENCY_VERSION_SCHEME
pants.toml
[setup-py-generation]
first_party_dependency_version_scheme = <FirstPartyDependencyVersionScheme>
one of: exact, compatible, any
default: exact

What version to set in install_requires when a python_distribution depends on other python_distributions. If exact, will use ==. If compatible, will use ~=. If any, will leave off the version. See https://www.python.org/dev/peps/pep-0440/#version-specifiers.

Advanced options

None

Deprecated options

None

None