Skip to content

Precompile cache misses #594

Closed
JuliaPy/CondaPkg.jl
#171
@ZenanH

Description

@ZenanH

Hi, I'm using PythonCall.jl in my Julia package, but I found that it always precompiles this package.

[ Info: Precompiling Newenv [10636705-ebed-4bed-86c5-f04e3a3b5270] (cache misses: dep uuid changed (2))

Is this an expected behavior or is there something wrong with my usage? Below is my code.


/Newenv.jl                
.
├── CondaPkg.toml
├── Project.toml
└── src
    └── Newenv.jl

1 directory, 3 files
  • CondaPkg.toml
channels = ["conda-forge"]

[deps]
meshio = ""
  • Project.toml
name = "Newenv"
uuid = "10636705-ebed-4bed-86c5-f04e3a3b5270"
authors = ["test test@outlook.com"]
version = "0.1.0"

[deps]
CondaPkg = "992eb4ea-22a4-4c89-a5bb-47a3300528ab"
PythonCall = "6099a3de-0909-46bc-b1f4-468b9a2dfc0d"

[compat]
CondaPkg = "0.2"
PythonCall = "0.9"
julia = "1.11"

[extras]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Test"]
  • Newenv.jl
module Newenv

using PythonCall

const meshio = Ref{Py}()

function __init__()
    meshio[] = pyimport("meshio")
    println("Newenv initialized")
end

greet() = print("Hello World!")

end # module Newenv

I cd to path/to/Newenv.jl and launch Julia, than type dev . to install this package.

precompile every time:

╭─zhuo@rtx3090 ~ 
╰─$ ju
julia> using Newenv
Precompiling Newenv...
  1 dependency successfully precompiled in 2 seconds. 50 already precompiled.
[ Info: Precompiling Newenv [10636705-ebed-4bed-86c5-f04e3a3b5270] (cache misses: dep uuid changed (2))
Newenv initialized

julia> exit()
╭─zhuo@rtx3090 ~ 
╰─$ ju
julia> using Newenv
Precompiling Newenv...
  1 dependency successfully precompiled in 2 seconds. 50 already precompiled.
[ Info: Precompiling Newenv [10636705-ebed-4bed-86c5-f04e3a3b5270] (cache misses: dep uuid changed (2))
Newenv initialized

julia> exit()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions