Automated Builds of Python Packages¶
Python packages are often installed using
and use a different directory layout than native programs.
In particular, they do not make use of directories like
include/. To still support automated builds of
Python packages, simexpal offers the
for builds. This property takes a directory name (relative to
@THIS_PREFIX_DIR@) and exports
this name via the
PYTHONPATH environment variable such that
the Python interpreter is able to load packages from this directory.
It can be used in conjunction with the
--target option of
to locally install Python packages during automated builds.
builds: - name: some_python_package exports_python: 'python-packages/' # [...] install: - args: ['pip3', 'install', '--target=@THIS_PREFIX_DIR@/python-packages', '@THIS_SOURCE_DIR@']
Note that on Debian-based Linux distributions, you need to pass
to override the default of
--user (which does not work with