mirror of
https://github.com/clearlinux/autospec.git
synced 2026-08-21 06:26:18 +00:00
Remove unused function
This hasn't been in use for some time and with the rework of pip requirement capture is no longer required.
This commit is contained in:
committed by
Patrick McCarty
parent
54a94e123f
commit
0e5f88efe0
@@ -612,23 +612,6 @@ def grab_python_requirements(descfile):
|
||||
add_requires(clean_python_req(line))
|
||||
|
||||
|
||||
def grab_pip_requirements(pkgname):
|
||||
"""Determine python requirements for pkgname using pip show."""
|
||||
try:
|
||||
pipeout = subprocess.check_output(['/usr/bin/pip3', 'show', pkgname])
|
||||
except Exception:
|
||||
return
|
||||
lines = pipeout.decode("utf-8").split('\n')
|
||||
for line in lines:
|
||||
words = line.split(" ")
|
||||
if words[0] == "Requires:":
|
||||
for w in words[1:]:
|
||||
w2 = w.replace(",", "")
|
||||
if len(w2) > 2:
|
||||
print("Suggesting python requirement ", w2)
|
||||
add_requires(w2)
|
||||
|
||||
|
||||
def get_python_build_version_from_classifier(filename):
|
||||
"""Detect if setup should use distutils3 only.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user