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

Anaconda build failure due to VERSION_STR #2

Open
lJoublanc opened this issue Jan 15, 2015 · 0 comments
Open

Anaconda build failure due to VERSION_STR #2

lJoublanc opened this issue Jan 15, 2015 · 0 comments

Comments

@lJoublanc
Copy link

When building 1.2 release with Anaconda on windows, I get the following errors

src/python-lz4f.c: In function 'initlz4f':
src/python-lz4f.c:406:51: error: too many decimal points in number
src/python-lz4f.c:407:55: error: too many decimal points in number
src/python-lz4f.c:408:55: error: 'r123' undeclared (first use in this function)
src/python-lz4f.c:408:55: note: each undeclared identifier is reported only once

Replacing the versions with their literals in the abovementioned file, like so

    PyModule_AddStringConstant(module, "VERSION", "1.2.1.2");
    PyModule_AddStringConstant(module, "__version__", "1.2.1.2");
    PyModule_AddStringConstant(module, "LZ4_VERSION", "r123");

Resolves the problem. It looks like the string literals VERSION_STR in setup.py aren't being treated as strings, but numbers instead.

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

1 participant