source: windows_building.txt @ 1174:01a3bba6d208

Revision 1174:01a3bba6d208, 1.8 KB checked in by Kirk McDonald <kirklin.mcdonald@…>, 11 years ago (diff)

Some fiddling with building instructions.

Line 
1Building PySoy on Windows
2by Kirk McDonald
3
4You will need:
5
6* A C compiler. I use MinGW. (Versions 3.4.2 and 5.1.3 have been tested to
7work.) Visual Studio will probably work, though it is untested.
8
9* Download the Windows dependencies package from
10http://www.pysoy.org/releases/windows_deps-1.0_beta3.zip and follow the README.
11
12* Ensure that the Python installation dir and MinGW's bin folder (if you use
13MinGW) are on the path.
14
15Pyrex 0.9.6.4 fix:
16
17There is a bug in 0.9.6.4 which causes PySoy's compilation to fail on Windows.
18In the file Pyrex\Compiler\Parsing.py, line 1191 reads:
19
20        result = PassStatNode(pos)
21
22Change this to:
23
24        result = Nodes.PassStatNode(pos)
25
26Building:
27
28Distutils gets a little strange when compiling with MinGW. To build PySoy, you
29should issue the following command:
30
31> python setup.py build --compiler=mingw32
32
33To install PySoy into site-packages, you should issue the following command:
34
35> python setup.py build --compiler=mingw32 install
36
37If you are using Visual C++, the usual "python setup.py install" should work.
38
39Note that, when you "import soy", the DLLs for PySoy's various dependencies
40will need to be somewhere on the DLL search path. If you've followed the README
41in the Windows dependencies package, it should automatically work. Otherwise,
42the easiest place to put them is in the 'soy' directory under
43Python25\Lib\site-packages\ (next to the compiled .pyd files), though anywhere
44on the PATH will work.
45
46Building the Installer:
47
48This is a four-step process.
49
501) Build PySoy.
512) Copy the 'examples' directory into the build\lib.plat-version\soy directory.
523) Copy the various DLL dependencies into that directory, too.
534) Issue the following command:
54> python setup.py build --compiler=mingw32 bdist_wininst --install-script=win32_postinstall.py
55
Note: See TracBrowser for help on using the repository browser.