-
Notifications
You must be signed in to change notification settings - Fork 233
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
Compile On Windows #100
Comments
It might if you install msys and mingw :V |
But yea we should. Realstically it should build using distutils |
I'm having issues getting pynacl to compile on windows as well. running build_clib Cleaning up... |
realized msys wasn't installed just mingw...will keep you posted |
The current pynacl expects to be able to run a shell script, so Windows is (unfortunately) unsupported. If you're working on fixing that, great! |
keep you posted if I get to it and I'll file a PR if/when it's done. *Joshua Lederman | *Gem On Wed, Dec 3, 2014 at 6:25 PM, Paul Kehrer [email protected]
|
I almost managed to build pynacl on windows. Using the prebuilt binaries of libsodium : And using the environment variable : I manage to build pynacl with VC++ 2010 and python 3.3 I just have one last problem :
EDIT : Fixed by cloning the git locally and removing the inclusion of libsodium in the MANIFEST file.
|
Working BuildThe last entry on this issue was very close, just needed to use something like Dependency Walker on the .pyd file to find out what was missing. Quick and dirty build instructions for Windows 32bit and Python 3.4.2 are below, this is using Visual Studio 2010 Express, and PyNaCl git snapshot as of 12th Jan 2015. Test was successfully completed in a Windows 8.1 64bit environment. Attempts were made using Mingw, however Mingw does not play nicely with cffi it seems. Setup
Build
Last StepThe missing step:
|
@cbrunker were you really able to get the code working with this process? I have tried replicating it several times now and it still bombs trying to call sub modules (i.e. import nacl.signing). |
@Insoleet did you get past this issue? I get the same one. |
I don't use pynacl anymore because of this problem. I use "libnacl" now. https://libnacl.readthedocs.org/en/latest/ |
Ok I was able to get that to work. I guess I have to port stuff over to libnacl now. |
|
Wow I'm still getting the missing module error. I followed your instructions to a T As well. |
If someone wants to tackle the project to support this seamlessly we're happy to take a patch. The main challenge will really just be untangling the POSIX expectations for the One we have it working properly we can do a new release (and I'll be happy to build Windows wheels with static linking like we do for pyca/cryptography). |
Ok I would love to help on this so I'll see if @cpacia and I can make this happen. |
Oh @cbrunker just noticed you used python 3.4. Is it possible to build against python 2.7? |
Haven't tried, you'll need to use VS2008 or similar for 2.7 instead of VS2010 |
I got it to work. Once I have a proper instruction set I'll post a link. |
I've gotten this to work also as an egg zip file as long as you have the Visual C Redistributable installed it works fine. |
Hi @hoffmabc , do you have instructions on building this for Python 2.7? |
@reaperhulk has anyone taken this up? |
Sorry I will post tomorrow |
@sheilatron thus far no one has taken on the work to contribute a branch that builds on Windows. PyCA has infrastructure to do windows CI (and to produce and upload windows wheels) if someone contributes the patch, but most of my focus is on https://github.com/pyca/cryptography for now. It sounds like perhaps @hoffmabc's instructions could be used to create the necessary PR though! |
We've been able to get it working on windows for OpenBazaar. Brian can provide detailed instructions. What are the chances of another release sometime soon? I'd like to use the key conversions in OB. |
@warner what do you think of trying to do a release in the next few weeks? The accumulated last several months + windows support + the work you were reviewing the other night + the cffi 1.0 conversion (which I need to spend some time on) seems release worthy to me. |
+1 |
+1. I'm travelling a bunch in the next two weeks but I'll try to find some time to look at the current PRs. |
So I've been trying hard to recode this for Windows, but unfortunately I've realized it still will require a compiler like mingw or Visual C++ and I'm still running into some issues with it finding the dll. Here are the instructions to work around it if you want to try them. I will continue working on a code submission though. https://github.com/OpenBazaar/OpenBazaar-Server/wiki/Installing-pynacl-on-Windows |
I think the best approach would be to provide a wheel for users to install. |
Thanks @hoffmabc ! We'll try out the instructions. |
I went ahead and implemented Windows support. The necessary env flags are now in master and I started documenting it in #165. The next release of pynacl (hopefully next week) will ship windows wheels by default for python 2.7, 3.3, 3.4, and 3.5 on both 32-bit and 64-bit python. |
Awesome! Thanks so much! |
👍 |
PyNaCl 1.0.1 ships with wheels for Windows (and OS X) now. 2.7, 3.3, 3.4, and 3.5 supported (and both 32-bit and 64-bit on the Windows side). Future releases will always ship this way. If you run into any problems please open a new issue! ✨ |
I am having issues building this with Python 3.6 Alpha 3. It works on python 3.5 however. I get this:
|
The reason why I need this is for the pyd's themself I do have the 1.0.1 for 3.5 but the Pyd's will not work on 3.6 Alpha 3 due to it only being able to read
And so yeah I need this to be able to embed these pyd's in a zip for 3.6 alpha as I perfer the embed versions mostly. (I can generate them myself due to make_zip.py that is only in the python source code. |
Right now pynacl won't compile on windows. We should fix that!
The text was updated successfully, but these errors were encountered: