Commit 35029d32 authored by echel0n's avatar echel0n

Downgraded feedparser to v5.2.1 in requirements.txt

parent ec9cb23f
......@@ -4,7 +4,7 @@ bencode3==0.1.0
CacheControl==0.12.6
cloudscraper==1.2.46
configobj==5.0.6
feedparser==6.0.0b3
feedparser==5.2.1
guessit==3.1.1
hachoir==3.1.1
Mako==1.1.3
......
......@@ -187,14 +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", "--ignore-installed", "--no-cache-dir", line.strip()]
)
subprocess.check_call([sys.executable, "-m", "pip", "install", "--no-use-pep517", "--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", "--ignore-installed", "--no-cache-dir", line.strip()]
)
subprocess.check_call([sys.executable, "-m", "pip", "install", "--no-use-pep517", "--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 --ignore-installed --no-cache-dir -r {}'.format(requirements_file.name))
output, __, exit_status = self._pip_cmd('install --no-use-pep517 --no-cache-dir -r {}'.format(requirements_file.name))
if exit_status != 0:
__, __, exit_status = self._pip_cmd('install --no-use-pep517 --ignore-installed --no-cache-dir --user -r {}'.format(requirements_file.name))
__, __, exit_status = self._pip_cmd('install --no-use-pep517 --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