This tutorial winn guide you through the installation of the apaf and its dependencies in a Windows environment.
Warning
This tutorial has been tested only on Windows XP sp3 and Windows 7.
Note
This tutorial will start assuming you are on a clean environment. If you have already installed Python, you may consider start reading further.
Install GnuPG as a tool to to verify the various software download:
Download Python 2.7 from http://www.python.org/ftp/python/2.7.3/python-2.7.3.msi
Verify signature of application: http://www.python.org/ftp/python/2.7.3/python-2.7.3.msi.asc
Install the software following the wizard.
cd C:Python27Scripts C:Python27Scripts> easy_install.exe pip
Required for txtorconn
Download from http://psutil.googlecode.com/files/psutil-0.4.1.win32-py2.7.exe
Url for py2exe: http://sourceforge.net/projects/py2exe/files/py2exe/0.6.9/py2exe-0.6.9.win32-py2.7.exe/download
Url for pywin32: http://sourceforge.net/projects/pywin32/files/pywin32/Build%20217/pywin32-217.win32-py2.7.exe/download
Donwload from http://pypi.python.org/packages/2.7/T/Twisted/Twisted-12.0.0.win32-py2.7.msi
Warning
Installing zope.interface with pip may lead to ImportError in building the APAF with py2exe.
Note
Tests on windows 7 show that, since easy_install behaves differently from pip.exe, using one instead of another during the setup of the environment may lead to problems afterwards when building the executable.
cd C:Python27Scripts C:Python27Scripts> pip.exe install six
cd C:Python27Scripts C:Python27Scripts> pip.exe install pygeoip
cd C:Python27Scripts C:Python27Scripts> pip.exe install ipaddr
cd C:Python27Scripts C:Python27Scripts> pip.exe install pyYAML
Since github lets you download a simple .zip of the latest revision of your application, git is not indispensable. But certainly it will be comfortable to stay up to date with the software development
http://git-scm.com/download/win
Then open a new Git shell from Start>Git>Git Bash.
Txtorcon is not avaible on the Python Package Index, so you need to install it manually with git.
$ git clone https://github.com/meejah/txtorcon.git
Download http://downloads.sourceforge.net/sevenzip/7z920.exe and install following the wizard.
It will place 7z.exe in “c:Program Files7-Zip7z.exe”
Download the latest version of Tor binaries for Windows.
Go to download page https://www.torproject.org/download/download.html.en and download “Expert Bundle”: https://www.torproject.org/dist/win32/tor-0.2.2.35-win32-1.exe
Now decompress the tor binary with 7zip and move it to contrib/ directory of APAF:
c:Program Files7-Zip7z.exe x tor-0.2.2.35-win32-1.exe tor.exe move tor.exe PATH_WHERE_IS_BUILD_ENVIRONMENT/contrib
Here you are ready to use the apaf. To build the single .exe file, run
C:\path\of\user\APAF> C:\Python27\python.exe setup.py py2exe