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.

36<br />

Découverte de Python<br />

PREMIÈRE PARTIE<br />

config.status: pyconfig.h is unchanged<br />

creating Setup<br />

creating Setup.local<br />

creating Makefile<br />

Une fois le script configure exécuté avec succès, il ne reste plus qu’à compiler et installer<br />

Python, par le biais des commandes make et make install.<br />

Compilation et installation de Python<br />

Ces deux étapes entièrement automatiques peuvent prendre un certain temps en<br />

fonction de la puissance de votre machine.<br />

Compilation et installation<br />

$ make<br />

gcc -pthread -c -fno-strict-aliasing -DNDEBUG -g -O3 -Wall<br />

-Wstrict-prototypes -I. -I./Include -DPy_BUILD_CORE -o Modules/config.o<br />

Modules/config.c<br />

[...]<br />

*) CC='gcc -pthread' LDSHARED='gcc -pthread -shared' OPT='-DNDEBUG -g<br />

-O3 -Wall -Wstrict-prototypes' ./python -E ./setup.py build;; \<br />

esac<br />

running build<br />

running build_ext<br />

running build_scripts<br />

$ make install<br />

/usr/bin/install -c python /usr/bin/python2.6<br />

if test -f libpython2.6.so; then \<br />

if test ".so" = .dll; then \<br />

/usr/bin/install -c -m 555 libpython2.6.so /usr/local/<br />

bin; \<br />

else \<br />

/usr/bin/install -c -m 555 libpython2.6.so /usr/local/<br />

lib/libpython2.6.a; \<br />

if test libpython2.6.so != libpython2.6.a; then \<br />

(cd /usr/lib; ln -sf libpython2.6.a<br />

libpython2.6.so); \<br />

fi \<br />

fi; \<br />

else true; \<br />

fi<br />

/usr/bin/install -c -m 644 ./Lib/aifc.py /usr/lib/python2.3<br />

/usr/bin/install -c -m 644 ./Lib/anydbm.py /usr/lib/python2.3<br />

/usr/bin/install -c -m 644 ./Lib/asynchat.py /usr/lib/python2.3<br />

[...]

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

Saved successfully!

Ooh no, something went wrong!