From 70293271443f69352592828160133e2d64656dbfc0476fbbde11a5a8105bdc6a Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Wed, 18 Mar 2020 19:38:24 +0000 Subject: [PATCH] - set locale during build/test to fix build on older releases (bsc#1124989) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=104 --- python-pylint.changes | 5 +++++ python-pylint.spec | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/python-pylint.changes b/python-pylint.changes index 069ecf9..1ea413a 100644 --- a/python-pylint.changes +++ b/python-pylint.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Mar 18 19:37:36 UTC 2020 - Dirk Mueller + +- set locale during build/test to fix build on older releases (bsc#1124989) + ------------------------------------------------------------------- Wed Nov 13 15:49:50 CET 2019 - Matej Cepl diff --git a/python-pylint.spec b/python-pylint.spec index 5f13125..fae9f83 100644 --- a/python-pylint.spec +++ b/python-pylint.spec @@ -1,7 +1,7 @@ # # spec file for package python-pylint # -# Copyright (c) 2019 SUSE LLC. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -72,9 +72,11 @@ feature. %setup -q -n pylint-pylint-%{version} %build +export LC_ALL="en_US.UTF-8" %python_build %install +export LC_ALL="en_US.UTF-8" %python_install for p in pylint epylint pyreverse symilar ; do %python_clone -a %{buildroot}%{_bindir}/$p @@ -91,6 +93,7 @@ done %check # test_by_module_statement_value - fails due to %%pytest macro way of execution export PYTHONDONTWRITEBYTECODE=1 +export LC_ALL="en_US.UTF-8" %pytest -k "not test_by_module_statement_value" %files %{python_files}