Skip to content

Instantly share code, notes, and snippets.

@johnnychen94
Last active May 9, 2019 13:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnnychen94/720900fd9e44395beaa0704770c91a36 to your computer and use it in GitHub Desktop.
Save johnnychen94/720900fd9e44395beaa0704770c91a36 to your computer and use it in GitHub Desktop.
install master branch of julia package
using Pkg.TOML: parsefile
using Pkg
STDLIBS = Set([
"Base64",
"CRC32c",
"Dates",
"DelimitedFiles",
"Distributed",
"FileWatching",
"Future",
"InteractiveUtils",
"LibGit2",
"Libdl",
"LinearAlgebra",
"Logging",
"Makefile",
"Markdown",
"Mmap",
"Printf",
"Profile",
"REPL",
"Random",
"SHA",
"Serialization",
"SharedArrays",
"Sockets",
"SparseArrays",
"Statistics",
"SuiteSparse",
"Test",
"UUIDs",
"Unicode"])
deps = parsefile("Project.toml")["deps"] |> keys |> Set
deps = setdiff(deps, STDLIBS)
for dep in deps
Pkg.add(PackageSpec(name = dep, rev = "master"))
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment