Skip to content

Commit 233b312

Browse files
committed
Added manual upgrade instructions
1 parent fe11583 commit 233b312

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

README.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,20 +42,28 @@ Installation using pip
4242
----------------------
4343
For easy installation, use `pip <http://www.pip-installer.org/>`_ as root::
4444

45+
.. code-block:: bash
46+
4547
$ [sudo] pip install Py-BOBYQA
4648

4749
or alternatively *easy_install*::
4850

51+
.. code-block:: bash
52+
4953
$ [sudo] easy_install Py-BOBYQA
5054

5155
If you do not have root privileges or you want to install Py-BOBYQA for your private use, you can use::
5256

57+
.. code-block:: bash
58+
5359
$ pip install --user Py-BOBYQA
5460

5561
which will install Py-BOBYQA in your home directory.
5662

5763
Note that if an older install of Py-BOBYQA is present on your system you can use::
5864

65+
.. code-block:: bash
66+
5967
$ [sudo] pip install --upgrade Py-BOBYQA
6068

6169
to upgrade Py-BOBYQA to the latest version.
@@ -83,6 +91,13 @@ If you do not have root privileges or you want to install Py-BOBYQA for your pri
8391
8492
instead.
8593

94+
To upgrade Py-BOBYQA to the latest version, navigate to the top-level directory (i.e. the one containing :code:`setup.py`) and rerun the installation using :code:`pip`, as above:
95+
96+
.. code-block:: bash
97+
98+
$ git pull
99+
$ [sudo] pip install . # with admin privileges
100+
86101
Testing
87102
-------
88103
If you installed Py-BOBYQA manually, you can test your installation by running:

docs/install.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,14 @@ If you do not have root privileges or you want to install Py-BOBYQA for your pri
5959
6060
$ pip install --user .
6161
62-
instead.
62+
instead.
63+
64+
To upgrade Py-BOBYQA to the latest version, navigate to the top-level directory (i.e. the one containing :code:`setup.py`) and rerun the installation using :code:`pip`, as above:
65+
66+
.. code-block:: bash
67+
68+
$ git pull
69+
$ [sudo] pip install . # with admin privileges
6370
6471
Testing
6572
-------

0 commit comments

Comments
 (0)