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

Cflag ERROR when installing #2

Closed
redreamality opened this issue Aug 2, 2015 · 2 comments
Closed

Cflag ERROR when installing #2

redreamality opened this issue Aug 2, 2015 · 2 comments

Comments

@redreamality
Copy link

the debug info is as belows, is it possible to comment the cflag parts?

Using cached preshed-0.41.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
.....\setup.py",line 22, in rm_cflag
cflags = distutils.sysconfig._config_vars['CFLAGS']
KeyError: 'CFLAGS'

@honnibal
Copy link
Member

honnibal commented Aug 2, 2015

Sure — this can be changed to .get() instead.

What platform are you on, though? I didn't think I'd get a KeyError there.

@maxirmx
Copy link
Contributor

maxirmx commented Oct 9, 2015

Using $CFLAGS is gmake convention. Normally you cannot expect it on Windows even with MinGW.
I put a Windows-safe version to maxirmx branch though if compiler options are important they have to be enforced for all possible set up options.

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

No branches or pull requests

4 participants