417
edits
m (→General idea of the method: Fix inaccurate wording) |
(→How to update: Improve formatting by splitting big <pre> blocks) |
||
Line 582: | Line 582: | ||
Note: ''none of the following should be run as root.'' | Note: ''none of the following should be run as root.'' | ||
<ol style="list-style-type: decimal"><li>First case: FFGo was installed in the virtual environment under ~/my-venvs/venv1 | <ol style="list-style-type: decimal"> | ||
< | <li><p>First case: FFGo was installed in the virtual environment under | ||
% ~/my-venvs/venv1/bin/pip list | <tt>~/my-venvs/venv1</tt>.</p> | ||
<p>Examine what is installed in <tt>~/my-venvs/venv1</tt>:</p> | |||
<pre>% ~/my-venvs/venv1/bin/pip list | |||
CondConfigParser (1.0.2) | CondConfigParser (1.0.2) | ||
FFGo (1.9.0) | FFGo (1.9.0) | ||
Line 590: | Line 593: | ||
Pillow (3.1.0) | Pillow (3.1.0) | ||
pip (1.5.6) | pip (1.5.6) | ||
setuptools (18.8) | setuptools (18.8)</pre> | ||
<p>Now, let's see what can be updated:</p> | |||
% ~/my-venvs/venv1/bin/pip list --outdated | <pre>% ~/my-venvs/venv1/bin/pip list --outdated | ||
setuptools (Current: 18.8 Latest: 19.5) | setuptools (Current: 18.8 Latest: 19.5) | ||
pip (Current: 1.5.6 Latest: 8.0.2) | pip (Current: 1.5.6 Latest: 8.0.2)</pre> | ||
<p>Only <tt>setuptools</tt> and <tt>pip</tt> are out-of-date in this venv, | |||
% ~/my-venvs/venv1/bin/pip install --upgrade setuptools pip | let's upgrade them:</p> | ||
<pre>% ~/my-venvs/venv1/bin/pip install --upgrade setuptools pip | |||
Downloading/unpacking setuptools from https://pypi.python.org/packages/3.5/s/setuptools/setuptools-19.5-py2.py3-none-any.whl#md5=c44407cb10f9b231f5a05908dea1a803 | Downloading/unpacking setuptools from https://pypi.python.org/packages/3.5/s/setuptools/setuptools-19.5-py2.py3-none-any.whl#md5=c44407cb10f9b231f5a05908dea1a803 | ||
Downloading setuptools-19.5-py2.py3-none-any.whl (471kB): 471kB downloaded | Downloading setuptools-19.5-py2.py3-none-any.whl (471kB): 471kB downloaded | ||
Line 607: | Line 611: | ||
Successfully installed setuptools pip | Successfully installed setuptools pip | ||
Cleaning up... | Cleaning up...</pre> | ||
</pre> | |||
</li> | </li> | ||
<li>Second case: FFGo is used directly from a clone of its Git repository by means of the [https://github.com/frougon/FFGo/blob/master/ffgo-launcher.py ffgo-launcher.py] script | <li><p>Second case: FFGo is used directly from a clone of its Git repository | ||
by means of the | |||
[https://github.com/frougon/FFGo/blob/master/ffgo-launcher.py ffgo-launcher.py] | |||
script.</p> | |||
< | <p>The procedure for updating the software that is installed in the venv is | ||
the same as in the first case:</p> | |||
% ~/my-venvs/venv2/bin/pip list --outdated | <pre>% ~/my-venvs/venv2/bin/pip list --outdated | ||
setuptools (Current: 18.8 Latest: 19.5) | setuptools (Current: 18.8 Latest: 19.5) | ||
pip (Current: 1.5.6 Latest: 8.0.2) | pip (Current: 1.5.6 Latest: 8.0.2)</pre> | ||
<p>Again, the same two packages need an update; all the others are at their | |||
latest upstream stable version. Let's upgrade the two packages:</p> | |||
% ~/my-venvs/venv2/bin/pip install --upgrade setuptools pip | <pre>% ~/my-venvs/venv2/bin/pip install --upgrade setuptools pip | ||
Downloading/unpacking setuptools from https://pypi.python.org/packages/3.5/s/setuptools/setuptools-19.5-py2.py3-none-any.whl#md5=c44407cb10f9b231f5a05908dea1a803 | Downloading/unpacking setuptools from https://pypi.python.org/packages/3.5/s/setuptools/setuptools-19.5-py2.py3-none-any.whl#md5=c44407cb10f9b231f5a05908dea1a803 | ||
Line 628: | Line 633: | ||
Successfully installed setuptools pip | Successfully installed setuptools pip | ||
Cleaning up... | Cleaning up...</pre> | ||
<p>FFGo was not installed via <tt>pip</tt> in the venv; we are using the Git | |||
repo for FFGo. Let's update our clone of FFGo's Git repository:</p> | |||
<pre>% cd ~/src/ffgo.git | |||
~/src/ffgo.git % git pull | ~/src/ffgo.git % git pull | ||
[...] | [...]</pre> | ||
<p>Always run <tt>make</tt> after updating your clone of FFGo's Git | |||
repository:</p> | |||
~/src/ffgo.git % make | <pre>~/src/ffgo.git % make | ||
make -C share/icons | make -C share/icons | ||
make[1]: Entering directory '/home/flo/src/ffgo.git/share/icons' | make[1]: Entering directory '/home/flo/src/ffgo.git/share/icons' | ||
Line 654: | Line 657: | ||
make[1]: Nothing to be done for 'update-mo'. | make[1]: Nothing to be done for 'update-mo'. | ||
make[1]: Leaving directory '/home/flo/src/ffgo.git/ffgo/data/locale' | make[1]: Leaving directory '/home/flo/src/ffgo.git/ffgo/data/locale' | ||
~/src/ffgo.git % | ~/src/ffgo.git %</pre> | ||
<p>Everything is now up-to-date.</p> | |||
</li></ol> | </li></ol> | ||
edits