-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
11 additions
and
31 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,2 @@ | ||
if_(is_set("COMSPEC")).then_([ | ||
export("GEM_HOME", path.join(env("CONDA_PREFIX"), "Library/share/rubygems")), | ||
sys.path_prepend(path.join(env("CONDA_PREFIX"), "Library/share/rubygems/bin")) | ||
]).else_([ | ||
export("GEM_HOME", path.join(env("CONDA_PREFIX"), "share/rubygems")), | ||
sys.path_prepend(path.join(env("CONDA_PREFIX"), "share/rubygems/bin")) | ||
]) | ||
export("GEM_HOME", path.join(env("CONDA_PREFIX"), "share/rubygems")), | ||
sys.path_prepend(path.join(env("CONDA_PREFIX"), "share/rubygems/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 |
---|---|---|
@@ -1,7 +1,2 @@ | ||
if (Test-Path env:COMSPEC) { | ||
$Env:GEM_HOME=$(Join-Path -Path $Env:CONDA_PREFIX -ChildPath Library/share/rubygems) | ||
$Env:PATH="$(Join-Path -Path $Env:CONDA_PREFIX -ChildPath Library/share/rubygems/bin);$Env:PATH" | ||
} else { | ||
$Env:GEM_HOME=$(Join-Path -Path $Env:CONDA_PREFIX -ChildPath share/rubygems) | ||
$Env:PATH="$(Join-Path -Path $Env:CONDA_PREFIX -ChildPath share/rubygems/bin);$Env:PATH" | ||
} | ||
$Env:GEM_HOME=$(Join-Path -Path $Env:CONDA_PREFIX -ChildPath share/rubygems) | ||
$Env:PATH="$(Join-Path -Path $Env:CONDA_PREFIX -ChildPath share/rubygems/bin);$Env:PATH" |
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,7 +1,2 @@ | ||
if [ -z "$COMSPEC" ]; then | ||
export GEM_HOME=$CONDA_PREFIX/share/rubygems/ | ||
export PATH="$CONDA_PREFIX/share/rubygems/bin:$PATH" | ||
else | ||
export GEM_HOME=$CONDA_PREFIX/Library/share/rubygems/ | ||
export PATH="$CONDA_PREFIX/Library/share/rubygems/bin:$PATH" | ||
fi | ||
export GEM_HOME=$CONDA_PREFIX/share/rubygems/ | ||
export PATH="$CONDA_PREFIX/share/rubygems/bin:$PATH" |
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,3 +1,2 @@ | ||
unset(env("GEM_HOME")) | ||
sys.path_remove(path.join(env("CONDA_PREFIX"), "Library/share/rubygems/bin")) | ||
sys.path_remove(path.join(env("CONDA_PREFIX"), "share/rubygems/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 |
---|---|---|
@@ -1,6 +1,4 @@ | ||
try { Remove-Item env:GEM_HOME} | ||
catch { Write-Host "Failed to execute Remove-Item env:GEM_HOME" } | ||
$rmpath = $(Join-Path -Path $Env:CONDA_PREFIX -ChildPath Library/share/rubygems/bin) | ||
$Env:PATH = ($Env:PATH.Split(';') | Where-Object { $_ -ne $rmpath }) -join ';' | ||
$rmpath = $(Join-Path -Path $Env:CONDA_PREFIX -ChildPath share/rubygems/bin) | ||
$Env:PATH = ($Env:PATH.Split(';') | Where-Object { $_ -ne $rmpath }) -join ';' |
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