Hey! These docs are for version 2.10, which is no longer officially supported. Click here for the latest version, 2.14!

apache-thrift

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

Backend: pants.backend.codegen.thrift.apache.python
Config section: [apache-thrift]

Basic options

thrift_search_paths

--apache-thrift-thrift-search-paths="['<str>', '<str>', ...]"
PANTS_APACHE_THRIFT_THRIFT_SEARCH_PATHS
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 '' will expand to the contents of the PATH env var.


expected_version

--apache-thrift-expected-version=<str>
PANTS_APACHE_THRIFT_EXPECTED_VERSION
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.


Advanced options

None

Deprecated options

None