10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-07-03 01:45:59 +02:00

Added print in configure for debugging

This commit is contained in:
Anthony Scemama 2015-11-25 18:55:06 +01:00
parent 109e3946eb
commit 6b02b622ba
2 changed files with 11 additions and 7 deletions

11
configure vendored
View File

@ -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"""
_________ _________

View File

@ -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