Skip to content

Commit

Permalink
updated installation with usalign
Browse files Browse the repository at this point in the history
  • Loading branch information
gezmi committed May 6, 2024
1 parent ccf56ba commit 664111f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
class TmAlignInstall(install):
def run(self):
install.run(self)
print('Installing TMalign compiled code')
target_folder = os.path.join(PROJECT_ROOT, 'biopandas', 'align')
os.makedirs(target_folder, exist_ok=True) # Ensure the subfolder exists
# download the TMalign compiled code
Expand Down Expand Up @@ -57,6 +58,7 @@ def run(self):
zip_ref.extractall(selected_file.replace(".zip", ""))

# Mv the compiled code to the target folder. It is either USalign or USalign.exe on windows
print(PROJECT_ROOT, os_name, selected_file.replace(".zip", ""), target_folder)
target_folder = os.path.join(PROJECT_ROOT, 'biopandas', 'align')
unzipped_path = f'{selected_file.replace(".zip", "")}/USalign/'
if os_name == 'win32':
Expand All @@ -78,7 +80,9 @@ def run(self):
packages=find_packages(),
package_data={'': ['LICENSE.txt',
'README.md',
'requirements.txt']
'requirements.txt',
'USalign.exe',
'USalign']
},
include_package_data=True,
install_requires=install_reqs,
Expand Down

0 comments on commit 664111f

Please sign in to comment.