From 90fbbe3c514109aa5b0b8de5b735432ead8cf491 Mon Sep 17 00:00:00 2001 From: Miro Hrončok Date: May 17 2018 13:33:45 +0000 Subject: Filter koji and rpm-py-installer from install_requires when building rpm See https://bugzilla.redhat.com/show_bug.cgi?id=1579367 Signed-off-by: Miro Hrončok --- diff --git a/setup.py b/setup.py index dbdbb3f..1151968 100755 --- a/setup.py +++ b/setup.py @@ -46,6 +46,13 @@ if ver[0] <= 2 and ver[1] < 7: 'unittest2' ] +if 'RPM_BUILD_ROOT' in os.environ: + # we are in rpm package and we cannot list koji and rpm-py-installer + # because of https://bugzilla.redhat.com/show_bug.cgi?id=1579367 + install_requires = [r for r in install_requires + if not r.startswith('koji') + and not r.startswith('rpm-py-installer')] + readme_rst = os.path.join(setup_py_path, 'README.rst') with open(readme_rst, 'r') as readme: long_description = readme.read().rstrip()