Page MenuHomePhabricator

Dist-packages should be copied automatically when a python config is declared
Open, Needs TriagePublic

Description

Currently, when python dependencies are copied over from a build stage, only the site-packages (i.e., dependencies installed by pip) are copied. However, the user may also elect to install python dependencies via Debian or other OS packages, such as python3-numpy, and these will be installed in a separate dist-packages folder (which appears to be located at /usr/lib/python3/dist-packages by default). Currently, dist-packages must be explicitly copied over to /opt/lib/python in order to be copied to a receiving build variant via a copies declaration.

It would be nice if Blubber handled dist-packages under the hood, rather than requiring custom handling.