Variables#
Variables that are set by py-build-cmake#
Below is a list of the CMake variables and environment variables that are set by py-build-cmake during the build process.
Variable |
Description |
Type |
---|---|---|
|
The full version of py-build-cmake itself. This variable can be used to determine whether the package is being built by py-build-cmake or not. |
CMake, Environment |
|
The normalized name of the package being built ( |
CMake, Environment |
|
The full version of the package being built. |
CMake, Environment |
|
The import name of the top-level module or package of your project ( |
CMake, Environment |
|
The CMake binary directory for the current build (note that there could be multiple build directories for a single package). |
Environment |
|
The CMake installation directory. Files that should be included in the Wheel package should be placed in this directory. In normal cases, you don’t need to use this variable, because py-build-cmake sets the CMake |
Environment |
|
Path to the Python interpreter that was used to invoke py-build-cmake ( |
CMake |
|
The full version of the Python interpreter that was used to invoke py-build-cmake ( |
CMake |
|
Major version number of the Python interpreter that was used to invoke py-build-cmake ( |
CMake |
|
Minor version number of the Python interpreter that was used to invoke py-build-cmake ( |
CMake |
|
Patch version number of the Python interpreter that was used to invoke py-build-cmake ( |
CMake |
|
Release level of the Python interpreter that was used to invoke py-build-cmake ( |
CMake |
|
The ABI flags of the Python interpreter that was used to invoke py-build-cmake ( |
CMake |
Environment variables that affect the behavior of py-build-cmake#
Variable |
Description |
---|---|
|
Enables verbose mode: prints more information about the py-build-cmake configuration, options passed to CMake, etc. Equivalent to passing the |
|
Sets the level of the root logger. Can be used to silence all notifications or warnings. See https://docs.python.org/3/library/logging.html#levels for a list of valid levels. Equivalent to passing the |
|
If this value is greater than one, automatically enables verbose mode. Explicitly set |
|
Disables color output of the command line interface. |
|
Enable color output of the command line interface, even if not connected to a TTY. |
|
Overrides the Python platform tag used for Wheel filenames. Note that this only changes the tag, it does not actually affect the build process. |
|
On Windows, this variable can be set to the path of a configuration file that may contain the |
|
On macOS, this variable can be set to enable automatic cross-compilation or to build universal2 Wheels. Possible values: |
|
Selects the macOS version to build for. Affects the platform tag of the generated Wheels, and passes the value on to CMake. Values should contain a major and minor version, separated by a dot. For example, |
|
Setting this to a Unix timestamp causes py-build-cmake to perform a reproducible build. The modification times of files in the generated sdist and Wheel archives are set to the given value. |