Created
September 25, 2015 20:07
-
-
Save meggart/d2223388e5bd9574e7ba to your computer and use it in GitHub Desktop.
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
"Get the exact version of a package." | |
function version(name::AbstractString) | |
packages = JSON.parse(readall(`$conda list --json`)) | |
for package in packages | |
if startswith(package, name) | |
return package | |
end | |
end | |
warn("Could not find the $name package") | |
return "Not found" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment