Marcel Telka
2023-06-20 ea207ce61a553ef2b48850f864c45fc6d2dfa5d9
setup.py.mk: set CARGO_HOME during build

1 files modified
4 ■■■■ changed files
make-rules/setup.py.mk 4 ●●●● patch | view | raw | blame | history
make-rules/setup.py.mk
@@ -164,6 +164,10 @@
COMPONENT_INSTALL_ENV += $(PYTHON_ENV)
COMPONENT_TEST_ENV += $(PYTHON_ENV)
# Set CARGO_HOME to make sure projects built using rust (for example via
# setuptools-rust) do not pollute user's home directory with cargo bits.
COMPONENT_BUILD_ENV += CARGO_HOME=$(@D)/.cargo
# Make sure the default Python version is installed last and so is the
# canonical version.  This is needed for components that keep PYTHON_VERSIONS
# set to more than single value, but deliver unversioned binaries in usr/bin or