Skip to content

Commit

Permalink
update cmake in install and fix extract_path
Browse files Browse the repository at this point in the history
  • Loading branch information
ipelupessy committed Dec 10, 2018
1 parent effcce6 commit c5ae1c3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/install/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ def applications(self):
(
'cmake' , #name to refer by
[], #names of prerequisites (unused)
'3.8.2' , #version string
'3.13.1' , #version string
'cmake-', '.tar.gz', #pre- and postfix for filename
'http://www.cmake.org/files/v3.8/', #download url, filename is appended
'http://www.cmake.org/files/v3.13/', #download url, filename is appended
self.cmake_build #method to use for building
) ,
(
Expand Down Expand Up @@ -228,7 +228,7 @@ def setup_temp_dir(self):
os.makedirs(self.temp_dir)

def run_application(self, args, cwd, env = None):
print "starting " , ' '.join(args)
print "starting " , ' '.join(args), cwd
process = subprocess.Popen(args, cwd=cwd, env = env)
returncode = process.wait()
if returncode != 0:
Expand Down Expand Up @@ -556,7 +556,7 @@ def extract_path(self, app_file):
proc=subprocess.Popen(["tar","tf",app_file], stdout=subprocess.PIPE)
out,err=proc.communicate()
out=out.split("\n")
return os.path.split(out[0])[0]
return os.path.normpath(out[0]).split(os.sep)[0]

def build_apps(self, names, skip):
for (name, dependencies, version, prefix, suffix, url_prefix, function) in self.applications:
Expand Down

0 comments on commit c5ae1c3

Please sign in to comment.