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

Make this thing build on windows #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

eric-wieser
Copy link
Contributor

Other things required that can't go in the repository:

  1. A sane environment (64-bit Python 27 is a bit of a pain) that is already capable of building simple C extensions

  2. An installation of OpenSSL that matches your python bitness

  3. The following sequence of commands before running pip

    > set LIB=<path-to-openssl>/lib;%LIB%
    > set INCLUDE=<path-to-openssl>/include;%INCLUDE%
    

That should probably go in a readme somewhere

@danielrichman
Copy link
Owner

Maybe sys.platform, since then it differentiates between cygwin and not?

TBH I'm a bit reluctant to try and support every platform in setup.py for this---I suspect you're the only person that won't be using it on Linux.

@eric-wieser
Copy link
Contributor Author

This seems to suggest that os.name is the correct way to go, since cygwin should not be looking for the windows-specific openssl file

@danielrichman
Copy link
Owner

Fair point, though the fact that sys.platform explicitly differentiates between "linux" "win32" and "cygwin" is arguably clearer.

@eric-wieser
Copy link
Contributor Author

Ah, I was confusing sys.platform() with platform.system(). Your call on whether to use os.name or sys.platform

@danielrichman danielrichman force-pushed the master branch 2 times, most recently from 0c3765c to 6afa72e Compare August 23, 2015 21:24
@tithalljcr
Copy link

tithalljcr commented Sep 7, 2019

Bit late to this party but did you manage to get this working on windows? I managed to get post most the common issues but have gotten stuck on this one:

Creating library build\temp.win32-3.6\Release\ucam_webauth\rsa.cp36-win32.lib and object build\temp.win32-3.6\Release\ucam_webauth\rsa.cp36-win32.exp
rsa.obj : error LNK2001: unresolved external symbol _BIO_new_mem_buf
rsa.obj : error LNK2001: unresolved external symbol _BIO_free
rsa.obj : error LNK2001: unresolved external symbol _RSA_verify
rsa.obj : error LNK2001: unresolved external symbol _RSA_free
rsa.obj : error LNK2001: unresolved external symbol _PEM_read_bio_RSAPublicKey
build\lib.win32-3.6\ucam_webauth\rsa.cp36-win32.pyd : fatal error LNK1120: 5 unresolved externals
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.22.27905\bin\HostX86\x86\link.exe' failed with exit status 1120

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