<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to PyHook_Build_Instructions</title><link>https://sourceforge.net/p/pyhook/wiki/PyHook_Build_Instructions/</link><description>Recent changes to PyHook_Build_Instructions</description><atom:link href="https://sourceforge.net/p/pyhook/wiki/PyHook_Build_Instructions/feed" rel="self"/><language>en</language><lastBuildDate>Fri, 20 Jun 2014 18:29:29 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/pyhook/wiki/PyHook_Build_Instructions/feed" rel="self" type="application/rss+xml"/><item><title>PyHook_Build_Instructions modified by nanotube</title><link>https://sourceforge.net/p/pyhook/wiki/PyHook_Build_Instructions/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="introduction"&gt;Introduction&lt;/h1&gt;
&lt;p&gt;The instructions here are for those who want to build pyHook from source (otherwise, you can just use the existing binary release and not worry about any of this). &lt;/p&gt;
&lt;h1 id="system-requirements"&gt;System requirements&lt;/h1&gt;
&lt;ul&gt;
&lt;li&gt;Windows 2000 or later. &lt;/li&gt;
&lt;li&gt;&lt;a class="" href="http://python.org/" rel="nofollow"&gt;Python&lt;/a&gt; 2.5 or later &lt;/li&gt;
&lt;li&gt;&lt;a class="" href="http://sourceforge.net/projects/mingw/"&gt;MinGW&lt;/a&gt; (Minimalist GNU for Windows). Use the &lt;a class="" href="http://sourceforge.net/project/showfiles.php?group_id=2435&amp;amp;package_id=240780"&gt;Automated MinGW Installer&lt;/a&gt;. Don't forget to add the MinGW bin directory to your PATH when the install is done. At a minimum you need: &lt;ul&gt;
&lt;li&gt;gcc-core &lt;/li&gt;
&lt;li&gt;gcc-g++ &lt;/li&gt;
&lt;li&gt;binutils &lt;/li&gt;
&lt;li&gt;runtime &lt;/li&gt;
&lt;li&gt;utils &lt;/li&gt;
&lt;li&gt;w32api &lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Optionally you can use &lt;a class="" href="http://www.cygwin.com/" rel="nofollow"&gt;Cygwin&lt;/a&gt; instead of MinGW, the build process is identical. &lt;/li&gt;
&lt;li&gt;&lt;a class="" href="http://www.swig.org/" rel="nofollow"&gt;SWIG&lt;/a&gt;, &lt;a class="" href="http://www.swig.org/download.html" rel="nofollow"&gt;download&lt;/a&gt; the latest development version (1.3 branch), put the path with the swig.exe into your PATH. &lt;/li&gt;
&lt;/ul&gt;
&lt;h1 id="build-process"&gt;Build process&lt;/h1&gt;
&lt;p&gt;Once you have all the required software installed, you are ready to build pyHook. First, of course, you have to pull the actual pyHook code. Either get the latest &lt;a class="" href="https://sourceforge.net/project/showfiles.php?group_id=235202"&gt;source release&lt;/a&gt;, or pull from the &lt;a class="" href="http://pyhook.cvs.sourceforge.net/pyhook/"&gt;CVS repository&lt;/a&gt; using your favorite CVS client. &lt;/p&gt;
&lt;p&gt;Then, cd to the directory where you stored PyHook source, and run the build command: &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;python&lt;/span&gt; &lt;span class="n"&gt;setup&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;py&lt;/span&gt; &lt;span class="n"&gt;build&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;cmingw32&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;This command will automatically do the following: &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Run SWIG to wrap your .c extension with necessary code. &lt;/li&gt;
&lt;li&gt;Run GCC to compile your extension and the wrapper code. &lt;/li&gt;
&lt;li&gt;Link compiled code to Python libraries and create the .pyd file. (&lt;a class="" href="http://sebsauvage.net/python/mingw.html" rel="nofollow"&gt;reference&lt;/a&gt;) &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Once that is done, you may wish to create a redistributable extension installer executable. To do that, all you need to do is run the following command (still from inside the directory where you stored PyHook code): &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;python&lt;/span&gt; &lt;span class="n"&gt;setup&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;py&lt;/span&gt; &lt;span class="n"&gt;bdist_wininst&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;And you are done. You can then use the installer you just generated to install the version of pyHook that you just built. &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">nanotube</dc:creator><pubDate>Fri, 20 Jun 2014 18:29:29 -0000</pubDate><guid>https://sourceforge.net7d66442e1ad3a6c71642fa3cee9e02d84d2cefdd</guid></item></channel></rss>