Replies: 1 comment
-
Never mind this doesn't have to do with optional dependencies. This is just the fact a package in my dependency chain specifies |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm working on converting a project from Poetry to Pixi that depends on a Python package that has platform specific optional dependencies. It appears that Pixi resolves all dependencies of Python packages if they match
pixi.project.platforms
, even if the optional dependencies are never required by a project.This is a problem because some platform-specific Python packages may implement
setup.py
files which build steps that error if executed from an unsupported platform. In my particular case, Pixi is trying to build systemd-python when on OSX which errors complaining that linux-specificlibsystemd-*
dependencies are missing. I can fix the issue by removinglinux-64
from the list of platforms.I've been unable to reproduce this issue with a minimal example where I create a minimal project with
systemd-python
as an optional dependency, build it, and then try and install it in another project that doesn't use the optional dependency.The fact I'm unable to reproduce this might suggest there an issue with my package's metadata, but I've been unable to figure out why Pixi thinks it needs to install systemd-python. I've tried to make the installation process as verbose as possible (
-vvv
) but I didn't see any logs that hinted at this info - only that it did so because it was resolving dependencies for thelinux-64
platform.Beta Was this translation helpful? Give feedback.
All reactions