Commit 69276c9c authored by echel0n's avatar echel0n

Refactored requirements install to use --no-deps, all depends are located in requirements.txt

parent c4283b51
......@@ -187,10 +187,10 @@ def check_requirements():
req_name, req_version = line.strip().split('==')
if not pkg_resources.get_distribution(req_name).version == req_version:
print('Updating requirement {} to {}'.format(req_name, req_version))
subprocess.check_call([sys.executable, "-m", "pip", "install", "--no-use-pep517", "--no-cache-dir", line.strip()])
subprocess.check_call([sys.executable, "-m", "pip", "install", "--no-use-pep517", "--no-deps", "--no-cache-dir", line.strip()])
except pkg_resources.DistributionNotFound:
print('Installing requirement {}'.format(line.strip()))
subprocess.check_call([sys.executable, "-m", "pip", "install", "--no-use-pep517", "--no-cache-dir", line.strip()])
subprocess.check_call([sys.executable, "-m", "pip", "install", "--no-use-pep517", "--no-deps", "--no-cache-dir", line.strip()])
except ValueError:
continue
......
......@@ -352,10 +352,10 @@ class UpdateManager(object):
os.unlink(requirements_file.name)
return False
output, __, exit_status = self._pip_cmd('install --no-use-pep517 --no-cache-dir -r {}'.format(requirements_file.name))
output, __, exit_status = self._pip_cmd('install --no-use-pep517 --no-deps --no-cache-dir -r {}'.format(requirements_file.name))
if exit_status != 0:
__, __, exit_status = self._pip_cmd('install --no-use-pep517 --no-cache-dir --user -r {}'.format(requirements_file.name))
__, __, exit_status = self._pip_cmd('install --no-use-pep517 --no-deps --no-cache-dir --user -r {}'.format(requirements_file.name))
if exit_status == 0:
requirements_file.close()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment