@@ -36,6 +36,30 @@ def download_tool(url):
3636 # Download the file
3737 print ("Downloading tool..." )
3838 filename = wget .download (url )
39+ ##commented due to merge conflict
40+ # files_before = os.listdir()
41+ # # shutil.unpack_archive(filename)
42+ # ##there are two files to unpack
43+ # print('Unpacking platform-specific path')
44+ # shutil.unpack_archive(os.path.basename(url))
45+ # #This is just set for AWS to debug. This will have to be mapped to OS. They changed their file structure. This should be updated.
46+ # print('Unpacking secondary zip')
47+ # fnames={
48+ # 'Darwin':"gdc-client_2.3_OSX_x64.zip",
49+ # 'Linux':"gdc-client_2.3_Ubuntu_x64.zip",
50+ # 'Windows':"gdc-client_2.3_Windows_x64.zip"
51+ # }
52+ # shutil.unpack_archive(fnames[platform.system()])
53+ # #This is just set for AWS to debug. This will have to be mapped to OS. They changed their file structure. This should be updated.
54+ # shutil.unpack_archive("gdc-client_2.3_Ubuntu_x64.zip")
55+ # if not os.path.exists('gdc-client'):
56+ # raise FileNotFoundError("gdc-client executable not found after extraction.")
57+ # # Ensure 'gdc-client' is executable
58+ # st = os.stat('gdc-client')
59+ # os.chmod('gdc-client', st.st_mode | stat.S_IEXEC)
60+ # # Return the path to the executable
61+ # return './gdc-client'
62+
3963
4064 # First extraction
4165 print (f"\n Extracting { filename } ..." )
@@ -65,6 +89,7 @@ def download_tool(url):
6589
6690 return gdc_client_path
6791
92+
6893def is_tool (name ):
6994 """
7095 Check if a specific tool is available on the system.
0 commit comments