Edgewall Software

Changes between Version 272 and Version 273 of TracOnWindows


Ignore:
Timestamp:
Mar 24, 2009, 5:59:05 AM (15 years ago)
Author:
jevans
Comment:

move toward Python 2.6

Legend:

Unmodified
Added
Removed
Modified
  • TracOnWindows

    v272 v273  
    2020Download and run the Python MSI installer:
    2121[http://www.python.org/ftp/python/2.4.4/python-2.4.4.msi python-2.4.4.msi]
    22 
    2322
    2423=== Python 2.5 ===
     
    3534That being said, it's perfectly possible to run Trac for Windows/x64 (XP or Vista).
    3635
     36=== Python 2.6 ===
     37
     38[http://python.org/ftp/python/2.6.1/python-2.6.1.msi Python-2.6.1.msi]
     39
    3740== Method 1: Using Installers == #using-installers
    3841
    3942You need to download and install the following packages, pick the link appropriate to your Python version:
    4043|| '''Mandatory Packages''' || '''Installers''' ||
    41 || '''SetupTools''' || setuptools-0.6c7.win32-py2.''X''.exe ([http://pypi.python.org/packages/2.5/s/setuptools/setuptools-0.6c7.win32-py2.5.exe#md5=395a81d709766f3a0d6084964cb98b5a 2.5], [http://pypi.python.org/packages/2.4/s/setuptools/setuptools-0.6c7.win32-py2.4.exe#md5=8109dbab4d86a24e8b5ef1881c9fcbb1 2.4], [http://pypi.python.org/packages/2.3/s/setuptools/setuptools-0.6c7.win32-py2.3.exe#md5=6bd6f02383edc580a311a070e8d360f5 2.3]) (check [http://pypi.python.org/pypi/setuptools here] for latest) ||
     44|| '''SetupTools''' || setuptools-0.6c7.win32-py2.''X''.exe ([http://pypi.python.org/packages/2.5/s/setuptools/setuptools-0.6c7.win32-py2.5.exe#md5=395a81d709766f3a0d6084964cb98b5a 2.5], [http://pypi.python.org/packages/2.4/s/setuptools/setuptools-0.6c7.win32-py2.4.exe#md5=8109dbab4d86a24e8b5ef1881c9fcbb1 2.4], [http://pypi.python.org/packages/2.3/s/setuptools/setuptools-0.6c7.win32-py2.3.exe#md5=6bd6f02383edc580a311a070e8d360f5 2.3]) (check [http://pypi.python.org/pypi/setuptools here] for latest) [[BR]] As yet there's no installer for Python 2.6.  Use the [TracOnWindows#Setuptools manual method] below. ||
    4245
    4346|| '''[genshi:milestone:0.5 Genshi 0.5]''' || Genshi-0.5.win32-py2.''X''.exe ([http://ftp.edgewall.com/pub/genshi/Genshi-0.5.win32-py2.5.exe 2.5], [http://ftp.edgewall.com/pub/genshi/Genshi-0.5.win32-py2.4.exe 2.4], [http://ftp.edgewall.com/pub/genshi/Genshi-0.5.win32-py2.3.exe 2.3]) [[BR]] Genshi-0.5.1.win32-py2.''X''.exe ([http://ftp.edgewall.com/pub/genshi/Genshi-0.5.1.win32-py2.5.exe 2.5], [http://ftp.edgewall.com/pub/genshi/Genshi-0.5.1.win32-py2.4.exe 2.4], [http://ftp.edgewall.com/pub/genshi/Genshi-0.5.1.win32-py2.3.exe 2.3]) (check [http://genshi.edgewall.org/wiki/Download here] for latest) ||
     
    4750[[BR]]
    4851
    49  
    5052|| ''Optional Packages'' || ''Installers'' || ''^(see notes below)^'' ||
    5153|| ''PySqlite'' || pysqlite-2.4.0.win32-py2.''X''.exe ([http://initd.org/pub/software/pysqlite/releases/2.4/2.4.0/pysqlite-2.4.0.win32-py2.5.exe 2.5], [http://initd.org/pub/software/pysqlite/releases/2.4/2.4.0/pysqlite-2.4.0.win32-py2.4.exe 2.4], [http://initd.org/pub/software/pysqlite/releases/2.4/2.4.0/pysqlite-2.4.0.win32-py2.3.exe 2.3]) || ^(1)^ ||
     
    7173
    7274This method is about using `easy_install` (from Setuptools) at the command line.
    73 Ideally, once everything will have settle down, this will be a matter of doing `easy_install Trac`
    74 Don't try that yet, though, rather go through the following steps.
    75 
    76 === Setuptools ===
    77 
    78 [http://peak.telecommunity.com/DevCenter/setuptools Setuptools] makes installation of Python software easier by automatically downloading and installing Python packages from the internet.  It is also used to find and load [wiki:TracPlugins Trac's plugins].
    79 
    80 Download the setuptools installer: [http://peak.telecommunity.com/dist/ez_setup.py ez_setup.py]
    81 
    82 When the download completes double-click the "ez_setup.py" file from your download folder to install setuptools.
    83 
    84 === The command line ===
     75Ideally, once everything will have settle down, this will be a matter of doing `easy_install Trac`.
     76~~Don't try that yet, though, rather go through the following steps.~~ Seems to be working for Trac and Genshi...
     77
     78=== Windows command line ===
    8579
    8680You'll need to open a Windows command line to install some of the necessary software:
     
    8882 1. Click "Start" > "Run..." (or press Win+R)
    8983 1. Type "cmd" and click "Ok" - this opens the Windows command console
    90  1. Type "cd c:\Python24\Scripts"
    91 
    92 You should now be in the folder "C:\Python24\Scripts" where you can run the "easy_install" command to install the required software.
    93 
     84 1. Type "cd c:\Python26" (''substitute your python folder'')
     85
     86''Tip: On Vista, hold shift key, right click on desired folder, and choose 'Open Command Window Here'.  You can do the same in Windows XP with !PowerToys installed.''
     87
     88=== Setuptools ===
     89
     90[http://peak.telecommunity.com/DevCenter/setuptools Setuptools] makes installation of Python software easier by automatically downloading and installing Python packages from the internet.  It is also used to find and load [wiki:TracPlugins Trac's plugins].
     91
     92Download the setuptools installer: [http://peak.telecommunity.com/dist/ez_setup.py ez_setup.py]
     93
     94When the download completes double-click the "ez_setup.py" file from your download folder to install setuptools.
     95
     96''That didn't work for me.  I found this method on [http://stackoverflow.com/questions/309412/how-to-setup-setuptools-for-python-2-6-on-windows StackOverflow]:''
     97 * Download [http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c9.tar.gz#md5=3864c01d9c719c8924c455714492295e setuptools-0.6c9.tar.gz] and unzip to a folder outside your Python install.
     98 * Download [http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c9-py2.6.egg#md5=ca37b1ff16fa2ede6e19383e7b59245a setuptools-0.6c9-py2.6.egg] to the same folder
     99 * execute the following command at a command prompt in the same folder.
     100{{{
     101python ez_setup.py setuptools-0.6c9-py2.6.egg
     102}}}
     103
     104Now change to the new scripts directory in your command prompt (''substitute your python folder''):
     105{{{
     106cd \Python26\scripts
     107}}}
     108You should now be in the folder "C:\Python26\Scripts" where you can run the "easy_install" command to install the remaining software.
     109
     110At this point you should be able to type
     111{{{
     112easy_install Trac
     113}}}
     114to install both the latest Trac and Genshi releases.
    94115
    95116=== Installing Genshi ===
     
    102123
    103124=== Install PySQLite ===
     125
     126''Obsolete: the Trac install includes SQLite''
    104127
    105128Install the [http://pysqlite.org PySqlite] database driver: