Skip to content
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

Update recipe for atom 0.4.0 #2

Merged

Conversation

MatthieuDartiailh
Copy link
Contributor

No description provided.

@conda-forge-linter
Copy link

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 (recipe) and found it was in an excellent condition.

@MatthieuDartiailh
Copy link
Contributor Author

@blink1073 sorry to bother but I am really puzzled by the Python 3.6 error related to SIZE_MAX not being defined. This is definitively outside Atom and I don't really know what I can do about it.

@blink1073
Copy link
Member

@jakirkham, have you seen this before? It looks like pyport.h is using SIZE_MAX, but for some reason it is not defined in Python 3.6.

@jakirkham
Copy link
Member

@conda-forge-admin, please rerender.

@jakirkham
Copy link
Member

Can't say I have. Though this SO answer looks promising.

@jakirkham
Copy link
Member

Should add that stdint.h defines SIZE_MAX and that is included by inttypes.h, which pyport.h includes. So it is a little strange not to see SIZE_MAX defined here.

@jakirkham
Copy link
Member

Just for fun, restarted CircleCI to see if this is a persistent issue.

@MatthieuDartiailh
Copy link
Contributor Author

The recipe was re-rendered (first commit conda-smithy 2.4.2) and the error appears to be persistent. I just checked that updating conda and conda-smithy did not change the recipe. What else can I try ?

@jakirkham
Copy link
Member

Yeah I missed that initially. Normally make that a separate commit (e.g. conda-smithy rerender -c). Though I don't think re-rendering or conda and friends are the issue. Have you tried the SO answer linked above?

@MatthieuDartiailh
Copy link
Contributor Author

I am not sure how to pass those arguments through setuptools, but I will check. What also surprises me is that the build works fine on travis (https://travis-ci.org/nucleic/atom/jobs/286633059). Can it be something with the image Circle CI is using ?

@jakirkham
Copy link
Member

Would actually try setting the CFLAGS environment variable or similar to include them.

@MatthieuDartiailh
Copy link
Contributor Author

Thanks will try.

@jakirkham
Copy link
Member

Sorry clicked comment too soon.

Can it be something with the image Circle CI is using ?

I don't think so. After all it builds fine for Python 3.5 and 2.7.

@blink1073 had a good idea by wondering if it was Python version specific. It may turn out to be relevant even if we haven't figured out exactly how. For instance, we did release 3.6.3 not that long ago. So maybe 3.6.2 doesn't have this problem. Could change python in build to python <3.6.3 for instance to force 3.6.2.

@MatthieuDartiailh
Copy link
Contributor Author

Tried to set the CFLAGS, no luck there

@jakirkham
Copy link
Member

Sorry I must be missing it. Where did you set CFLAGS? I see the movement to build scripts, but not the environment variable being set. 😕

@MatthieuDartiailh
Copy link
Contributor Author

Actually my mistake sorry for the noise

@MatthieuDartiailh
Copy link
Contributor Author

The CFLAGS did the trick apparently

@blink1073
Copy link
Member

Looks good! 🍻

@MatthieuDartiailh
Copy link
Contributor Author

Thanks for the help @jakirkham and @blink1073. If Travis come back green feel free to merge.

recipe/build.sh Outdated
@@ -0,0 +1,10 @@
#!/bin/bash

export CFLAGS="-D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be worth adding the SO answer link in a comment above in case anyone wonders why this is here. Included the short link below.

ref: https://stackoverflow.com/a/30472875

@jakirkham
Copy link
Member

No problem, @MatthieuDartiailh. Glad to help. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants