##// END OF EJS Templates
i18n: make sure 'en' in Accept-Language is recognized as having 100% coverage...
i18n: make sure 'en' in Accept-Language is recognized as having 100% coverage The workaround in 7c7d6b5c07c7 no longer works after upstream addressed the main issue and released the changes in TurboGears 2.4.3 . Setting `i18n.native = en` in the .ini works as a workaround. The native language for translations is an implementation detail that users shouldn't have to configure, so we define it as a default value without making it explicit in the generated .ini template files. Note that even though TG will figure out that languages like `en_US` should fall back to using the `en` `kallithea.mo`, it doesn't consider `en_US` native if `en` is in the native list but `en_US` isn't. We thus include the most common aliases for `en` in the list.

File last commit:

r8089:01aca0a4 default
r8766:84b4fc9d stable
Show More
installation_win_old.rst
250 lines | 8.3 KiB | text/x-rst | RstLexer
/ docs / installation_win_old.rst
Mads Kiilerich
docs: rename docs/installation_win.rst to docs/installation_win_old.rst, preparing for new docs
r4814 .. _installation_win_old:
Mads Kiilerich
py3: officially support Python 3...
r8089 .. warning:: This section is outdated and needs updating for Python 3.
Søren Løvborg
docs: restructure Kallithea upgrade instructions...
r5917 ==========================================================
Installation on Windows (XP/Vista/Server 2003/Server 2008)
==========================================================
Mads Kiilerich
docs: rename docs/installation_win.rst to docs/installation_win_old.rst, preparing for new docs
r4814
Mads Kiilerich
docs: consistent spacing around headings...
r5433
Mads Kiilerich
docs: cleanup of casing, markup and spacing of headings...
r5413 First-time install
Mads Kiilerich
docs: use consistent style for section titles
r5568 ------------------
Mads Kiilerich
docs: rename docs/installation_win.rst to docs/installation_win_old.rst, preparing for new docs
r4814
Søren Løvborg
docs: spelling, grammar, content and typography
r5425 Target OS: Windows XP SP3 32-bit English (Clean installation)
Mads Kiilerich
docs: rename docs/installation_win.rst to docs/installation_win_old.rst, preparing for new docs
r4814 + All Windows Updates until 24-may-2012
.. note::
Søren Løvborg
docs: spelling, grammar, content and typography
r5425 This installation is for 32-bit systems, for 64-bit Windows you might need
to download proper 64-bit versions of the different packages (Windows Installer, Win32py extensions)
Mads Kiilerich
docs: rename docs/installation_win.rst to docs/installation_win_old.rst, preparing for new docs
r4814 plus some extra tweaks.
Søren Løvborg
docs: spelling, grammar, content and typography
r5425 These extra steps haven been marked as "64-bit".
Mads Kiilerich
docs: rename docs/installation_win.rst to docs/installation_win_old.rst, preparing for new docs
r4814 Tested on Windows Server 2008 R2 SP1, 9-feb-2013.
Søren Løvborg
docs: spelling, grammar, content and typography
r5425 If you run into any 64-bit related problems, please check these pages:
Mads Kiilerich
docs: more consistent use of --
r5435
Mads Kiilerich
docs: rename docs/installation_win.rst to docs/installation_win_old.rst, preparing for new docs
r4814 - http://blog.victorjabur.com/2011/06/05/compiling-python-2-7-modules-on-windows-32-and-64-using-msvc-2008-express/
- http://bugs.python.org/issue7511
Mads Kiilerich
docs: more consistent use of --
r5435 Step 1 -- Install Visual Studio 2008 Express
Mads Kiilerich
docs: use consistent style for section titles
r5568 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Mads Kiilerich
docs: rename docs/installation_win.rst to docs/installation_win_old.rst, preparing for new docs
r4814
Optional: You can also install MinGW, but VS2008 installation is easier.
Download "Visual C++ 2008 Express Edition with SP1" from:
Denis Blanchette
docs: update Windows installation documentation for Windows 7/Server 2008 R2 and newer...
r4815 http://download.microsoft.com/download/E/8/E/E8EEB394-7F42-4963-A2D8-29559B738298/VS2008ExpressWithSP1ENUX1504728.iso
(if not found or relocated, google for "visual studio 2008 express" for updated link. This link was taken from http://stackoverflow.com/questions/15318560/visual-c-2008-express-download-link-dead)
Mads Kiilerich
docs: rename docs/installation_win.rst to docs/installation_win_old.rst, preparing for new docs
r4814
You can also download full ISO file for offline installation, just
Mads Kiilerich
docs: more consistent use of --
r5435 choose "All -- Offline Install ISO image file" in the previous page and
Mads Kiilerich
docs: rename docs/installation_win.rst to docs/installation_win_old.rst, preparing for new docs
r4814 choose "Visual C++ 2008 Express" when installing.
.. note::
Using other versions of Visual Studio will lead to random crashes.
You must use Visual Studio 2008!"
.. note::
Silverlight Runtime and SQL Server 2008 Express Edition are not
required, you can uncheck them
.. note::
Søren Løvborg
docs: spelling, grammar, content and typography
r5425 64-bit: You also need to install the Microsoft Windows SDK for .NET 3.5 SP1 (.NET 4.0 won't work).
Mads Kiilerich
docs: rename docs/installation_win.rst to docs/installation_win_old.rst, preparing for new docs
r4814 Download from: http://www.microsoft.com/en-us/download/details.aspx?id=3138
.. note::
Søren Løvborg
docs: spelling, grammar, content and typography
r5425 64-bit: You also need to copy and rename a .bat file to make the Visual C++ compiler work.
I am not sure why this is not necessary for 32-bit.
Mads Kiilerich
docs: rename docs/installation_win.rst to docs/installation_win_old.rst, preparing for new docs
r4814 Copy C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\vcvars64.bat to C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\amd64\vcvarsamd64.bat
Søren Løvborg
docs: spelling, grammar, content and typography
r5425 Step 2 -- Install Python
Mads Kiilerich
docs: use consistent style for section titles
r5568 ^^^^^^^^^^^^^^^^^^^^^^^^
Mads Kiilerich
docs: rename docs/installation_win.rst to docs/installation_win_old.rst, preparing for new docs
r4814
Mads Kiilerich
py3: officially support Python 3...
r8089 Install Python 3.8.x from:
Mads Kiilerich
docs: rename docs/installation_win.rst to docs/installation_win_old.rst, preparing for new docs
r4814 http://www.python.org/download/
Remember the specific major and minor version installed, because it will
Mads Kiilerich
py3: officially support Python 3...
r8089 be needed in the next step. In this case, it is "3.8".
Mads Kiilerich
docs: rename docs/installation_win.rst to docs/installation_win_old.rst, preparing for new docs
r4814
.. note::
Søren Løvborg
docs: spelling, grammar, content and typography
r5425 64-bit: Just download and install the 64-bit version of python.
Step 3 -- Install Win32py extensions
Mads Kiilerich
docs: use consistent style for section titles
r5568 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Mads Kiilerich
docs: rename docs/installation_win.rst to docs/installation_win_old.rst, preparing for new docs
r4814
Download pywin32 from:
http://sourceforge.net/projects/pywin32/files/
- Click on "pywin32" folder
Mads Kiilerich
py3: officially support Python 3...
r8089 - Click on the first folder (in this case, Build 218, maybe newer when you try)
- Choose the file ending with ".win32-py3.x.exe" -> x being the minor
Mads Kiilerich
docs: rename docs/installation_win.rst to docs/installation_win_old.rst, preparing for new docs
r4814 version of Python you installed (in this case, 7)
When writing this guide, the file was:
Mads Kiilerich
py3: officially support Python 3...
r8089 http://sourceforge.net/projects/pywin32/files/pywin32/Build%20218/pywin32-218.win-amd64-py3.8.exe/download
Mads Kiilerich
docs: rename docs/installation_win.rst to docs/installation_win_old.rst, preparing for new docs
r4814
.. note::
Søren Løvborg
docs: spelling, grammar, content and typography
r5425 64-bit: Download and install the 64-bit version.
Mads Kiilerich
docs: rename docs/installation_win.rst to docs/installation_win_old.rst, preparing for new docs
r4814 At the time of writing you can find this at:
Mads Kiilerich
py3: officially support Python 3...
r8089 http://sourceforge.net/projects/pywin32/files/pywin32/Build%20218/pywin32-218.win-amd64-py3.8.exe/download
Mads Kiilerich
docs: rename docs/installation_win.rst to docs/installation_win_old.rst, preparing for new docs
r4814
Søren Løvborg
docs: spelling, grammar, content and typography
r5425 Step 4 -- Python BIN
Mads Kiilerich
docs: use consistent style for section titles
r5568 ^^^^^^^^^^^^^^^^^^^^
Mads Kiilerich
docs: rename docs/installation_win.rst to docs/installation_win_old.rst, preparing for new docs
r4814
Add Python BIN folder to the path
You have to add the Python folder to the path, you can do it manually
(editing "PATH" environment variable) or using Windows Support Tools
that came preinstalled in Vista/7 and can be installed in Windows XP.
- Using support tools on WINDOWS XP:
If you use Windows XP you can install them using Windows XP CD and
navigating to \SUPPORT\TOOLS. There, execute Setup.EXE (not MSI).
Afterwards, open a CMD and type::
SETX PATH "%PATH%;[your-python-path]" -M
Close CMD (the path variable will be updated then)
- Using support tools on WINDOWS Vista/7:
Open a CMD and type::
SETX PATH "%PATH%;[your-python-path]" /M
Please substitute [your-python-path] with your Python installation path.
Mads Kiilerich
py3: officially support Python 3...
r8089 Typically: C:\\Python38
Mads Kiilerich
docs: rename docs/installation_win.rst to docs/installation_win_old.rst, preparing for new docs
r4814
Søren Løvborg
docs: spelling, grammar, content and typography
r5425 Step 5 -- Kallithea folder structure
Mads Kiilerich
docs: use consistent style for section titles
r5568 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Mads Kiilerich
docs: rename docs/installation_win.rst to docs/installation_win_old.rst, preparing for new docs
r4814
Create a Kallithea folder structure
This is only a example to install Kallithea, you can of course change
it. However, this guide will follow the proposed structure, so please
later adapt the paths if you change them. My recommendation is to use
folders with NO SPACES. But you can try if you are brave...
Create the following folder structure::
C:\Kallithea
C:\Kallithea\Bin
C:\Kallithea\Env
C:\Kallithea\Repos
Søren Løvborg
docs: spelling, grammar, content and typography
r5425 Step 6 -- Install virtualenv
Mads Kiilerich
docs: use consistent style for section titles
r5568 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Mads Kiilerich
docs: rename docs/installation_win.rst to docs/installation_win_old.rst, preparing for new docs
r4814
Mads Kiilerich
py3: use "python3 -m venv" instead of virtualenv package
r8073 Create a virtual Python environment in C:\\Kallithea\\Env (or similar). To
do so, open a CMD (Python Path should be included in Step3), and write::
Mads Kiilerich
docs: rename docs/installation_win.rst to docs/installation_win_old.rst, preparing for new docs
r4814
Mads Kiilerich
py3: use "python3 -m venv" instead of virtualenv package
r8073 python3 -m venv C:\Kallithea\Env
Mads Kiilerich
docs: rename docs/installation_win.rst to docs/installation_win_old.rst, preparing for new docs
r4814
Søren Løvborg
docs: spelling, grammar, content and typography
r5425 Step 7 -- Install Kallithea
Mads Kiilerich
docs: use consistent style for section titles
r5568 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
Mads Kiilerich
docs: rename docs/installation_win.rst to docs/installation_win_old.rst, preparing for new docs
r4814
Finally, install Kallithea
Close previously opened command prompt/s, and open a Visual Studio 2008
Command Prompt (**IMPORTANT!!**). To do so, go to Start Menu, and then open
"Microsoft Visual C++ 2008 Express Edition" -> "Visual Studio Tools" ->
"Visual Studio 2008 Command Prompt"
.. note::
Søren Løvborg
docs: spelling, grammar, content and typography
r5425 64-bit: For 64-bit you need to modify the shortcut that is used to start the
Mads Kiilerich
docs: rename docs/installation_win.rst to docs/installation_win_old.rst, preparing for new docs
r4814 Visual Studio 2008 Command Prompt. Use right-mouse click to open properties.
Change commandline from::
%comspec% /k ""C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"" x86
to::
%comspec% /k ""C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"" amd64
In that CMD (loaded with VS2008 PATHs) type::
cd C:\Kallithea\Env\Scripts (or similar)
activate
Mads Kiilerich
docs: add advice of upgrading pip and setuptools in new virtualenvs...
r5519 pip install --upgrade pip setuptools
Mads Kiilerich
docs: rename docs/installation_win.rst to docs/installation_win_old.rst, preparing for new docs
r4814
The prompt will change into "(Env) C:\\Kallithea\\Env\\Scripts" or similar
(depending of your folder structure). Then type::
pip install kallithea
(long step, please wait until fully complete)
Some warnings will appear, don't worry as they are normal.
Søren Løvborg
docs: spelling, grammar, content and typography
r5425 Step 8 -- Configuring Kallithea
Mads Kiilerich
docs: use consistent style for section titles
r5568 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Mads Kiilerich
docs: rename docs/installation_win.rst to docs/installation_win_old.rst, preparing for new docs
r4814
steps taken from http://packages.python.org/Kallithea/setup.html
You have to use the same Visual Studio 2008 command prompt as Step7, so
if you closed it reopen it following the same commands (including the
"activate" one). When ready, just type::
cd C:\Kallithea\Bin
Thomas De Schampheleire
cli: convert 'gearbox make-config' into 'kallithea-cli config-create'...
r7327 kallithea-cli config-create my.ini
Mads Kiilerich
docs: rename docs/installation_win.rst to docs/installation_win_old.rst, preparing for new docs
r4814
Thomas De Schampheleire
docs: align use of 'my.ini' as configfile placeholder
r7310 Then, you must edit my.ini to fit your needs (network address and
Mads Kiilerich
docs: rename docs/installation_win.rst to docs/installation_win_old.rst, preparing for new docs
r4814 port, mail settings, database, whatever). I recommend using NotePad++
(free) or similar text editor, as it handles well the EndOfLine
character differences between Unix and Windows
(http://notepad-plus-plus.org/)
For the sake of simplicity lets run it with the default settings. After
your edits (if any), in the previous Command Prompt, type::
Thomas De Schampheleire
cli: convert 'gearbox setup-db' into 'kallithea-cli db-create'
r7335 kallithea-cli db-create -c my.ini
Mads Kiilerich
docs: rename docs/installation_win.rst to docs/installation_win_old.rst, preparing for new docs
r4814
Søren Løvborg
docs: restructure Kallithea upgrade instructions...
r5917 .. warning:: This time a *new* database will be installed. You must
follow a different process to later :ref:`upgrade <upgrade>`
to a newer Kallithea version.
Mads Kiilerich
docs: rename docs/installation_win.rst to docs/installation_win_old.rst, preparing for new docs
r4814
The script will ask you for confirmation about creating a NEW database,
answer yes (y)
The script will ask you for repository path, answer C:\\Kallithea\\Repos
(or similar)
The script will ask you for admin username and password, answer "admin"
+ "123456" (or whatever you want)
The script will ask you for admin mail, answer "admin@xxxx.com" (or
whatever you want)
If you make some mistake and the script does not end, don't worry, start
it again.
Søren Løvborg
docs: spelling, grammar, content and typography
r5425 Step 9 -- Running Kallithea
Mads Kiilerich
docs: use consistent style for section titles
r5568 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
Mads Kiilerich
docs: rename docs/installation_win.rst to docs/installation_win_old.rst, preparing for new docs
r4814
In the previous command prompt, being in the C:\\Kallithea\\Bin folder,
just type::
Thomas De Schampheleire
docs: align use of 'my.ini' as configfile placeholder
r7310 gearbox serve -c my.ini
Mads Kiilerich
docs: rename docs/installation_win.rst to docs/installation_win_old.rst, preparing for new docs
r4814
Open yout web server, and go to http://127.0.0.1:5000
It works!! :-)
Remark:
If it does not work first time, just Ctrl-C the CMD process and start it
again. Don't forget the "http://" in Internet Explorer
What this Guide does not cover:
- Installing Celery
- Running Kallithea as Windows Service. You can investigate here:
- http://pypi.python.org/pypi/wsgisvc
- http://ryrobes.com/python/running-python-scripts-as-a-windows-service/
- http://wiki.pylonshq.com/display/pylonscookbook/How+to+run+Pylons+as+a+Windows+service
- Using Apache. You can investigate here:
- https://groups.google.com/group/rhodecode/msg/c433074e813ffdc4