CondaPkg.jl icon indicating copy to clipboard operation
CondaPkg.jl copied to clipboard

CondaPkg dependency for Extension package

Open wsmoses opened this issue 1 year ago • 3 comments

I'm hoping to add a python dependency to an extension package, and it wasn't clear to me how this should be done.

Any tips?

x/ref https://github.com/EnzymeAD/Reactant.jl/issues/354 https://github.com/EnzymeAD/Reactant.jl/pull/407

cc @mofeing @avik-pal

wsmoses avatar Dec 20 '24 18:12 wsmoses

i guess that just adding CondaPkg.toml suffices? https://github.com/JuliaPy/PythonPlot.jl/blob/main/CondaPkg.toml

my hope is that this works when PythonCall/CondaPkg is a weak dep

mofeing avatar Dec 20 '24 18:12 mofeing

yeah the problem is we don't want to add the condapkg.toml on Reactant itself, but only when the PythonCall extension is loaded....and that....I have no idea how to do

wsmoses avatar Dec 20 '24 18:12 wsmoses

i guess that it'll still work? like CondaPkg.toml will only be checked when CondaPkg is loaded (or precompiled?)

mofeing avatar Dec 20 '24 18:12 mofeing