IVGCVSW-4774 Add encoding flag for reading version
authorKevin May <kevin.may@arm.com>
Tue, 2 Jun 2020 10:06:46 +0000 (11:06 +0100)
committerKevin May <kevin.may@arm.com>
Tue, 2 Jun 2020 11:56:35 +0000 (11:56 +0000)
* Needed for testing with CI dockers which have POSIX locale

Signed-off-by: Kevin May <kevin.may@arm.com>
Change-Id: I0e2805cdf665274217a6cd94a6c815478c2cb402

python/pyarmnn/setup.py

index 1c84e61..ac6ee24 100755 (executable)
@@ -34,7 +34,7 @@ def check_armnn_version(*args):
 
 __current_dir = os.path.dirname(os.path.realpath(__file__))
 
-exec(open(os.path.join(__current_dir, 'src', 'pyarmnn', '_version.py')).read())
+exec(open(os.path.join(__current_dir, 'src', 'pyarmnn', '_version.py'), encoding="utf-8").read())
 
 
 class ExtensionPriorityBuilder(build_py):