mirror of
https://github.com/LCPQ/quantum_package
synced 2025-01-03 10:05:57 +01:00
Added print in configure for debugging
This commit is contained in:
parent
109e3946eb
commit
6b02b622ba
11
configure
vendored
11
configure
vendored
@ -417,7 +417,16 @@ _|_ | | _> |_ (_| | | (_| |_ | (_) | |
|
|||||||
path_ninja = find_path("ninja", l_installed)
|
path_ninja = find_path("ninja", l_installed)
|
||||||
subprocess.check_call("cd install ;{0}".format(path_ninja), shell=True)
|
subprocess.check_call("cd install ;{0}".format(path_ninja), shell=True)
|
||||||
except:
|
except:
|
||||||
raise
|
prefix = os.path.join('install', '_build')
|
||||||
|
for filename in os.listdir(prefix):
|
||||||
|
if filename.endswith(".log"):
|
||||||
|
with open( os.path.join(prefix,filename) ,'r') as f:
|
||||||
|
print "\n\n"
|
||||||
|
print "=-=-=-=-=-=- %s =-=-=-=-=-=-" %(filename)
|
||||||
|
print f.read()
|
||||||
|
print "=-=-=-=-=-=-=-=-=-=-=-=-=-=-\n\n"
|
||||||
|
print "Error in installation of dependencies"
|
||||||
|
sys.exit(1)
|
||||||
else:
|
else:
|
||||||
print r"""
|
print r"""
|
||||||
_________
|
_________
|
||||||
|
@ -5,11 +5,6 @@ BUILD=_build/${TARGET}
|
|||||||
rm -rf -- ${BUILD}
|
rm -rf -- ${BUILD}
|
||||||
mkdir ${BUILD} || exit 1
|
mkdir ${BUILD} || exit 1
|
||||||
tar -zxf Downloads/${TARGET}.tar.gz --strip-components=1 --directory=${BUILD} || exit 1
|
tar -zxf Downloads/${TARGET}.tar.gz --strip-components=1 --directory=${BUILD} || exit 1
|
||||||
_install
|
_install || exit 1
|
||||||
if [[ $? -ne 0 ]]
|
|
||||||
then
|
|
||||||
cat _build/${TARGET}.log
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
rm -rf -- ${BUILD} _build/${TARGET}.log
|
rm -rf -- ${BUILD} _build/${TARGET}.log
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user