# HG changeset patch # User Mads Kiilerich # Date 1442364808 -7200 # Node ID ae9ab4c92d4637d31bdd10b1e582e1c84dcf5d94 # Parent c79e4f89bfd30ce87f0e04024e990b88864d5ea4 setup: explicitly use python2 in examples in the documentation diff -r c79e4f89bfd3 -r ae9ab4c92d46 README.rst --- a/README.rst Mon Sep 14 23:06:28 2015 +0200 +++ b/README.rst Wed Sep 16 02:53:28 2015 +0200 @@ -185,7 +185,7 @@ This location will depend on where you installed Kallithea. If you installed via:: - python setup.py install + python2 setup.py install then you will find this location at ``$VIRTUAL_ENV/lib/python2.7/site-packages/Kallithea-0.1-py2.7.egg/kallithea``. @@ -201,7 +201,7 @@ cd /path/to/kallithea cp /path/to/rhodecode/rhodecode.db kallithea.db pip install sqlalchemy-migrate - python kallithea/bin/rebranddb.py sqlite:///kallithea.db + python2 kallithea/bin/rebranddb.py sqlite:///kallithea.db .. Note:: diff -r c79e4f89bfd3 -r ae9ab4c92d46 docs/contributing.rst --- a/docs/contributing.rst Mon Sep 14 23:06:28 2015 +0200 +++ b/docs/contributing.rst Wed Sep 16 02:53:28 2015 +0200 @@ -34,7 +34,7 @@ cd kallithea virtualenv ../kallithea-venv source ../kallithea-venv/bin/activate - python setup.py develop + python2 setup.py develop paster make-config Kallithea my.ini paster setup-db my.ini --user=user --email=user@example.com --password=password --repos=/tmp paster serve my.ini --reload & diff -r c79e4f89bfd3 -r ae9ab4c92d46 docs/installation.rst --- a/docs/installation.rst Mon Sep 14 23:06:28 2015 +0200 +++ b/docs/installation.rst Wed Sep 16 02:53:28 2015 +0200 @@ -39,8 +39,8 @@ cd kallithea virtualenv ../kallithea-venv source ../kallithea-venv/bin/activate - python setup.py develop - python setup.py compile_catalog # for translation of the UI + python2 setup.py develop + python2 setup.py compile_catalog # for translation of the UI You can now proceed to :ref:`setup`. @@ -84,7 +84,7 @@ Alternatively, download a .tar.gz from http://pypi.python.org/pypi/Kallithea, extract it and run:: - python setup.py install + python2 setup.py install - This will install Kallithea together with pylons_ and all other required python libraries into the activated virtualenv. diff -r c79e4f89bfd3 -r ae9ab4c92d46 docs/installation_iis.rst --- a/docs/installation_iis.rst Mon Sep 14 23:06:28 2015 +0200 +++ b/docs/installation_iis.rst Wed Sep 16 02:53:28 2015 +0200 @@ -55,7 +55,7 @@ has been generated, it is necessary to run the following command due to the way that ISAPI-WSGI is made:: - python dispatch.py install + python2 dispatch.py install This accomplishes two things: generating an ISAPI compliant DLL file, ``_dispatch.dll``, and installing a script map handler into IIS for the @@ -103,7 +103,7 @@ In order to dump output from WSGI using ``win32traceutil`` it is sufficient to type the following in a console window:: - python -m win32traceutil + python2 -m win32traceutil and any exceptions occurring in the WSGI layer and below (i.e. in the Kallithea application itself) that are uncaught, will be printed here complete with stack diff -r c79e4f89bfd3 -r ae9ab4c92d46 docs/installation_win.rst --- a/docs/installation_win.rst Mon Sep 14 23:06:28 2015 +0200 +++ b/docs/installation_win.rst Wed Sep 16 02:53:28 2015 +0200 @@ -71,7 +71,7 @@ - Go to https://bootstrap.pypa.io - Right-click on get-pip.py and choose Saves as... -- Run "python get-pip.py" in the folder where you downloaded get-pip.py (may require admin access). +- Run "python2 get-pip.py" in the folder where you downloaded get-pip.py (may require admin access). .. note:: diff -r c79e4f89bfd3 -r ae9ab4c92d46 docs/installation_win_old.rst --- a/docs/installation_win_old.rst Mon Sep 14 23:06:28 2015 +0200 +++ b/docs/installation_win_old.rst Wed Sep 16 02:53:28 2015 +0200 @@ -151,7 +151,7 @@ do so, open a CMD (Python Path should be included in Step3), navigate where you downloaded "virtualenv.py", and write:: - python virtualenv.py C:\Kallithea\Env + python2 virtualenv.py C:\Kallithea\Env (--no-site-packages is now the default behaviour of virtualenv, no need to include it) diff -r c79e4f89bfd3 -r ae9ab4c92d46 kallithea/i18n/how_to --- a/kallithea/i18n/how_to Mon Sep 14 23:06:28 2015 +0200 +++ b/kallithea/i18n/how_to Wed Sep 16 02:53:28 2015 +0200 @@ -50,11 +50,11 @@ In the prepared development environment, run the following to ensure all translation strings are extracted and up-to-date:: - python setup.py extract_messages + python2 setup.py extract_messages Create new language by executing following command:: - python setup.py init_catalog -l + python2 setup.py init_catalog -l This creates a new translation under directory `kallithea/i18n/` based on the translation template file, `kallithea/i18n/kallithea.pot`. @@ -67,7 +67,7 @@ Finally, compile the translations:: - python setup.py compile_catalog -l + python2 setup.py compile_catalog -l Updating translations @@ -75,11 +75,11 @@ Extract the latest versions of strings for translation by running:: - python setup.py extract_messages + python2 setup.py extract_messages Update the PO file by doing:: - python setup.py update_catalog -l + python2 setup.py update_catalog -l Edit the new updated translation file. Repeat all steps after `init_catalog` step from new translation instructions