On Tuesday, 28 May 2019 15:05:29 BST Thomas Westfeld wrote: > >On Tuesday, 28 May 2019 12:04:05 BST Griatch Art wrote: > > > >> Hi, > >> > >> > >> > >> I'm investigating installing the Evennia MU* server on Windows. We use > >> Twisted and will be requiring Python3.7 in our next release. I need to > >> make easy-to-use install instructions since a lot of Windows users use > >> our library. > >> > >> > >> > >> I tested with a Windows7 64bit VM and installed everything from scratch > >> to > >> emulate what a non-dev Windows user would see. I don't have Windows10 so > >> can't compare to the install experience there (but Windows7 64bit is > >> still > >> relevant, having something like 24% of the active Windows user-base > >> according to Steam). > >> > >> > >> > >> Using pip to install Evennia, at the Twisted requirement install step I > >> run into an error telling me that I need "Microsoft Visual C++ build > >> tools" from the URL https://visualstudio.microsoft.com/downloads. The > >> first issue is that there does not appear to be any build-tools package > >> named like that on that page or sub-page (at least not what I could find > >> after digging around). I tried to install a few similarly-named > >> packages, like "Visual Studio Build Tools", but had no luck getting > >> past the Twisted install point. So that recommendation-string should > >> likely be updated. > >> > >> > >> > >> The thing is though, while I could probably personally figure out how to > >> set it up eventually, our Windows users are likely the least tech-savvy > >> of > >> our users. Requiring them to set up a compiler environment (despite us > >> telling them that Python code does not need compilation) a bit too much. > >> It seems Twisted has distributed binary Windows wheels in the past, > >> would > >> it be possible to get them again? Or should I recommend some other, > >> specific install procedure for our Windows users? > >> > >> > >> > >> Cheers, > >> Griatch, Evennia dev > > > > > >What I do for my python projects on windows is turn them into a setup.exe > >that the user can run in the traditional way. There are many tools to > >help you do this. Then the user does not need to install anything except > >your setup.exe. > >You do not need python installed on the users system. > >And you can sort out the compilation issues when you kit the project. > > > >Make sure you use the right version of visual C++ that matches your > >python version. See https://wiki.python.org/moin/WindowsCompilers > >(Assume the same compiler for 3.7 and 3.8 as 3.6). > > > >I package pysvn, Barry's Emacs and SCM workbench this way for windows. > >You can use a similar approach for macOS. > > > >Barry > > > > Hi Barry, > > that sounds very interesting. Could you give me a hint which toolchain you > are using to create a all in one setup.exe including Python and the > dependencies needed?
You can see the code I use for Barry's Emacs on github. Barry's Emacs uses PyQt for its Here is the script that builds the app: https://github.com/barry-scott/BarrysEmacs/blob/master/Editor/PyQtBEmacs/ bemacs-windows.cmd It uses https://pypi.org/project/win-app-packager/ to do the heavy lifting. I have already built the python extension that is used by this point in the build process. Then look at this script that builds the setup.exe: https://github.com/barry-scott/BarrysEmacs/blob/master/Kits/Windows/build-windows.cmd It uses Inno installer from http://www.jrsoftware.org/isinfo.php Barry _______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python