Skip to content

Commit

Permalink
Merge branch 'master' of github.com:arq5x/gemini
Browse files Browse the repository at this point in the history
  • Loading branch information
arq5x committed Mar 3, 2015
2 parents cabcec2 + 2b7c6c8 commit c63e1ad
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gemini/gemini_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ def release(parser, args):
for req in ["python-graph-core", "python-graph-dot"]:
pip_compat += ["--allow-external", req, "--allow-unverified", req]
# update libraries
# Set PIP SSL certificate to installed conda certificate to avoid SSL errors
if os.path.exists(conda_bin):
anaconda_dir = os.path.dirname(os.path.dirname(conda_bin))
cert_file = os.path.join(anaconda_dir, "ssl", "cert.pem")
if os.path.exists(cert_file):
os.environ["PIP_CERT"] = cert_file
subprocess.check_call([pip_bin, "install"] + pip_compat + ["-r", url])
if args.devel:
print("Installing latest GEMINI development version")
Expand Down
4 changes: 4 additions & 0 deletions gemini/scripts/gemini_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ def install_gemini(anaconda, remotes, datadir, tooldir, use_sudo):
if pip_version >= "1.5":
for req in ["python-graph-core", "python-graph-dot"]:
pip_compat += ["--allow-external", req, "--allow-unverified", req]
# Set PIP SSL certificate to installed conda certificate to avoid SSL errors
cert_file = os.path.join(anaconda["dir"], "ssl", "cert.pem")
if os.path.exists(cert_file):
os.environ["PIP_CERT"] = cert_file
subprocess.check_call([anaconda["pip"], "install"] + pip_compat + ["-r", remotes["requirements_pip"]])
python_bin = os.path.join(anaconda["dir"], "bin", "python")
_cleanup_problem_files(anaconda["dir"])
Expand Down

0 comments on commit c63e1ad

Please sign in to comment.