some customers might have the need for an extra python package to be installed in UDB. At the moment this is possible but it is a lengthy and error prone procedure.
The suggestion is to have a way (like a package manager) that allows customers to install a new python package automatically (either from within UDB or as an external command).
The procedure at the moment:
# Path to the UDB top-level directory.
# Create the directory where to put the Python packages and cd into it.
# Install pip.
$UNDO_PATH/package-gdb/install/x64/bin/python3 ./get-pip.py install --prefix $PWD
# Make later Python invocations able to use the packages in the current directory.
# Install what you need, for instance `bson`.
# You can also use `-r requirements.txt` to install from a requirements file.
$UNDO_PATH/package-gdb/install/x64/bin/python3 -m pip install --prefix $PWD bson
# Configure UDB to load packages from the newly created directory.
echo "python sys.path.append('$PYTHONPATH')" >> ~/.udbinit