-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move echoing the CLI tool names into a function
- Loading branch information
Showing
2 changed files
with
21 additions
and
19 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,19 +1,12 @@ | ||
# Instantiate all the dependencies | ||
using Pkg | ||
Pkg.instantiate() | ||
|
||
if abspath(PROGRAM_FILE) == @__FILE__ | ||
# Initialize the Conda environment | ||
using Conda | ||
|
||
# Instantiate all the dependencies | ||
using Pkg | ||
Pkg.instantiate() | ||
# Add the dependencies to the Conda environment | ||
Conda.runconda(Conda.Cmd(["env", "update", "-n", "base", "--file", joinpath(@__DIR__, "environment.yaml")])) | ||
|
||
# Initialize the Conda environment | ||
ENV["PYTHON"]="" | ||
Pkg.build("PyCall") | ||
|
||
# Add the dependencies to the Conda environment | ||
using Conda | ||
Conda.runconda(Conda.Cmd(["env", "update", "-n", "base", "--file", joinpath(@__DIR__, "environment.yaml")])) | ||
|
||
# Rebuild PyCall with the new conda environment | ||
Pkg.build("PyCall") | ||
|
||
end | ||
# Build PyCall with the new conda environment | ||
Pkg.build("PyCall") |
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