def untar_local(tarname): '''Untar a repository shipped with the job''' install_path = os.getcwd() job_tools.untar_file(tarname, installPath, 'rat', os.getcwd(), 0) # nothing to strip, but do need to move # For some reason, configure is not x by default job_tools.execute('chmod', ['u+x', 'rat/configure'], cwd=installPath)
def compile_rat(): '''Compile local version of RAT''' temp_file = os.path.join(os.getcwd(), 'installerTemp.sh') rat_dir = os.path.join(os.getcwd(), 'rat') command_text = "\ #!/bin/bash\n \ source %s\n \ cd %s\n \ ./configure \n \ source env.sh\n \ scons" % (temp_file, rat_dir) job_tools.execute_complex(command_text) #running locally, seems rat is not executable by default! job_tools.execute('chmod', ['u+x', 'rat/bin/rat'])
def untar_local(tarname): '''Untar a repository shipped with the job''' install_path = os.getcwd() job_tools.untar_file(tarname, installPath, 'rat', os.getcwd(), 0) # nothing to strip, but do need to move # For some reason, configure is not x by default job_tools.execute('chmod', ['u+x','rat/configure'], cwd=installPath)