For projects that want to test and build on both vanilla and Conda Python, it would be useful to be able to easily disable pdm-conda, or generally have it do less when PDM is using a vanilla virtual environment.
Specifically, right now if there are conda dependencies specified (or as-default-manager=true), then it fails:
File "/Users/mde48/LensKit/lkpy/.pdm-plugins/lib/python3.12/site-packages/pdm_conda/resolvers.py", line 247, in resolve
assert not any(isinstance(r, CondaRequirement) for r in requirements)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError
Either a command-line / environment variable to disable the plugin's manipulation of dependencies, or automatically detecting non-Conda environments and disabling that (perhaps with logging messages to show the enable/disable status), would make it easier to work with both types of environments (without needing to install/un-install the plugin).
For projects that want to test and build on both vanilla and Conda Python, it would be useful to be able to easily disable
pdm-conda
, or generally have it do less when PDM is using a vanilla virtual environment.Specifically, right now if there are conda dependencies specified (or
as-default-manager=true
), then it fails:Either a command-line / environment variable to disable the plugin's manipulation of dependencies, or automatically detecting non-Conda environments and disabling that (perhaps with logging messages to show the enable/disable status), would make it easier to work with both types of environments (without needing to install/un-install the plugin).