From 5875c33f1fa7ebcbc58a004aa738887ba63d4c90 Mon Sep 17 00:00:00 2001 From: Patrick Bouffard Date: Fri, 17 Nov 2017 11:56:09 -0800 Subject: [PATCH] Change from isdefined function to @isdefined macro In Julia v0.7.0 the function form is deprecated and results in what looks like a parse error: ``` julia> Pkg.build("Conda") INFO: Building Conda =================================================================[ ERROR: Conda ]================================================================== LoadError: type CodeInfo has no field def in expression starting at /Users/patrick/.julia/v0.7/Conda/deps/build.jl:7 =================================================================================================================================================== =================================================================[ BUILD ERRORS ]================================================================== WARNING: Conda had build errors. - packages with build errors remain installed in /Users/patrick/.julia/v0.7 - build the package(s) and all dependencies with `Pkg.build("Conda")` - build a single package by running its `deps/build.jl` script =================================================================================================================================================== ``` --- deps/build.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deps/build.jl b/deps/build.jl index 201a1e8..1cff2a9 100644 --- a/deps/build.jl +++ b/deps/build.jl @@ -4,10 +4,10 @@ module DefaultDeps if isfile("deps.jl") include("deps.jl") end - if !isdefined(:ROOTENV) + if !@isdefined(ROOTENV) const ROOTENV = abspath(dirname(@__FILE__), "usr") end - if !isdefined(:MINICONDA_VERSION) + if !@isdefined(MINICONDA_VERSION) const MINICONDA_VERSION = "2" end end