Skip to content

Commit

Permalink
Test commit for new RTD-based documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
tjakobi committed Feb 22, 2018
1 parent c731647 commit 6db6c4c
Showing 1 changed file with 47 additions and 47 deletions.
94 changes: 47 additions & 47 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,53 +73,53 @@ def run(self):
print("We'll install everything for you from GitHub and CRAN for you if you like.")
print("")

answer = query_yes_no("Do you want to continue the automatic dependency installation?\n"
"-> \"n\" will only install the circtools base package\n"
"-> CTRL-C will abort the installation\n")
if answer:
subprocess.check_call(["sh", "scripts/external_install.sh"])

# step 2: update $PATH
print("In order for circtools to be globally callable, we would add the installation folder to the $PATH")
print("variable. Would you like us to do that?")

answer = query_yes_no("Update $PATH in .bashrc?")
if answer:
print("Running update script...")
subprocess.check_call(["sh", "scripts/add_to_bashrc.sh"])
else:
print("Okay. Please update the $PATH variable yourself, otherwise you may not be able to run circtools.")
sleep(5)

print("")

# step 3: create .Renviron file
print("In order for the circtools primer design module to run, we need to install some R modules.")
print("Please make sure R >= 3.4.0 is installed.")
print("Should we update the R package location in order to install package as user?")

answer = query_yes_no("Update R_LIB in .Renviron")
if answer:
print("Running update script...")
subprocess.check_call(["sh", "scripts/create_r_environ.sh"])
else:
print("Okay. If the R library path is not writeable the installation will most probably fail.")
sleep(5)

print("")

# step 4: install OligoArrayAux
print("The circtools primer module also requires the software \"OligoArrayAux\".")
print("Should we install the software for you?")
print("If you choose yes OligoArrayAux will be installed into $HOME/.local/.")

answer = query_yes_no("Install OligoArrayAux?")
if answer:
print("Running installer script...")
subprocess.check_call(["sh", "scripts/install_oligo_array_aux.sh"])
else:
print("Okay. Please install OligoArrayAux yourself. Otherwise the primer module will not be functional.")
sleep(5)
# answer = query_yes_no("Do you want to continue the automatic dependency installation?\n"
# "-> \"n\" will only install the circtools base package\n"
# "-> CTRL-C will abort the installation\n")
# if answer:
# subprocess.check_call(["sh", "scripts/external_install.sh"])
#
# # step 2: update $PATH
# print("In order for circtools to be globally callable, we would add the installation folder to the $PATH")
# print("variable. Would you like us to do that?")
#
# answer = query_yes_no("Update $PATH in .bashrc?")
# if answer:
# print("Running update script...")
# subprocess.check_call(["sh", "scripts/add_to_bashrc.sh"])
# else:
# print("Okay. Please update the $PATH variable yourself, otherwise you may not be able to run circtools.")
# sleep(5)
#
# print("")
#
# # step 3: create .Renviron file
# print("In order for the circtools primer design module to run, we need to install some R modules.")
# print("Please make sure R >= 3.4.0 is installed.")
# print("Should we update the R package location in order to install package as user?")
#
# answer = query_yes_no("Update R_LIB in .Renviron")
# if answer:
# print("Running update script...")
# subprocess.check_call(["sh", "scripts/create_r_environ.sh"])
# else:
# print("Okay. If the R library path is not writeable the installation will most probably fail.")
# sleep(5)
#
# print("")
#
# # step 4: install OligoArrayAux
# print("The circtools primer module also requires the software \"OligoArrayAux\".")
# print("Should we install the software for you?")
# print("If you choose yes OligoArrayAux will be installed into $HOME/.local/.")
#
# answer = query_yes_no("Install OligoArrayAux?")
# if answer:
# print("Running installer script...")
# subprocess.check_call(["sh", "scripts/install_oligo_array_aux.sh"])
# else:
# print("Okay. Please install OligoArrayAux yourself. Otherwise the primer module will not be functional.")
# sleep(5)

install.run(self)
# place for post install commands
Expand Down

0 comments on commit 6db6c4c

Please sign in to comment.