You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a project uses both maturin and poetry simultaneously, it's common to run commands such as poetry run maturin develop.
However, this doesn't work in a conda environment. Here's an example using the robyn repository:
$ git clone https://github.com/sparckles/Robyn.git
[...]
$ cd Robyn
$ conda create -n robyn python
[...]
$ conda activate robyn
$ poetry install
[...]
± poetry run maturin develop
💥 maturin failed
Caused by: Both VIRTUAL_ENV and CONDA_PREFIX are set. Please unset one of them
This is because poetry seems to set the VIRTUAL_ENV environment variable when it detects a conda env:
$ env
[...]
CONDA_PREFIX=/home/vinmic/miniconda/envs/parsecv3
[...]
# No VIRTUAL_ENV defined here
$ poetry run env
[...]
CONDA_PREFIX=/home/vinmic/miniconda/envs/robyn
[...]
VIRTUAL_ENV=/home/vinmic/miniconda/envs/robyn
Would it be possible to allow both environment variables to be set when their values are equal?
The text was updated successfully, but these errors were encountered:
When a project uses both maturin and poetry simultaneously, it's common to run commands such as
poetry run maturin develop
.However, this doesn't work in a conda environment. Here's an example using the robyn repository:
This is because
poetry
seems to set theVIRTUAL_ENV
environment variable when it detects a conda env:Would it be possible to allow both environment variables to be set when their values are equal?
The text was updated successfully, but these errors were encountered: