-
Notifications
You must be signed in to change notification settings - Fork 230
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
Document Compiling On Windows #165
Comments
What about compile on VS2015 update 3 For Python 3.5 & 3.6? |
@AraHaan Has update 3 changed something? The above instructions will work just fine for VS2015 + Python 3.5, but we also do this for you via binary wheels so if you just run the latest pip |
Ah, I see from your other issue that 3.6 is your need. To compile it manually on 3.6 you'll need to grab the latest release: https://github.com/jedisct1/libsodium/releases and then compile it from the vcxproj file in the root of the unzipped dir. |
Also the lib on the current solution of theirs can be used if you do the DLL build as well (both would be the same just the other does not produce a DLL with it) |
I tried to get this working on MSYS2 In setup.py this
can not work on MSYS2. make is if we remove that, there is another error.
This ticket is 2 years old, still no way to build this lib in MSYS2 env this project is in the same domain as pyopenssl and cryptography, which are both bigger projects and just build fine on MSYS2. Can we not get someone over here to take a look at this? |
I was build pynacl on Windows10 and VS2012
|
Still getting this error. |
If you look at our CI and wheel builders you can see that for windows we link against a precompiled windows library. I’d suggest following that pattern for your use case. As is, no one has stepped up to refactor the structure of this project to support a broader set of targets with the at-compile-time path. |
Okay, so here's how I have it building against Windows with the changes in #164:
C:\libsodium
C:\libsodium\include
(this is required for Python 2.7 but not other releases)builds/msvc/vs2010/libsodium
), set the target to static release, then build it. You can then use the resulting.lib
to statically link.With those prerequisites out of the way you can then do something like this to build:
(The
PYNACL_SODIUM_STATIC
flag is required if you want to link against the static libraries, but not if you want to use dynamic. If you use dynamic you'll need to drop the.lib
file in the appropriate place post-install though and building a wheel will be a more involved process)The next release of pynacl will ship static windows wheels by default so this is only necessary for users who don't want to wait or want to develop this project on windows.
The text was updated successfully, but these errors were encountered: