17.12.2012 Views

Programmation PYTHON - Zenk - Security - Repository

Programmation PYTHON - Zenk - Security - Repository

Programmation PYTHON - Zenk - Security - Repository

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Écran d’aide du fichier configure de Python<br />

Environnement de développement<br />

CHAPITRE 3<br />

$ ./configure --help<br />

'configure' configures python 2.6 to adapt to many kinds of systems.<br />

Usage: ./configure [OPTION]... [VAR=VALUE]...<br />

To assign environment variables (e.g., CC, CFLAGS...), specify them as<br />

VAR=VALUE. See below for descriptions of some of the useful variables.<br />

Defaults for the options are specified in brackets.<br />

Configuration:<br />

-h, --help display this help and exit<br />

[...]<br />

-n, --no-create do not create output files<br />

--srcdir=DIR find the sources in DIR [configure dir or '..']<br />

Installation directories:<br />

--prefix=PREFIX install architecture-independent files in<br />

PREFIX<br />

[/usr/local]<br />

--exec-prefix=EPREFIX install architecture-dependent files in<br />

EPREFIX<br />

[PREFIX]<br />

[...]<br />

L’écran d’aide, comme pour les prochains extraits, a été largement tronqué. L’option<br />

la plus utilisée est l’option prefix qui définit le répertoire cible de l’installation. Le<br />

script y recopiera le résultat de la compilation dans un sous-répertoire bin et les<br />

bibliothèques Python dans un sous-répertoire lib. Le préfixe par défaut étant /usr/<br />

local, le binaire exécutable Python sera installé dans /usr/local/bin et les bibliothèques<br />

dans /usr/local/lib. Mais il est fréquent de modifier ce préfixe pour installer<br />

Python directement dans le répertoire /usr.<br />

Exécution de configure<br />

$ ./configure --prefix=/usr<br />

checking MACHDEP... linux2<br />

checking EXTRAPLATDIR...<br />

checking for --without-gcc... no<br />

[...]<br />

configure: creating ./config.status<br />

config.status: creating Makefile.pre<br />

config.status: creating Modules/Setup.config<br />

config.status: creating pyconfig.h<br />

35

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!