-
Notifications
You must be signed in to change notification settings - Fork 11
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
added pyrad_mch dependency #46
Conversation
👋 Thanks for opening this PR! The Cookbook will be automatically built with GitHub Actions. To see the status of your deployment, click below. |
@wolfidan The problem with |
@kmuehlbauer , thanks for pointing that out! Our pyrad CI works for python3.9, so I didn't realize this failure on azure in the conda package for 3.9. I will sort it out asap. |
@wolfidan Yes, the 1.3.0 version is still an unmerged PR in the feedstock. If this one get's merged we should have the artifacts ready in some hours. |
Sorry as pointed out by @kmuehlbauer (thanks again!) there are some issues in the conda builds at the moment, also because numpy.distutils apparently just got deprecated and we still use it in our setup.py. I'm doing my best to fix this. |
Will this create conflicts with: import pyart Since it requires |
I modified it to make sure it also works with arm_pyart. So it should just use the version that is available. But yes we need to make sure it does not install pyart_mch through conda. I'm pretty sure it does not but I will double check. |
@kmuehlbauer , thanks for your proposition to help me. I managed to make it run locally with setuptools but on my github actions I get this error: https://github.com/MeteoSwiss/pyrad/runs/7861917497?check_suite_focus=true Strange because when I compile locally I don't get this problem, neither with Everything I tested now didn't help and I can't find much on the web. Usually this error happens when you try to import your package while running python inside the package installation folder, but that cannot be the case here. |
Omg, please have a look here |
Maybe it just helps to pin setuptools? |
Thanks, I managed to solve it finally, it was just a matter of modifying find_packages of setuptools, before that it only included the main module but not the submodules, which caused the issue. It was kind of misleading, starting a new conda environment from scratch, I realized that in fact it did not compile correctly locally as well. |
I finally managed to make a new working (also with python3.9) pyrad conda package. Still want to run a test or two before we merge, though. But I'm still struggling with pyart_mch, and even though it's not needed for the course, I'm feeling bad having this half broken package. It works locally and on pip but the conda feedstock fails. I watched the arm_pyart feedstock and it does not seem to try to compile the cython files at this stage of the process, so this might be my problem. I have no idea what's going around here, been trying things for hours. Maybe @mgrover1 , would have a minute to check out the conda feedstock log, maybe you have experienced similar things in your transition to setuptools? That would be extremely helpful, thank you :) |
And I had another question for you python experts @kmuehlbauer @mgrover1, I realized that conda considers pyart_mch as a dependency of pyrad_mch which is bad. But this is probably (?) due to the fact that pyart_mch is currently a git submodule of pyrad_mch. So I guess the only way to let the user choose between arm_pyart and pyart_mch would be to remove pyart_mch from the submodules of pyrad_mch? In that way it would not be installed automatically with |
@wolfidan There were some big changes with setuptools and conda-forge this past week... trying to sort out the issues on this end too. |
How do we want to resolve this PR? @wolfidan is this correct, that we can't install pyart_mch and arm_pyart into the same conda environment? How should this be tackled? |
@kmuehlbauer , I just made a new conda package that should hopefully solve the problem. However when I try to install on a new environment it still gets the old one. I guess I have to wait some time until the repo is updated. So I'll keep you posted. Otherwise there's also the --no-deps argument in conda install that would only install pyrad and nothing else but I don't know if it's possible to specify this in the binder. |
@wolfidan It takes some time for the package to get distributed to CDN. We can move the installation part to appendix.txt maybe and install pyrad there. |
@kmuehlbauer , I could now download the latest version using |
Hi @wolfidan, I am not sure I understand what you are trying to do here. In the past we had a pyrad_mch and a pyrad_arm conda packages. Pyrad_mch had pyart_mch as a dependency and pyrad_arm had arm_pyart as a dependency. In practice they were two completely independent conda packages even though the python package pyrad was unique. What would be the rationale to change that? The idea was that each pyrad package was serving at two independent communities. |
@jfigui , yes you're right, since it is now homogeneized for whatever pyart version, I realized we can actually generate the two packages with the same pip version just by changing the dependencies in the conda feedstock. So I now have the two packages Which have arm_pyart and pyart-mch resp. as dependencies. I will change this PR in an hour or so (after the repos are updated and I can test) to use pyrad_arm instead of pyart_mch. |
@wolfidan @kmuehlbauer should we go ahead and merge? |
Yes, let's see if anything breaks. The earlier we know the better. |
Agreed! Merging away! |
Thanks for the merge, sorry I was away a few hours. |
No worries! |
Yup! That makes sense. |
Hi everybody,
As asked in the github issues, here is the addition of pyrad_mch as dependency in both environment.yml files.
Thanks,
Daniel