-
Notifications
You must be signed in to change notification settings - Fork 94
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
WIP: Add Windows CI and make compiler arguments platform dependent. #40
Conversation
Wow, thanks a lot ! Yes, the isnan fix would be nice, definitely. |
I'm working on changing the isnan stuff now. thanks. |
@davidh-ssec Cool. Will you PR into my branch or should I rebase this PR onto your branch when you are finished? |
Well we'll want to make a new PR so it points to the |
Ok, then I'll close this and you merge it as you see fit. Appveyor should pick it up as soon as it is activated for the project. At least that what happened in my case. But you might have to push a new commit for it to actually start building. |
Actually that was too soon. I've seen that basemap is not available for windows and python > 2 on the regular conda channels. So you'll probably want this last commit also. |
Thanks. |
I think I've fixed all of the C errors I was getting but now it fails when trying to run the unittests. @cpaulik do you have any ideas: https://ci.appveyor.com/project/davidh-ssec/pyresample-0waq3/build/job/x781hjwigx2lrwtm My current code is in |
The tests never actually seem to finish. Later today I'll try to boot up a Windows VM and see if I can actually run the pyresample tests and figure this out. |
@cpaulik I'm trying to compile with python 3.5 and keep getting these warnings and errors. Do you have any idea how I can fix the "fpclassify" error? I'm trying to figure out why the tests that are failing are failing.
|
@davidh-ssec It seems that I've opened a can of worms here 😄 . Unfortunately I don't know much about C++ so I can't help. |
No problem @cpaulik. I know that it builds on appveyor so now I just need to make it work on my Windows VM so I can figure out why certain tests are failing. I just need to start with the right compiler and make sure I have all the assets required. |
Just a small progress note, I'm on vacation but had some time/interest to look at this and I think my specific problem with building on my Windows VM is related to a new C++ compiler and the |
Wow, just realized the build problem I'm having with python 3.5 on my Windows VM is also experienced on appveyor. For these specific test problems I'll make sure to test with python 3.4...assuming I can get it working on my VM. |
After a day and a half of installing new frameworks, failing, uninstalling those frameworks, failing, and then installing some more frameworks I finally got the python 3.4 stuff to build on my Windows VM and I get the same test failures as appveyor. They seem to be tied to multiprocessing which is always fun to debug. The simple proof is |
The issue with https://bugs.python.org/issue11240 This should be fixed now on my branch, but the |
@mraspaud Any idea why the warnings checks are limited to certain versions of python:
|
Probably because it was failing in the other versions. As mentioned in the On Thu, 14 Jul 2016, 13:38 David Hoese, notifications@github.com wrote:
|
@cpaulik I've got everything working except with python 3.4 there are warnings that aren't generated (or more that are), but I only see them on appveyor and not on my own python 3.4 environment. Do you have any ideas what might be going on? |
@davidh-ssec No not really. But it seems that you got it working now? At least the last appveyor build shows all green. |
Yes I'm trying out a new branch that borrowed from some stuff the astropy package does. It looks like when checking if warnings were raised it is best to clear out all previous warnings otherwise your tests depend on what order they were run in. I'm hoping to clean it up and merge this all back in to pyresample pre-master for people to test. I'm also waiting on a merge for pykdtree that should make it work on Windows which would make the pyresample tests 5 times faster. |
That's great news. Thanks a lot for taking the time to make this work. David Hoese writes:
Christoph Paulik |
@cpaulik If possible could you try the pre-master branch on your windows environments? Everything passes on appveyor it just takes ~25-35 minutes per environment since we don't have pykdtree released for Windows yet. See storpipfugl/pykdtree#11 for details on that. Feel free to ask questions or report bugs for this specific feature on this PR, but if you have code suggestions feel free to make a PR pointing to pre-master or a new feature branch. But since this seems to be fixed I'm going to close this PR. Thanks a lot for your help getting appveyor set up. |
…version Feature check atmcorr lut version
You can see an example of how it runs and fails at https://ci.appveyor.com/project/cpaulik/pyresample/build/1.0.5
It fails because of the
is_nan
function which is called differently on windows.In pytesmo I had the same problem in the past and worked around that by using the
npy_isnan
function like this:If you want to support this then we can refine this PR. For now I copied my build configuration with little modifications.
Fix #39 when finished.