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

Add support for python 2 and 3 when installing on Windows #740

Merged
merged 1 commit into from
Mar 12, 2020

Conversation

mdowds
Copy link
Contributor

@mdowds mdowds commented Jan 8, 2020

When installing node-rdkafka on Windows, if python on your PATH points to python 3, the installation fails with an error about being unable to import urllib2. This PR changes the installation script so it tries to import the python 3 module first, and fall back on the python 2 module. This will allow installation regardless of the python version you have as your default.

@iradul
Copy link
Collaborator

iradul commented Jan 14, 2020

There is already PR #706 that is almost identical to this.

@alex3165
Copy link
Collaborator

@iradul I would get this one merged since there is no need to duplicate filedata = urllib2.urlopen(librdkafkaNugetUrl, context=ssl._create_unverified_context()) in try and catch and the commit history on #706 looks weird. Is it ok if i get this merged?

@mmacai
Copy link

mmacai commented Feb 25, 2020

Would it be possible to merge this change? Right now, it's not possible to develop on Windows since Python 2.x is gone.

@iradul iradul merged commit c6fec79 into Blizzard:master Mar 12, 2020
@iradul
Copy link
Collaborator

iradul commented Mar 12, 2020

Thank you @mdowds

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