conda-forge / pypy-meta-feedstock

A conda-smithy repository for pypy-meta.
BSD 3-Clause "New" or "Revised" License
1 stars 8 forks source link

Test PyPy isn't newer than CPython #27

Open jakirkham opened 1 year ago

jakirkham commented 1 year ago

If PyPy becomes newer than CPython for a specific version (like 3.8), Conda will default to installing PyPy everywhere (instead of CPython as intended). Would be good to add a test that PyPy isn't newer that CPython to avoid this.

Better still would be to avoid this behavior in or from solvers somehow

cc @mattip ( who raised this in comment https://github.com/conda-forge/pypy-meta-feedstock/pull/24#issuecomment-1412676270 )

mattip commented 1 year ago

It seems something like this might work

conda search python={{ python_version }} | grep cpython
if [[ $? -eq 1 ]]; then 
    echo cannot release pypy without a corresponding cpython;
    exit -1
fi