removed libcap dev from checkdeps
This commit is contained in:
parent
0fd677242f
commit
f76afdd46a
27
checkdeps.py
27
checkdeps.py
|
@ -44,9 +44,9 @@ EXTRAS_REQUIRE_DEPS = {
|
||||||
# The packages needed for this requirement, by OS
|
# The packages needed for this requirement, by OS
|
||||||
"OpenBSD": [""],
|
"OpenBSD": [""],
|
||||||
"FreeBSD": [""],
|
"FreeBSD": [""],
|
||||||
"Debian": ["libcap-dev python-prctl"],
|
"Debian": ["python-prctl"],
|
||||||
"Ubuntu": ["libcap-dev python-prctl"],
|
"Ubuntu": ["python-prctl"],
|
||||||
"Ubuntu 12": ["libcap-dev python-prctl"],
|
"Ubuntu 12": ["python-prctl"],
|
||||||
"openSUSE": [""],
|
"openSUSE": [""],
|
||||||
"Fedora": ["prctl"],
|
"Fedora": ["prctl"],
|
||||||
"Guix": [""],
|
"Guix": [""],
|
||||||
|
@ -144,34 +144,27 @@ CMD = PACKAGE_MANAGER[OPSYS] if OPSYS in PACKAGE_MANAGER else 'UNKNOWN_INSTALLER
|
||||||
|
|
||||||
print('EXTRAS_REQUIRE_DEPS: ', EXTRAS_REQUIRE_DEPS)
|
print('EXTRAS_REQUIRE_DEPS: ', EXTRAS_REQUIRE_DEPS)
|
||||||
for lhs, rhs in EXTRAS_REQUIRE.items():
|
for lhs, rhs in EXTRAS_REQUIRE.items():
|
||||||
# print('lhs, rhs : ', lhs, rhs)
|
|
||||||
if OPSYS is None:
|
if OPSYS is None:
|
||||||
break
|
break
|
||||||
# print('WWGG: ', any([EXTRAS_REQUIRE_DEPS[x][OPSYS] for x in rhs if x in EXTRAS_REQUIRE_DEPS]))
|
print('WWGG: ', any([EXTRAS_REQUIRE_DEPS[x][OPSYS] for x in rhs if x in EXTRAS_REQUIRE_DEPS]))
|
||||||
if rhs and any([
|
if rhs and any([
|
||||||
EXTRAS_REQUIRE_DEPS[x][OPSYS]
|
EXTRAS_REQUIRE_DEPS[x][OPSYS]
|
||||||
for x in rhs
|
for x in rhs
|
||||||
if x in EXTRAS_REQUIRE_DEPS
|
if x in EXTRAS_REQUIRE_DEPS
|
||||||
]):
|
]):
|
||||||
# print('CMD: ', CMD)
|
print('lhs, rhs : ', lhs, rhs)
|
||||||
# print('[xx for xx in EXTRAS_REQUIRE_DEPS[x][OPSYS]]: ', [xx for xx in EXTRAS_REQUIRE_DEPS[x][OPSYS]])
|
print('CMD: ', CMD)
|
||||||
|
print('[[OPSYS]]: ', ' '.join([''. join([xx for xx in EXTRAS_REQUIRE_DEPS[x][OPSYS]])for x in rhs if x in EXTRAS_REQUIRE_DEPS]))
|
||||||
# print('[]: ', [for x in rhs if x in EXTRAS_REQUIRE_DEPS])
|
# print('[]: ', [for x in rhs if x in EXTRAS_REQUIRE_DEPS])
|
||||||
try:
|
try:
|
||||||
import lhs
|
import lhs
|
||||||
# print('Try pass <<<<<<<<<<<<<Sucess>>>>>>>>>>>>>>>>')
|
print('Try pass <<<<<<<<<<<<<Sucess>>>>>>>>>>>>>>>>')
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
# print('Except <<<<<<<<<<<<<<Fail>>>>>>>>>>>>>>>>>>>')
|
print('Except <<<<<<<<<<<<<<Fail>>>>>>>>>>>>>>>>>>>')
|
||||||
rhs_cmd = ''.join([
|
rhs_cmd = ''.join([
|
||||||
CMD,
|
CMD,
|
||||||
' ',
|
' ',
|
||||||
' '.join([
|
' '.join([''. join([xx for xx in EXTRAS_REQUIRE_DEPS[x][OPSYS]])for x in rhs if x in EXTRAS_REQUIRE_DEPS]),])
|
||||||
''. join([
|
|
||||||
xx for xx in EXTRAS_REQUIRE_DEPS[x][OPSYS]
|
|
||||||
])
|
|
||||||
for x in rhs
|
|
||||||
if x in EXTRAS_REQUIRE_DEPS
|
|
||||||
]),
|
|
||||||
])
|
|
||||||
print('MMMMMMM: ', lhs, rhs_cmd)
|
print('MMMMMMM: ', lhs, rhs_cmd)
|
||||||
print(
|
print(
|
||||||
"Optional dependency `pip install .[{}]` would require `{}`"
|
"Optional dependency `pip install .[{}]` would require `{}`"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
libcap-dev
|
libcap-dev
|
||||||
python_prctl
|
python-prctl
|
||||||
psutil
|
psutil
|
||||||
pycrypto
|
pycrypto
|
||||||
|
|
Reference in New Issue
Block a user