-
Notifications
You must be signed in to change notification settings - Fork 401
Open
Labels
bugSomething isn't workingSomething isn't workingneeds-designNeeds a design so it can be implementedNeeds a design so it can be implementedpypiIssue related to PyPI dependenciesIssue related to PyPI dependencies
Description
The following manifest supports several platforms but the test environment only supports linux-64:
[project]
name = "project"
channels = ["conda-forge"]
platforms = ["linux-64", "osx-arm64", "win-64", "osx-arm64"]
[dependencies]
python = "3.11.8"
[pypi-dependencies]
timeago = "==1.0.16"
[feature.test]
platforms = ["linux-64"]
[environments]
test = ["test"]All environments also have pypi-dependencies (because they are in the default feature), this means that to be able to solve this project we need a Python interpreter at runtime. The problem is that the test environment only supports linux-64 which means that on any other platform, there is no Python interpreter available and you get this error (after #1052 is merged):
x Unable to solve pypi dependencies for the test environment because no compatible python interpreter can be installed for the current platform
,-[4:13]
3 | channels = ["conda-forge"]
4 | platforms = ["linux-64", "win-64"]
: ^^^^^^^^^^^|^^^^^^^^^^
: `-- even though the projects does include support for 'win-64'
5 |
`----
,-[13:13]
12 | [feature.test]
13 | platforms = ["linux-64"]
: ^^^^^^|^^^^^
: `-- feature 'test' does not support 'win-64'
14 |
`----
I don't know what the solution to this problem would be. Perhaps we create a subset "solve environment" that just includes python which we can try to install to solve pypi-dependnencies regardless of the platform? That would also alleviate some of the issues reported in #1046.
glemaitre, markgeejw, Galoist, whsu00, Yura52 and 10 more
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingneeds-designNeeds a design so it can be implementedNeeds a design so it can be implementedpypiIssue related to PyPI dependenciesIssue related to PyPI dependencies