Python est un -purpose générale, langue largement utilisée programmation de haut niveau. Ce module vise à installer la dernière version du paquet python et ses dépendances.
La commande help guide l’utilisateur à fournir ce qui est nécessaire pour accomplir la tâche. La commande de faire usage de l’aide sous la borne est donnée comme suit,
ptconfigure python help
Le cliché ci-dessous vous donne une représentation picturale de commande d’aide et il a énuméré deux paramètres que Python et Python. (Paramters sont insensibles à la casse)
kevell@corp:/# ptconfigure Python help
******************************
This command allows you to install the latest available Python in the Ubuntu
repositories.
Python, python
- install
Installs the latest version of Python
example: ptconfigure python install
------------------------------
End Help
******************************
La commande utilisée pour l’installation de module python est donnée ci-dessous,
ptconfigure python install
Est listé ci-dessous la capture d’écran pour la commande ci-dessus,
kevell@corp:/# ptconfigure python install
Install Python? (Y/N)
y
*******************************
* Pharaoh Tools *
* !Python!! *
*******************************
Reading package lists...
Building dependency tree...
Reading state information...
python is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.
[Pharaoh Logging] Package python from the Packager Apt is already installed, so not installing.
dpkg: warning: parsing file '/var/lib/dpkg/available' near line 47618 package 'ptconfigure':
missing maintainer
dpkg: warning: parsing file '/var/lib/dpkg/available' near line 47618 package 'ptconfigure':
missing architecture
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
docutils-common docutils-doc python-pygments python-roman
Suggested packages:
texlive-latex-recommended texlive-latex-base texlive-lang-french
ttf-linux-libertine ttf-bitstream-vera
The following NEW packages will be installed:
docutils-common docutils-doc python-docutils python-pygments python-roman
0 upgraded, 5 newly installed, 0 to remove and 13 not upgraded.
Need to get 2,190 kB of archives.
After this operation, 8,623 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise/main docutils-common all 0.8.1-4ubuntu1 [153 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ precise/main docutils-doc all 0.8.1-4ubuntu1 [1,289 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ precise/main python-roman all 0.8.1-4ubuntu1 [12.6 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu/ precise/main python-docutils all 0.8.1-4ubuntu1 [382 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu/ precise/main python-pygments all 1.4+dfsg-2 [353 kB]
Fetched 2,190 kB in 7s (277 kB/s)
Selecting previously unselected package docutils-common.
(Reading database ... 254879 files and directories currently installed.)
Preparing to unpack .../docutils-common_0.8.1-4ubuntu1_all.deb ...
Unpacking docutils-common (0.8.1-4ubuntu1) ...
Selecting previously unselected package docutils-doc.
Preparing to unpack .../docutils-doc_0.8.1-4ubuntu1_all.deb ...
Unpacking docutils-doc (0.8.1-4ubuntu1) ...
Selecting previously unselected package python-roman.
Preparing to unpack .../python-roman_0.8.1-4ubuntu1_all.deb ...
Unpacking python-roman (0.8.1-4ubuntu1) ...
Selecting previously unselected package python-docutils.
Preparing to unpack .../python-docutils_0.8.1-4ubuntu1_all.deb ...
Unpacking python-docutils (0.8.1-4ubuntu1) ...
Selecting previously unselected package python-pygments.
Preparing to unpack .../python-pygments_1.4+dfsg-2_all.deb ...
Unpacking python-pygments (1.4+dfsg-2) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for sgml-base (1.26+nmu4ubuntu1) ...
Processing triggers for doc-base (0.10.5) ...
Processing 1 added doc-base file...
Setting up docutils-common (0.8.1-4ubuntu1) ...
update-catalog: Suppressing action on super catalog. Invoking trigger instead.
Setting up docutils-doc (0.8.1-4ubuntu1) ...
Setting up python-roman (0.8.1-4ubuntu1) ...
Setting up python-pygments (1.4+dfsg-2) ...
Processing triggers for sgml-base (1.26+nmu4ubuntu1) ...
Setting up python-docutils (0.8.1-4ubuntu1) ...
update-alternatives: using /usr/share/docutils/scripts/python2/rst-buildhtml to provide /usr/bin/rst-buildhtml (rst-buildhtml) in auto mode
update-alternatives: using /usr/share/docutils/scripts/python2/rst2html to provide /usr/bin/rst2html (rst2html) in auto mode
update-alternatives: using /usr/share/docutils/scripts/python2/rst2latex to provide /usr/bin/rst2latex (rst2latex) in auto mode
update-alternatives: using /usr/share/docutils/scripts/python2/rst2man to provide /usr/bin/rst2man (rst2man) in auto mode
update-alternatives: using /usr/share/docutils/scripts/python2/rst2odt to provide /usr/bin/rst2odt (rst2odt) in auto mode
update-alternatives: using /usr/share/docutils/scripts/python2/rst2odt_prepstyles to provide /usr/bin/rst2odt_prepstyles (rst2odt_prepstyles) in auto mode
update-alternatives: using /usr/share/docutils/scripts/python2/rst2pseudoxml to provide /usr/bin/rst2pseudoxml (rst2pseudoxml) in auto mode
update-alternatives: using /usr/share/docutils/scripts/python2/rst2s5 to provide /usr/bin/rst2s5 (rst2s5) in auto mode
update-alternatives: using /usr/share/docutils/scripts/python2/rst2xetex to provide /usr/bin/rst2xetex (rst2xetex) in auto mode
update-alternatives: using /usr/share/docutils/scripts/python2/rst2xml to provide /usr/bin/rst2xml (rst2xml) in auto mode
update-alternatives: using /usr/share/docutils/scripts/python2/rstpep2html to provide /usr/bin/rstpep2html (rstpep2html) in auto mode
[Pharaoh Logging] Adding Package python-docutils from the Packager Apt executed correctly
... All done!
*******************************
Thanks for installing , visit www.pharaohtools.com for more
******************************
Single App Installer:
--------------------------------------------
Python: Success
------------------------------
Installer Finished
******************************
| paramètres | Autres paramètres | requis | Commentaires |
|---|---|---|---|
| ptconfigure python install | Python, python | Yes | Cette commande va installer le module python |
| Install python? ( Y/N) | Python, python | Y | Si l’utilisateur saisit Y, ce modue contrôles pour le paquet déjà installé, se il a été mis à jour sorties à la nouvelle version ou bien il installe le nouveau package. |
| Install python? ( Y/N) | Python, python | N | Si l’utilisateur entre N, l’installation a été interrompue.| |