Fix pip install pkgs with non-ascii characters in filenames

As found recently, pip with Python 3.6 and forward has some issues
installing tarballs that contain files with non-ascii characters
in their names.
This is due mainly to the fact that the default locale in the
system is set to C [1].
As a workaround, we run the installation of the packages in the
virtualenv forcing C.UTF-8 locale.

[1] https://github.com/pypa/pip/issues/7667

Change-Id: Idfb8b121a43a0bb74844fd63d5c2507d7b888b15
This commit is contained in:
Riccardo Pittau 2020-01-30 12:07:32 +01:00
parent 3abd1459bb
commit 22a12a3a41

View File

@ -6,6 +6,8 @@ fi
set -eu
set -o pipefail
export LC_ALL=C.UTF-8
SCRIPTDIR=$(dirname $0)
IPADIR=/tmp/ironic-python-agent
UPPER_CONSTRAINTS=/tmp/requirements/upper-constraints.txt