remove tarball after unpacking

This commit is contained in:
Axel Kohlmeyer 2017-07-28 14:25:47 -04:00
parent ffb778cf9b
commit 3ebf561e0d
2 changed files with 2 additions and 0 deletions

View File

@ -103,6 +103,7 @@ if buildflag:
subprocess.check_output(cmd,stderr=subprocess.STDOUT,shell=True)
edir = glob.glob("%s/eigen-eigen-*" % homepath)
os.rename(edir[0],"%s/%s" % (homepath,homedir))
os.remove(tarball)
# create link in lib/smd to Eigen src dir

View File

@ -99,6 +99,7 @@ if grabflag:
subprocess.check_output(cmd,stderr=subprocess.STDOUT,shell=True)
cmd = 'cd "%s"; tar -xzvf %s.tar.gz' % (homepath,version)
subprocess.check_output(cmd,stderr=subprocess.STDOUT,shell=True)
os.remove("%s/%s.tar.gz" % (homepath,version))
if os.path.basename(homedir) != version:
if os.path.exists(homedir):
cmd = 'rm -rf "%s"' % homedir