From 724255a98419135c4e21adcdad6d153adb332bc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubom=C3=ADr=20Sedl=C3=A1=C5=99?= Date: Tue, 2 Apr 2019 14:45:22 +0200 Subject: [PATCH] setup: Install some deps on Py2.7 only MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Lockfile and dict.sorted are only used in pungi.gather module, which does not work with Python 3 due to dependency on yum. There's no point in always pulling in these two libraries there. This change fixes issues with python dependencies generator that puts python3.6dist(lockfile) into RPM requires. For builds on Python 2.6 these libraries are actually needed, but there are no generators on RHEL 6. So this change can only break development on RHEL 6. And if someone needs to do that, they have bigger problems... Signed-off-by: Lubomír Sedlář --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 957b4f2a..b5172792 100755 --- a/setup.py +++ b/setup.py @@ -60,16 +60,16 @@ setup( install_requires = [ "jsonschema", "kobo", - "lockfile", "lxml", "productmd", "six", 'dogpile.cache', - 'dict.sorted', ], extras_require={ ':python_version=="2.7"': [ 'enum34' + "lockfile", + 'dict.sorted', ] }, tests_require = [