pyjuliapkg icon indicating copy to clipboard operation
pyjuliapkg copied to clipboard

Question regarding `juliapkg.json` file

Open mtsokol opened this issue 9 months ago • 1 comments

Hi! I have a Python package that uses JuliaCall. It has a few Julia packages as dependencies which I have defined in juliapkg.json that is present in the wheel.

The docs say that:

JuliaPkg looks for juliapkg.json files in many locations, namely:

  • {project}/pyjuliapkg where project is as above (depending on your environment).
  • Every directory and direct sub-directory in sys.path. The last point means that if you put a juliapkg.json file in a package, then install that package, then JuliaPkg will find those dependencies and install them.

Then it means that if I had two (or more) different Python packages in my env that use juliapkg and have juliapkg.json then all of them will pick only the first juliapkg.json that comes from sys.path dir search right? Then there should some mechanism differentiating between packages when searching for respective juliapkg.json files. WDYT?

mtsokol avatar Mar 04 '25 22:03 mtsokol

No, it finds all these files and merges them together.

cjdoris avatar Apr 08 '25 21:04 cjdoris