Skip to content
New issue

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

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

Already on GitHub? # to your account

Support installing Python release candidates #365

Open
dstansby opened this issue Sep 15, 2024 · 4 comments
Open

Support installing Python release candidates #365

dstansby opened this issue Sep 15, 2024 · 4 comments

Comments

@dstansby
Copy link

For testing purposes, it would be nice to be able to install Python pre-release versions, for example Python 3.13.0rc2 is currently available on conda-forge. When I tried to set the Python version to 3.13.0rc2, I got the error (see GH actions run here):

Sun, 15 Sep 2024 08:13:17 GMT
Run conda-incubator/setup-miniconda@v3.0.4
Sun, 15 Sep 2024 08:13:17 GMT
Gathering Inputs...
Sun, 15 Sep 2024 08:13:17 GMT
Creating bootstrap condarc file in /home/runner/.condarc...
Sun, 15 Sep 2024 08:13:17 GMT
Ensuring installer...
Sun, 15 Sep 2024 08:13:18 GMT
Running installer...
Sun, 15 Sep 2024 08:13:23 GMT
Setup environment variables...
Sun, 15 Sep 2024 08:13:23 GMT
Parsing environment...
Sun, 15 Sep 2024 08:13:23 GMT
Configuring conda package cache...
Sun, 15 Sep 2024 08:13:24 GMT
Applying initial configuration...
Sun, 15 Sep 2024 08:13:26 GMT
Initializing conda shell integration...
Sun, 15 Sep 2024 08:13:29 GMT
Adding tools to 'base' env...
Sun, 15 Sep 2024 08:13:29 GMT
Ensuring environment...
Sun, 15 Sep 2024 08:13:29 GMT
Updating 'test' env from conda create (simple)...
Sun, 15 Sep 2024 08:13:29 GMT   /home/runner/miniconda3/condabin/mamba create --name test python=3.13.0rc2
Sun, 15 Sep 2024 08:13:39 GMT   
Sun, 15 Sep 2024 08:13:39 GMT   Looking for: ['python=3.13.0rc2']
Sun, 15 Sep 2024 08:13:39 GMT   
Sun, 15 Sep 2024 08:13:39 GMT   Could not solve for environment specs
Sun, 15 Sep 2024 08:13:39 GMT   The following package could not be installed
Sun, 15 Sep 2024 08:13:39 GMT   └─ python 3.13.0rc2**  is not installable because it requires
Sun, 15 Sep 2024 08:13:39 GMT      └─ _python_rc, which does not exist (perhaps a missing channel).
Sun, 15 Sep 2024 08:13:39 GMT
Sun, 15 Sep 2024 08:13:39 GMT Error: The process '/home/runner/miniconda3/condabin/mamba' failed with exit code 1
@jaimergp
Copy link
Member

You need to add the python_rc label channel I think.

@dstansby
Copy link
Author

Ah yes, that seems right: https://conda-forge.org/docs/maintainer/knowledge_base/#installing-a-pre-release-build

Do you know how to pass labels to the setup-miniconda action? They don't seem to be mentioned in the README.

@dstansby
Copy link
Author

Ah, passing channels: conda-forge, conda-forge/label/python_rc seems to have worked. Would you be open to me adding how to do this to the README of setup-miniconda?

@jaimergp
Copy link
Member

Sorry for the delay, yes go for it!

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

No branches or pull requests

2 participants