Skip to content
Snippets Groups Projects
Commit 3ebf561e authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

remove tarball after unpacking

parent ffb778cf
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment