Previously have setuptools-git installed if ioflo is to be installed

This commit is contained in:
Pedro Algarvio 2019-03-21 08:29:50 +00:00
parent 973e1cac37
commit bf9c55e6be
No known key found for this signature in database
GPG key ID: BB36BF6584A298FF

View file

@ -59,6 +59,12 @@ def _install_requirements(session, *extra_requirements):
if IS_WINDOWS:
_distro_requirements = os.path.join(REPO_ROOT, 'requirements', 'static', 'windows.txt')
if os.path.exists(_distro_requirements):
with open(_distro_requirements) as rfh:
if 'ioflo' in rfh.read():
# Because we still install ioflo, which requires setuptools-git, which fails with a
# weird SSL certificate issue(weird because the requirements file requirements install
# fine), let's previously have setuptools-git installed
session.install('setuptools-git')
distro_requirements = _distro_requirements
else:
# The distro package doesn't output anything for Windows