Skip to content

Commit

Permalink
fixed compilation and dependency issues on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Leah Weber committed Aug 12, 2024
1 parent d4f3021 commit 5400d66
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ dependencies = [
"numpy==1.26.3",
"networkx==3.1",
"ete3==3.1.2",
"glpk",
"pyomo==6.7.3",
"pygraphviz>=1.10",
"pandas==2.1.1",
Expand Down
18 changes: 9 additions & 9 deletions tribal.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
name: tribal
name: test
channels:
- conda-forge
- bioconda
dependencies:
- python==3.9.19
- numpy==1.26.3
- pandas==2.1.1
- networkx==3.1
- pygraphviz==1.10
- ete3==3.1.2
- python==3.9
- numpy>=1.26.3
- pandas>=2.1.1
- networkx>=3.1
- pygraphviz
- ete3>=3.1.2
- pip>=22.3.1
- conda-forge::mafft>=7.526
- glpk==5.0
- conda-forge::mafft==7.526
- glpk>=5.0
- pip:
- biopython==1.81

2 changes: 1 addition & 1 deletion tribal/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def compile_dnapars(self):
subprocess.run(["cc", "-c", source, "-o", obj], check=True)

# Link the object files to create the executable
subprocess.run(["cc", *object_files, "-o", executable], check=True)
subprocess.run(["cc", *object_files, "-o", executable, "-lm"], check=True)

# Make the executable globally accessible (optional)
os.chmod(executable, 0o755)

0 comments on commit 5400d66

Please sign in to comment.