-
Notifications
You must be signed in to change notification settings - Fork 14
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
Compiling on Windows 64 bit and Python 3 #63
Comments
I haven't tried because I run Python 2.x only. What happened when you tried? |
The classic errors on windows: unable to find vcvarsall, or some bug in cygwincompiler.py, etc etc. I tried many things with the Visual Studio compilers. Using mingw64 is not possible apparently. At some point we should resolve this on a dedicated build machine and ship binstar binaries so that no one else needs to do the compilation! |
Oh there's a fix for this that we're using in Brian 2 but I don't remember what it is exactly. @mstimberg? I think it's just something like you have to import setuptools before distutils or something. |
Yes, we compile C extensions for Python 3 on Windows 64 Bit with MSCV 10/SDK 7.1 on appveyor. I think it also works with the "C++ for Python" compiler, but I'd have to check that again (I'm sure it works for Python 2, but I did less testing for Python 3). The trick is indeed to import setuptools (a fairly recent version, but everything >=6 should work, I think) in the beginning, it will monkey-patch distutils and then things work. |
@mstimberg have you got this working with MSVC 2010 Express Edition? Or do I need to get hold of the full edition? |
I think all that is needed is the SDK 7.1, I don't have any full MSVC compiler on my (virtual) Windows machine. The tricky bit is that you have to set up the environment in the right way. We do this in a script on appveyor, it is a copy from this repository: https://github.com/ogrisel/python-appveyor-demo The relevant bits are here: https://github.com/ogrisel/python-appveyor-demo/blob/master/appveyor/run_with_env.cmd#L35 |
I'm actually not that sure anymore that the monkeypatching by setuptools is necessary here, maybe it was only necessary for the C++ for Python 2.7 compiler. |
I've managed to get it to build (python 3.4, 64-bit) by installing VS2010 (full edition, express only has 32-bit). Now I'm trying to build a binstar package but I guess something to do with the monkey-patching is failing...
We'll get there... slowly! @mstimberg have you had any experience with binstar packages? |
would it be simpler to use wheels and pip? |
hey I've solved this previous issue - turns out there was an issue with conda's version of Then tried to file an issue and discovered it was already filed - a year ago :( |
boom - now it's all done https://binstar.org/kwikteam/klustakwik2 (for win64 python 2.7 / python 3.3 / python 3.4 only - other platforms coming at some point) |
Nice work! Will look in more detail soon. On 2 July 2015 23:49:40 BST, nippoo [email protected] wrote:
|
@nippoo could you tell me how you built the conda packages? I'd like to update newer releases on anaconda cloud (Python 3.5 etc). I now have a Windows setup that can build Python packages on Py 2.7 and Py 3.5 (I have Visual C++ 2015 installed for the latter). I also uploaded Windows wheels on PyPI so I think pip install klustakwik2 might just work on Windows? |
Hi @thesamovar
have you ever succeeded in compiling KK2 on Windows 64 bit and Python 3? I tried with no success..
The text was updated successfully, but these errors were encountered: