##// END OF EJS Templates
setup: explicitly use python2 in examples in the documentation
Mads Kiilerich -
r5502:ae9ab4c9 stable
parent child Browse files
Show More
@@ -185,7 +185,7 b' To run Kallithea on a RhodeCode database'
185 185 This location will depend on where you installed Kallithea. If you installed
186 186 via::
187 187
188 python setup.py install
188 python2 setup.py install
189 189
190 190 then you will find this location at
191 191 ``$VIRTUAL_ENV/lib/python2.7/site-packages/Kallithea-0.1-py2.7.egg/kallithea``.
@@ -201,7 +201,7 b' database, using the database string you '
201 201 cd /path/to/kallithea
202 202 cp /path/to/rhodecode/rhodecode.db kallithea.db
203 203 pip install sqlalchemy-migrate
204 python kallithea/bin/rebranddb.py sqlite:///kallithea.db
204 python2 kallithea/bin/rebranddb.py sqlite:///kallithea.db
205 205
206 206 .. Note::
207 207
@@ -34,7 +34,7 b' To get started with development::'
34 34 cd kallithea
35 35 virtualenv ../kallithea-venv
36 36 source ../kallithea-venv/bin/activate
37 python setup.py develop
37 python2 setup.py develop
38 38 paster make-config Kallithea my.ini
39 39 paster setup-db my.ini --user=user --email=user@example.com --password=password --repos=/tmp
40 40 paster serve my.ini --reload &
@@ -39,8 +39,8 b' repository, follow the instructions belo'
39 39 cd kallithea
40 40 virtualenv ../kallithea-venv
41 41 source ../kallithea-venv/bin/activate
42 python setup.py develop
43 python setup.py compile_catalog # for translation of the UI
42 python2 setup.py develop
43 python2 setup.py compile_catalog # for translation of the UI
44 44
45 45 You can now proceed to :ref:`setup`.
46 46
@@ -84,7 +84,7 b' An additional benefit of virtualenv_ is '
84 84 Alternatively, download a .tar.gz from http://pypi.python.org/pypi/Kallithea,
85 85 extract it and run::
86 86
87 python setup.py install
87 python2 setup.py install
88 88
89 89 - This will install Kallithea together with pylons_ and all other required
90 90 python libraries into the activated virtualenv.
@@ -55,7 +55,7 b' the necessary components to finalize an '
55 55 has been generated, it is necessary to run the following command due to the way
56 56 that ISAPI-WSGI is made::
57 57
58 python dispatch.py install
58 python2 dispatch.py install
59 59
60 60 This accomplishes two things: generating an ISAPI compliant DLL file,
61 61 ``_dispatch.dll``, and installing a script map handler into IIS for the
@@ -103,7 +103,7 b' ISAPI-WSGI wrapper above uses ``win32tra'
103 103 In order to dump output from WSGI using ``win32traceutil`` it is sufficient to
104 104 type the following in a console window::
105 105
106 python -m win32traceutil
106 python2 -m win32traceutil
107 107
108 108 and any exceptions occurring in the WSGI layer and below (i.e. in the Kallithea
109 109 application itself) that are uncaught, will be printed here complete with stack
@@ -71,7 +71,7 b' If it was not installed or if you are us'
71 71
72 72 - Go to https://bootstrap.pypa.io
73 73 - Right-click on get-pip.py and choose Saves as...
74 - Run "python get-pip.py" in the folder where you downloaded get-pip.py (may require admin access).
74 - Run "python2 get-pip.py" in the folder where you downloaded get-pip.py (may require admin access).
75 75
76 76 .. note::
77 77
@@ -151,7 +151,7 b' Create a virtual Python environment in C'
151 151 do so, open a CMD (Python Path should be included in Step3), navigate
152 152 where you downloaded "virtualenv.py", and write::
153 153
154 python virtualenv.py C:\Kallithea\Env
154 python2 virtualenv.py C:\Kallithea\Env
155 155
156 156 (--no-site-packages is now the default behaviour of virtualenv, no need
157 157 to include it)
@@ -50,11 +50,11 b' Manual creation of a new language transl'
50 50 In the prepared development environment, run the following to ensure
51 51 all translation strings are extracted and up-to-date::
52 52
53 python setup.py extract_messages
53 python2 setup.py extract_messages
54 54
55 55 Create new language by executing following command::
56 56
57 python setup.py init_catalog -l <new_language_code>
57 python2 setup.py init_catalog -l <new_language_code>
58 58
59 59 This creates a new translation under directory `kallithea/i18n/<new_language_code>`
60 60 based on the translation template file, `kallithea/i18n/kallithea.pot`.
@@ -67,7 +67,7 b' translation file for errors by executing'
67 67
68 68 Finally, compile the translations::
69 69
70 python setup.py compile_catalog -l <new_language_code>
70 python2 setup.py compile_catalog -l <new_language_code>
71 71
72 72
73 73 Updating translations
@@ -75,11 +75,11 b' Updating translations'
75 75
76 76 Extract the latest versions of strings for translation by running::
77 77
78 python setup.py extract_messages
78 python2 setup.py extract_messages
79 79
80 80 Update the PO file by doing::
81 81
82 python setup.py update_catalog -l <new_language_code>
82 python2 setup.py update_catalog -l <new_language_code>
83 83
84 84 Edit the new updated translation file. Repeat all steps after `init_catalog` step from
85 85 new translation instructions
General Comments 0
You need to be logged in to leave comments. Login now