Open Zaubeerer opened 2 weeks ago
This is a really high value idea indeed, we previously tempt to refer to this feature as "workspaces" which in theory do exactly this but then from a path instead of a git dependency.
Here is my reply to the discussion (from already some time ago) https://github.com/prefix-dev/pixi/discussions/387#discussioncomment-7253056
What we might already implement more quickly instead of the full building logic mentioned in the discussion is the retrieval of the dependencies from a source dependency, like we can for pypi-dependencies
without building it first. Currently you can only depend on a conda
or pypi
project and a pixi
project is neither but rather a combination.
This comment solves nothing, just giving some background information.
Thanks for the quick answer!
The linked discussion #387 indeed relates to our problem.
What we might already implement more quickly instead of the full building logic mentioned in the discussion is the retrieval of the dependencies from a source dependency, like we can for pypi-dependencies without building it first. Currently you can only depend on a conda or pypi project and a pixi project is neither but rather a combination.
This sounds great and would likely solve the problem described in the above issue description! 👌
Problem description
Problem
I have a package B, with the following
pyproject.toml
:It installs the git dependency
package_a
, which itself has the followingpyproject.toml
:However, it seems like
ortools
andpython-dotenv
are not installed in the environment created withpackage_b
that installspackage_a
as dependency.The
package_a
dependencies are only installed in the environment created when runningpixi install
inpackage_a
directly.I just created a minimal reproducible example as screenshot:
Current workarounds
dependencies=[]
in normalpyproject.toml
format, not leveraging pixi. In that case, the dependencies would be superseded by the pixi dependencies if additionally added in the[pypi.dependencies]
, but only, when installing thepyproject.toml
directly, not as dependency.pyproject.toml
"Proposed solution
It would be great if one can just reference the respective git revision as dependency and pixi resolves the packages iteratively based on the pixi dependencies.