Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rework the platform hack for modern conda #274

Closed
wants to merge 1 commit into from

Conversation

mcg1969
Copy link
Collaborator

@mcg1969 mcg1969 commented Jun 13, 2020

We can greatly simplify the approach used to compute conda solves for other platforms. For quite a long time, conda has supported the CONDA_SUBDIR environment variable to specify the platform for which to do a solve.

@mcg1969
Copy link
Collaborator Author

mcg1969 commented Jun 13, 2020

Drat, need to fix the msys2 issues

@AlbertDeFusco
Copy link
Collaborator

Ah, ha! I figured out how to get this to work. The CONDA_CHANNELS env var acts like -c on the CLI to provide additional channels. I'll put this in a new PR along with a fix to streaming_popen to support setting env vars without modifying os.environ globally.

> cat ~/.condarc
channels:
  - defaults

> conda search tranquilizer
Loading channels: done
# Name                       Version           Build  Channel             
tranquilizer                   0.5.0            py_0  pkgs/main           
tranquilizer                   0.5.0    pyhd3eb1b0_0  pkgs/main

> conda search -c conda-forge tranquilizer
Loading channels: done
# Name                       Version           Build  Channel             
tranquilizer                   0.3.0            py_0  conda-forge         
tranquilizer                   0.3.1            py_0  conda-forge         
tranquilizer                   0.3.1            py_1  conda-forge         
tranquilizer                   0.3.2            py_0  conda-forge         
tranquilizer                   0.3.3            py_1  conda-forge         
tranquilizer                   0.4.0            py_0  conda-forge         
tranquilizer                   0.4.1            py_0  conda-forge         
tranquilizer                   0.4.2            py_0  conda-forge         
tranquilizer                   0.5.0            py_0  conda-forge         
tranquilizer                   0.5.0            py_0  pkgs/main           
tranquilizer                   0.5.0    pyhd3eb1b0_0  pkgs/main           
tranquilizer                   0.6.0    pyhd8ed1ab_0  conda-forge         
tranquilizer                   0.7.0    pyhd8ed1ab_0  conda-forge 

> CONDA_CHANNELS='defusco' conda search -c conda-forge tranquilizer
Loading channels: done
# Name                       Version           Build  Channel             
tranquilizer                   0.3.0            py_0  conda-forge         
tranquilizer                   0.3.1            py_0  conda-forge         
tranquilizer                   0.3.1            py_1  conda-forge         
tranquilizer                   0.3.2            py_0  conda-forge         
tranquilizer                   0.3.3            py_1  conda-forge         
tranquilizer                   0.4.0            py_0  conda-forge         
tranquilizer                   0.4.1            py_0  conda-forge         
tranquilizer                   0.4.2            py_0  conda-forge         
tranquilizer                   0.5.0            py_0  conda-forge         
tranquilizer                   0.5.0            py_0  pkgs/main           
tranquilizer                   0.5.0    pyhd3eb1b0_0  pkgs/main           
tranquilizer                   0.6.0    pyhd8ed1ab_0  conda-forge         
tranquilizer         0.6.0+10.gc568a61.dirty    pyh39e3cac_0  defusco             
tranquilizer                   0.7.0    pyhd8ed1ab_0  conda-forge

@AlbertDeFusco
Copy link
Collaborator

This has been implemented by #352

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants