removed debugging prints
This commit is contained in:
parent
dd3511eaa5
commit
4c1709e2dc
12
checkdeps.py
12
checkdeps.py
|
@ -71,7 +71,6 @@ def detectPrereqs(missing=True):
|
||||||
|
|
||||||
|
|
||||||
def prereqToPackages():
|
def prereqToPackages():
|
||||||
# print('line....................73')
|
|
||||||
if not detectPrereqs():
|
if not detectPrereqs():
|
||||||
return
|
return
|
||||||
print("%s %s" % (
|
print("%s %s" % (
|
||||||
|
@ -80,7 +79,6 @@ def prereqToPackages():
|
||||||
|
|
||||||
|
|
||||||
def compilerToPackages():
|
def compilerToPackages():
|
||||||
# print('line....................82')
|
|
||||||
if not detectOS() in COMPILING:
|
if not detectOS() in COMPILING:
|
||||||
return
|
return
|
||||||
print("%s %s" % (
|
print("%s %s" % (
|
||||||
|
@ -88,7 +86,6 @@ def compilerToPackages():
|
||||||
|
|
||||||
|
|
||||||
def testCompiler():
|
def testCompiler():
|
||||||
# print('line.......................90')
|
|
||||||
if not HAVE_SETUPTOOLS:
|
if not HAVE_SETUPTOOLS:
|
||||||
# silent, we can't test without setuptools
|
# silent, we can't test without setuptools
|
||||||
return True
|
return True
|
||||||
|
@ -142,25 +139,17 @@ if prereqs:
|
||||||
OPSYS = detectOS()
|
OPSYS = detectOS()
|
||||||
CMD = PACKAGE_MANAGER[OPSYS] if OPSYS in PACKAGE_MANAGER else 'UNKNOWN_INSTALLER'
|
CMD = PACKAGE_MANAGER[OPSYS] if OPSYS in PACKAGE_MANAGER else 'UNKNOWN_INSTALLER'
|
||||||
|
|
||||||
print('EXTRAS_REQUIRE_DEPS: ', EXTRAS_REQUIRE_DEPS)
|
|
||||||
for lhs, rhs in EXTRAS_REQUIRE.items():
|
for lhs, rhs in EXTRAS_REQUIRE.items():
|
||||||
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]))
|
|
||||||
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('lhs, rhs : ', lhs, rhs)
|
|
||||||
# print('CMD: ', CMD)
|
|
||||||
# print('[xx for xx in EXTRAS_REQUIRE_DEPS[x][OPSYS]]: ', [xx for xx in EXTRAS_REQUIRE_DEPS[x][OPSYS]])
|
|
||||||
# print('[]: ', [for x in rhs if x in EXTRAS_REQUIRE_DEPS])
|
|
||||||
try:
|
try:
|
||||||
import_module(lhs)
|
import_module(lhs)
|
||||||
print('Try pass <<<<<<<<<<<<<Sucess>>>>>>>>>>>>>>>>')
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print('Except <<<<<<<<<<<<<<Fail>>>>>>>>>>>>>>>>>>>')
|
|
||||||
rhs_cmd = ''.join([
|
rhs_cmd = ''.join([
|
||||||
CMD,
|
CMD,
|
||||||
' ',
|
' ',
|
||||||
|
@ -172,7 +161,6 @@ for lhs, rhs in EXTRAS_REQUIRE.items():
|
||||||
if x in EXTRAS_REQUIRE_DEPS
|
if x in EXTRAS_REQUIRE_DEPS
|
||||||
]),
|
]),
|
||||||
])
|
])
|
||||||
print('MMMMMMM: ', lhs, rhs_cmd)
|
|
||||||
print(
|
print(
|
||||||
"Optional dependency `pip install .[{}]` would require `{}`"
|
"Optional dependency `pip install .[{}]` would require `{}`"
|
||||||
" to be run as root".format(lhs, rhs_cmd))
|
" to be run as root".format(lhs, rhs_cmd))
|
||||||
|
|
Reference in New Issue
Block a user