pkg-python: ignore user site-packages directory
authorYegor Yefremov <yegorslists@googlemail.com>
Thu, 6 Apr 2017 18:46:08 +0000 (20:46 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 8 Apr 2017 13:45:41 +0000 (15:45 +0200)
commitf5da1951ad1e81cc8641f2c90e96fe36d08ec6f9
treeb730deb5a8cd0ee5f6ef4cf2000c49633f782b5f
parent2be9ba9f58280ebe0094ef715ab14c31a22c9204
pkg-python: ignore user site-packages directory

According to PEP 370 Python will also search for the packages in the
user site-packages directory. This can affect build reproducibility.

The solution is to use PYTHONNOUSERSITE=1 for all Python packages,
i.e. both host and target variants.

Fixes bug #9791.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/pkg-python.mk