-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #150 from wells-wood-research/improving_install
Improving install
- Loading branch information
Showing
9 changed files
with
287 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
cd /dependencies_for_de-stress/EvoEF2/ &&\ | ||
g++ -O3 --fast-math -o EvoEF2 src/*.cpp | ||
cd /dependencies_for_de-stress/rosetta_src_2020.08.61146_bundle/main/source/ &&\ | ||
./scons.py -j2 mode=release bin/score_jd2.linuxgccrelease | ||
cd /dependencies_for_de-stress/EvoEF2/ &&\ | ||
g++ -O3 --fast-math -o EvoEF2 src/*.cpp | ||
|
||
echo "How many jobs do you want to run in order to compile Rosetta?" | ||
read numofjobs | ||
cd /dependencies_for_de-stress/rosetta/source/ &&\ | ||
./scons.py -j$numofjobs mode=release bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
cd /dependencies_for_de-stress/EvoEF2/ &&\ | ||
g++ -O3 --fast-math -o EvoEF2 src/*.cpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
argpass==0.0.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
import os | ||
import os.path as p | ||
import argpass | ||
from subprocess import call | ||
############################################################################## | ||
# get inputs | ||
def read_inputs(): | ||
## create an argpass parser, read config file, | ||
parser = argpass.ArgumentParser() | ||
parser.add_argument("--i") | ||
args = parser.parse_args() | ||
|
||
inputPath=args.i | ||
|
||
return inputPath | ||
############################################################################## | ||
def main(): | ||
inputPath = read_inputs() | ||
|
||
if not p.isabs(inputPath): | ||
ascii_splash("ERROR") | ||
print("Input Path must be Absolute!") | ||
return | ||
|
||
ascii_splash("DESTRESS") | ||
deStressDir = os.getcwd() | ||
dependanciesDir = p.join(deStressDir,"dependencies_for_de-stress") | ||
call(["docker", "run", "-it", "--rm", | ||
"--env-file", ".env-headless", | ||
"-v", f"{dependanciesDir}:/dependencies_for_de-stress", | ||
"-v", f"{inputPath}:/input_path", | ||
"de-stress-big-structure:latest", | ||
"poetry", "run", "headless_destress", "/input_path"]) | ||
############################################################################## | ||
def ascii_splash(id): | ||
splashDict = {"DESTRESS": | ||
""" | ||
██████╗ ███████╗ ███████╗████████╗██████╗ ███████╗███████╗███████╗ | ||
██╔══██╗██╔════╝ ██╔════╝╚══██╔══╝██╔══██╗██╔════╝██╔════╝██╔════╝ | ||
██║ ██║█████╗█████╗███████╗ ██║ ██████╔╝█████╗ ███████╗███████╗ | ||
██║ ██║██╔══╝╚════╝╚════██║ ██║ ██╔══██╗██╔══╝ ╚════██║╚════██║ | ||
██████╔╝███████╗ ███████║ ██║ ██║ ██║███████╗███████║███████║ | ||
╚═════╝ ╚══════╝ ╚══════╝ ╚═╝ ╚═╝ ╚═╝╚══════╝╚══════╝╚══════╝ | ||
""", | ||
|
||
"ERROR": | ||
""" | ||
▓█████ ██▀███ ██▀███ ▒█████ ██▀███ | ||
▓█ ▀ ▓██ ▒ ██▒▓██ ▒ ██▒▒██▒ ██▒▓██ ▒ ██▒ | ||
▒███ ▓██ ░▄█ ▒▓██ ░▄█ ▒▒██░ ██▒▓██ ░▄█ ▒ | ||
▒▓█ ▄ ▒██▀▀█▄ ▒██▀▀█▄ ▒██ ██░▒██▀▀█▄ | ||
░▒████▒░██▓ ▒██▒░██▓ ▒██▒░ ████▓▒░░██▓ ▒██▒ | ||
░░ ▒░ ░░ ▒▓ ░▒▓░░ ▒▓ ░▒▓░░ ▒░▒░▒░ ░ ▒▓ ░▒▓░ | ||
░ ░ ░ ░▒ ░ ▒░ ░▒ ░ ▒░ ░ ▒ ▒░ ░▒ ░ ▒░ | ||
░ ░░ ░ ░░ ░ ░ ░ ░ ▒ ░░ ░ | ||
░ ░ ░ ░ ░ ░ ░ | ||
""" | ||
} | ||
print(splashDict[id]) | ||
|
||
############################################################################## | ||
main() |
Oops, something went wrong.