-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
python-stratify #2393
python-stratify #2393
Conversation
Hi! This is the friendly automated conda-forge-linting service. I just wanted to let you know that I linted all conda-recipes in your PR ( |
0666e90
to
829af72
Compare
The Windows error: stratify\_vinterp.c(2756) : warning C4013: 'isnan' undefined; assuming extern returning int
stratify\_vinterp.c(2862) : error C2065: 'NAN' : undeclared identifier
stratify\_vinterp.c(2929) : error C2065: 'INFINITY' : undeclared identifier
stratify\_vinterp.c(2949) : error C2065: 'INFINITY' : undeclared identifier
stratify\_vinterp.c(4824) : error C2065: 'NAN' : undeclared identifier
stratify\_vinterp.c(29872) : warning C4244: 'initializing' : conversion from 'double' to 'float', possible loss of data
stratify\_vinterp.c(29878) : warning C4244: 'initializing' : conversion from 'double' to 'float', possible loss of data
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\BIN\\cl.exe' failed with exit status 2 sounds familiar. @gillins is this something easy to fix? Full log: https://ci.appveyor.com/project/conda-forge/staged-recipes/build/1.0.11360/job/4cv9tm37tw3a97os |
@ocefpaf Wow, that was fast ... I don't have a windows setup, so I'm struggling to investigate this issue. Seems like the Interesting it's only for the python27 windows build ... I'd rather not skip the windows build if this is an easy fix 😉 |
I have a faint memory that I saw this before but I cannot remember where. I will research the other feedstocks later to see if I can find it. (Skipping Window is OK for now.) |
@bjlittle I am merging this so I can work on the Windows issue in the feedstock. |
@bjlittle see SciTools/python-stratify#8 for a possible fix. |
Sorry for delay - use |
No problem. Thanks for the feedback! What do you think of the approach I took in SciTools/python-stratify#8 ? cdef extern from "numpy/npy_math.h" nogil:
bint isnan "npy_isnan"(long double)
float NAN "NPY_NAN"
float INFINITY "NPY_INFINITY" |
👍 Looks great! Those npy_xxx macros could very handy for portability... |
No description provided.