-
Notifications
You must be signed in to change notification settings - Fork 24
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
add_pip_as_python_dependency
(and others) ignored when run via conda-build
#393
Comments
Ugh. Thanks for the report @mbargull! To be clear, this is conda-forge setting that env var in their config, right? Not conda-build itself. How conda-build interfaces with the index and the solver is... peculiar :) |
I wonder if the solution here is to export this to disk and hope the metadata gets to |
No, no env var involved. This is |
Oh yes, sorry. Ok, got it. I'm all in for the |
My plan (no pun intended...) is to purge
Oh, I'm not surprised... virtual hugs incoming :) |
until conda/conda-libmamba-solver#393 is fixed Signed-off-by: Marcel Bargull <marcel.bargull@udo.edu>
until conda/conda-libmamba-solver#393 is fixed Signed-off-by: Marcel Bargull <marcel.bargull@udo.edu>
I took another look, but couldn't see an obvious/feasible way to workaround this in I'd say, let's just change this to |
There are several pages of commits in March 21, 2019. That's odd, so I took a look at all of that is coming from conda/conda#8435. A tiny PR with 111 changed files, 250 commits and no CI :D |
Yep, those things happened a lot back then in the |
I think this is also affecting the pkg cache. conda-forge sets two paths: pkgs_dirs:
- ${FEEDSTOCK_ROOT}/build_artifacts/pkg_cache
- /opt/conda/pkgs When conda-build first collects the index, it saves the repodata json to:
However, when conda-libmamba-solver tries to do the same, it should find the cache already populated. Instead:
This forces a redownload which might be out of sync at some point. |
Trying that out in this PR to see if it fixes a weird error too. |
Opened conda/conda-build#5083 |
Could be, yes. The Generally, all config options that influence the index can be affected. |
Looks like we don't get the missing keys anymore in the stackvana debugger. It fails for other reasons, though. |
It looks like it only fails with
which is expected due to the |
Ugh, I had missed that |
Checklist
What happened?
conda-forge/numpy-feedstock#305 (comment)
The reason for this is
meaning,
conda.plan
for whatever reason callssolver.solve_for_transaction
in a differentcontext
(viastack_context_default
which usessearch_path=()
) that ignores the config files.In conjunction with
conda-libmamba-solver
not reusing theindex
that has been created beforehand in the correctcontext
, this means that settings that influence the index, likeadd_pip_as_python_dependency: false
, will be ignored.(One can workaround this by using settings via environment variables, e.g.,
CONDA_ADD_PIP_AS_PYTHON_DEPENDENCY=0 conda-build ...
since only thesearch_path
but not the env vars are ignored in thatconda.plan
part.)Proper solution would be to remove the
conda.plan
usage fromconda-build
(hopefully happening soon).Maybe we could have a workaround in
conda-libmamba-solver
that callsmamba_utils.init_api_context
beforehand and then not calling it again insolve_final_state
(sidestepping theconda.plan
stack_context_default
usage)?(
conda.base.context
would still be the incorrect state -- so if that one is also used, that would need a workaround too).Conda Info
No response
Conda Config
No response
Conda list
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: