-
Notifications
You must be signed in to change notification settings - Fork 103
Windows Support #68
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
base: master
Are you sure you want to change the base?
Windows Support #68
Conversation
|
To compile I have used Python 3.3, Visual Studio Express 2010 and Openssl package. |
|
Windows support has never been a planned feature for Attic, but you've showed that it is possible. Before I can start to merge any windows specific changes I need to get myself a windows development environment so I can test this myself. Hopefully the win8 VM I have on my laptop will do the job. Btw, does the testsuite pass? python -m attic.testsuite.run -v |
|
To compile I use a Windows 7 virtual machine.
Hope it helps, Test are not ported I will paste the log in another post |
|
Python 3.4 is supported as of cx_freeze 4.3.2, released 2013-10-23. You may find it easier to build the native windows binary using MSYS2's mingw toolchain instead of Visual Studio. It's a much easier way of sourcing runtime + buildtime dependencies. This has a slightly different platform triple and some more linux-like defines so some of the platform-specific modifications are probably no longer necessary. Building attic with MSYS2:
|
|
Are there any plans on integrating Windows support into the "official" codebase? I've already had some success in compiling on Windows thanks to @amon-ra guide, but AFAIR I had to comment out locking to get it to actually process files. |
|
i guess until issues such as commenting out code are resolved, chances would be pretty dim. even the CI environment (travis-ci) doesn't build on windows... |
Now builds with python 3.4 and Visual Studio 2010. Added compat layer to mmap, added castings to supress VS errors.
Fixed some bugs and now is running all operations with local type. Must test with ssh. Tests are broken in windows. Sorry.
Patched select funcition and using ssh from cygwin, now remote backup working to linux host
We use select only on liinux but import must be
Sorry fixed setup in linux, added missing files and declarations
Added another setup file to generate exe
Fixed some silly bugs add parameter to set ssh command include ssh in contrib folder
Fixed compilation on Windows 7 64. Steps: To compile I use a Windows 7 virtual machine. - Installed python 3.3 (Python 3.4 is broken with cx_freeze) - Install pywin32, cython, msgpack and cx_freeze from http://www.lfd.uci.edu/~gohlke/pythonlibs/ - Install activeperl (I used ActivePerl-5.16.3.1604-MSWin32-x64-298023) - Download openssl source 1.0.1g. - Install Windows 7 SDK (python is compiled with these): http://www.microsoft.com/en-us/download/details.aspx?id=8279 - Open SDK Console window and execute (extracted from cython page): ``` set DISTUTILS_USE_SDK=1 setenv /x64 /release (if you are building to x64) ``` - Install openssl (http://developer.covenanteyes.com/building-openssl-for-visual-studio/), in openssl dir do: ``` perl Configure VC-WIN64A --prefix=C:\OpenSSL-Win64 ms\do_win64a nmake -f ms\nt.mak nmake -f ms\nt.mak install ``` - copy scripts/attic to attic.py in source root. - cd to attic dir and generate instalable: ``` python setupwin.py build python setupwin.py bdist_msi ``` - msi is in dist folder.
Fixed: - Regular expresions. - Async read/writes. Transfer is broken in windows shares. hashindex_open is not closing fd?
Now builds with python 3.4 and Visual Studio 2010. Added compat layer to mmap, added castings to supress VS errors.
Fixed some bugs and now is running all operations with local type. Must test with ssh. Tests are broken in windows. Sorry.
Patched select funcition and using ssh from cygwin, now remote backup working to linux host
We use select only on liinux but import must be
Sorry fixed setup in linux, added missing files and declarations
Added another setup file to generate exe
Fixed some silly bugs add parameter to set ssh command include ssh in contrib folder
Fixed compilation on Windows 7 64. Steps: To compile I use a Windows 7 virtual machine. - Installed python 3.3 (Python 3.4 is broken with cx_freeze) - Install pywin32, cython, msgpack and cx_freeze from http://www.lfd.uci.edu/~gohlke/pythonlibs/ - Install activeperl (I used ActivePerl-5.16.3.1604-MSWin32-x64-298023) - Download openssl source 1.0.1g. - Install Windows 7 SDK (python is compiled with these): http://www.microsoft.com/en-us/download/details.aspx?id=8279 - Open SDK Console window and execute (extracted from cython page): ``` set DISTUTILS_USE_SDK=1 setenv /x64 /release (if you are building to x64) ``` - Install openssl (http://developer.covenanteyes.com/building-openssl-for-visual-studio/), in openssl dir do: ``` perl Configure VC-WIN64A --prefix=C:\OpenSSL-Win64 ms\do_win64a nmake -f ms\nt.mak nmake -f ms\nt.mak install ``` - copy scripts/attic to attic.py in source root. - cd to attic dir and generate instalable: ``` python setupwin.py build python setupwin.py bdist_msi ``` - msi is in dist folder.
Fixed: - Regular expresions. - Async read/writes. Transfer is broken in windows shares. hashindex_open is not closing fd?
Now builds with python 3.4 and Visual Studio 2010. Added compat layer to mmap, added castings to supress VS errors.
Fixed some bugs and now is running all operations with local type. Must test with ssh. Tests are broken in windows. Sorry.
Patched select funcition and using ssh from cygwin, now remote backup working to linux host
We use select only on liinux but import must be
Sorry fixed setup in linux, added missing files and declarations
Added another setup file to generate exe
Fixed some silly bugs add parameter to set ssh command include ssh in contrib folder
Fixed compilation on Windows 7 64. Steps: To compile I use a Windows 7 virtual machine. - Installed python 3.3 (Python 3.4 is broken with cx_freeze) - Install pywin32, cython, msgpack and cx_freeze from http://www.lfd.uci.edu/~gohlke/pythonlibs/ - Install activeperl (I used ActivePerl-5.16.3.1604-MSWin32-x64-298023) - Download openssl source 1.0.1g. - Install Windows 7 SDK (python is compiled with these): http://www.microsoft.com/en-us/download/details.aspx?id=8279 - Open SDK Console window and execute (extracted from cython page): ``` set DISTUTILS_USE_SDK=1 setenv /x64 /release (if you are building to x64) ``` - Install openssl (http://developer.covenanteyes.com/building-openssl-for-visual-studio/), in openssl dir do: ``` perl Configure VC-WIN64A --prefix=C:\OpenSSL-Win64 ms\do_win64a nmake -f ms\nt.mak nmake -f ms\nt.mak install ``` - copy scripts/attic to attic.py in source root. - cd to attic dir and generate instalable: ``` python setupwin.py build python setupwin.py bdist_msi ``` - msi is in dist folder.
Fixed: - Regular expresions. - Async read/writes. Transfer is broken in windows shares. hashindex_open is not closing fd?
|
where is the repo/branch for this? i'd like to give it a try... |
|
i am not sure exactly, this pull request is a little confusing as it says it comes from an "unknown repo", but you can see the patch here: |
|
@anarcat thanks! but the patch is somewhat weird. it seems to apply and the unapply a lot of changes, resulting in a two line (mostly formatting) final diff. :-( |
I have added some patches to support windows backups.
I tried to backup local and to remote linux server and it is working ok.