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

Fixed syntax/linker issues when using Microsoft Visual C++ Compiler for Python 2.7 #29

Merged
merged 2 commits into from
Sep 1, 2016

Conversation

xrsanet
Copy link
Contributor

@xrsanet xrsanet commented Aug 31, 2016

I had issues when doing a pip install py-radix or manually compiling the C Extensions on a Windows machine using python setup.py build. This commit solves that issue when using MSVC++ as a target compiler.

Edit: with Python 2.7.12 64bit.

Please review.

It seems 32bit will have the same issues and requires the above merge + doing something with the inet_ntop reference in radix/_radix/radix.h.

Compiler for Python 2.7.

- radix.c: Moved variables to the top of the radix_search_node function.
- radix.h: Ensured code gets linked with ws2_32.lib when _MSC_VER is
  defined.
@coveralls
Copy link

coveralls commented Aug 31, 2016

Coverage Status

Coverage remained the same at 90.33% when pulling 9cf6e5f on xrsanet:master into 7ba9228 on mjschultz:master.

Compiler for Python 2.7

This is an issue when using 32bit instead of 64bit.
@coveralls
Copy link

coveralls commented Aug 31, 2016

Coverage Status

Coverage remained the same at 90.33% when pulling 28d7790 on xrsanet:master into 7ba9228 on mjschultz:master.

@mjschultz
Copy link
Owner

Unfortunately I don't have access to a Windows box anymore and I haven't quite gotten the AppVeyor builder to work yet, so I'll have to trust the little output from AppVeyor and your judgement on getting it to work.

So, thanks! Please let me know if you have any other problems, I'll take another stab at getting AppVeyor to work when I can.

@mjschultz mjschultz merged commit 6b590b5 into mjschultz:master Sep 1, 2016
@mjschultz
Copy link
Owner

Release as py-radix==0.9.7

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.

3 participants