Skip to content

Commit

Permalink
respect current juliaup depot path (#44)
Browse files Browse the repository at this point in the history
* respect current juliaup depot path

* format

* show test output and set path on windows

* juliaup

* oops

* add juliaup to path

* revert tests.yml for now

---------

Co-authored-by: Ashley Milsted <[email protected]>
Co-authored-by: Christopher Doris <github.com/cjdoris>
  • Loading branch information
amilsted and Ashley Milsted authored Feb 21, 2025
1 parent f3ff9d5 commit 714816a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/juliapkg/find_julia.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,12 @@ def ju_find_julia(compat=None, install=False):


def ju_find_julia_noinstall(compat=None):
judir = os.path.join(STATE["depot"], "juliaup")
# juliaup does not follow JULIA_DEPOT_PATH, but instead defines its
# own env var for overriding ~/.julia
ju_depot_path = os.getenv("JULIAUP_DEPOT_PATH")
if not ju_depot_path:
ju_depot_path = os.path.abspath(os.path.join(os.path.expanduser("~"), ".julia"))
judir = os.path.join(ju_depot_path, "juliaup")
metaname = os.path.join(judir, "juliaup.json")
arch = get_short_arch()
if os.path.exists(metaname):
Expand Down

0 comments on commit 714816a

Please sign in to comment.