module MyPackage
const WFDB = PyNULL()
function __init__()
copy!(WFDB, pyimport("wfdb"))
end
end # module
But this doesn't work on Linux, because there are different paths for PyCall.libpython and PyCall.Conda.PYTHONDIR.
As explained in the PyCall documentation, I should set ENV["PYTHON"]="", run Pkg.build("PyCall"), and re-launch Julia.
So, in GH Actions I've added a custom run command for MyPackage:
I have the following in my
deps/build.jl
file:And inside module:
But this doesn't work on Linux, because there are different paths for
PyCall.libpython
andPyCall.Conda.PYTHONDIR
. As explained in the PyCall documentation, I should setENV["PYTHON"]=""
, runPkg.build("PyCall")
, and re-launch Julia.So, in GH Actions I've added a custom
run
command for MyPackage:But it breaks again in GH Actions for other packages, if they have MyPackage as a dependency.
So, should I really repeat this custom
run
command to all other packages that rely on MyPackage?Or maybe I can somehow add scripts in my package, that will be run before build?