Skip to main content
Version: 2.23 (prerelease)

apache-thrift


Apache Thrift IDL compiler (https://thrift.apache.org/).

Backend: pants.backend.codegen.thrift.apache.python

Config section: [apache-thrift]

Basic options

expected_version

--apache-thrift-expected-version=<str>
PANTS_APACHE_THRIFT_EXPECTED_VERSION
pants.toml
[apache-thrift]
expected_version = <str>
default: 0.15

The major/minor version of Apache Thrift that you are using, such as 0.15.

Pants will only use Thrift binaries from --thrift-search-paths that have the expected version, and it will error if none are found.

Do not include the patch version.

thrift_search_paths

--apache-thrift-thrift-search-paths="['<str>', '<str>', ...]"
PANTS_APACHE_THRIFT_THRIFT_SEARCH_PATHS
pants.toml
[apache-thrift]
thrift_search_paths = [
'<str>',
'<str>',
...,
]
default:
[
  "<PATH>"
]

A list of paths to search for Thrift.

Specify absolute paths to directories with the thrift binary, e.g. /usr/bin. Earlier entries will be searched first.

The special string "<PATH>" will expand to the contents of the PATH env var.

Can be overriden by fieldapache_thrift_thrift_search_paths on local_environment, docker_environment, or remote_environmenttargets.

Advanced options

None

Deprecated options

None

None