Project

General

Profile

LegacyDevelopersWin32Environment » History » Revision 8

Revision 7 (Jens Jensen, 11/11/2013 04:15 PM) → Revision 8/28 (Jens Jensen, 11/11/2013 04:17 PM)

h1. Setting up a Win32 Development Environment 

 h2. Library and Runtime Prerequisites 

 Get and install the following in this order: 

  # "Python 2.7.x":http://python.org/download/releases/2.7.6/ 
  # "PyGTK Win32 All-in-one installer":http://ftp.gnome.org/pub/GNOME/binaries/win32/pygtk/2.24/ 
  # "PyLibXML2":http://users.skynet.be/sbi/libxml-python/ 
  # "PyWin32":http://sourceforge.net/projects/pywin32/files/pywin32/ 
  # "PySerial":http://sourceforge.net/projects/pyserial/files/pyserial/2.5/ 

 Notes: 

  * For any of the above, be sure to get the latest version, and the py27 variant if/when available. 
  * If you are on 64-bit Windows, be sure to either download the 32 or 64-bit variants of each of the above. They must all match bitness in order to work together. 

 When everything is installed, you will want to make sure that Python is in your system PATH variable: 

 h3. Windows XP 

  * On the Desktop or in the Start menu, right-click on *My Computer* and choose *Properties* 
  * In the dialog that opens, on the *Advanced* tab, click on *Environment Variables* 
  * Under *System variables*, find *Path*, select it, and then edit *Edit* 
  * At the end of the existing value, add exactly this string: @;C:\Python27@ @;C:\Python27\bin@ (obviously adjust this path if you installed it elsewhere. Don't forget the leading semicolon) 
  * Click the *OK* buttons until you're done. 

 h3. Windows Vista/7 

  * In the Windows menu, right-click on the *Computer* item and choose *Properties* 
  * Click on *Advanced System Settings* on the left 
  * In the dialog that opens, click on *Environment Variables* 
  * Under *System variables*, find *Path*, select it, and then edit *Edit* 
  * At the end of the existing value, add exactly this string: @;C:\Python27\bin@ (obviously adjust this path if you installed it elsewhere. Don't forget the leading semicolon) 
  * Click the *OK* buttons until you're done. 

 h2. CHIRP Development Process 

 Get and install the mercurial source code management tool: 

  * "Mercurial SCM":http://mercurial.selenic.com/downloads/ 


 h2. Clone the repository 

 The next step is to download a copy of the repository. This is done from the command-line, and will create a @chirp.hg/@ directory in your current directory. Thus, you should change to the place you want it to be first. For example: 

 <pre> 
 C:\Users\Foo> cd \MyWorkspace 
 C:\MyWorkspace> hg clone http://d-rats.com/hg/chirp.hg 
 </pre> 

 h2. Run chirp 

 Python should be in your search path from the install, but if not, put it in the system PATH environment variable. Once you do that, you should be able to enter the directory that was created in the clone step above, and run chirpw with python: 

 <pre> 
 C:\MyWorkspace> cd chirp.hg 
 C:\MyWorkspace\chirp.hg> python chirpw 
 </pre>