Distribute, virtualenv og annet Python verktøy

Pedagogisk programmeringsspråk
KBleivik
Site Admin
Innlegg: 30
Registrert: fre mar 29, 2013 7:52 pm

Distribute, virtualenv og annet Python verktøy

Legg innav KBleivik » fre mar 29, 2013 10:45 pm

1. Distribute

http://pypi.python.org/pypi/distribute

Nedlasting: Bla ned til: "Download distribute_setup.py and execute it, using the Python interpreter of your choice".

Merk:

Warning

If you are using Python 3.X you must use distribute; setuptools doesn’t support Python 3.X.

Kilde: http://www.pip-installer.org/en/latest/installing.html

Distribute kan innstalleres med pip eller easy_install.

Starting with version 0.6.2, Distribute supports Python 3. Installing and using distribute for Python 3 code works exactly the same as for Python 2 code, but Distribute also helps you to support Python 2 and Python 3 from the same source code by letting you run 2to3 on the code as a part of the build process, by setting the keyword parameter use_2to3 to True. See http://packages.python.org/distribute for more information.

Refactoring the code, and releasing it in several distributions. This work is being done in the 0.7.x series but not yet released.


Dokumentasjon: http://packages.python.org/distribute/

Merk.

Distribute is a fork of the Setuptools project.

Distribute is intended to replace Setuptools as the standard method for working with Python module distributions.

For those who may wonder why they should switch to Distribute over Setuptools, it’s quite simple:

Distribute is a drop-in replacement for Setuptools
The code is actively maintained, and has over 10 commiters
Distribute offers Python 3 support !


2. Virtualnev

http://pypi.python.org/pypi/virtualenv/

The virtualenv kit provides the ability to create virtual Python environments that do not interfere with either each other, or the main Python installation. If you install virtualenv before you begin coding then you can get into the habit of using it to create completely clean Python environments for each project. This is particularly important for Web development, where each framework and application will have many dependencies.

Kilde: http://www.stuartellis.eu/articles/pyth ... essentials

... This is particularly important for Web development ...


Tja, jeg er ikke helt sikker på det.

3. Andre Python hjelpemidler

Du finner en brukbar oversikt her: http://www.stuartellis.eu/articles/pyth ... essentials

Noe kan være foreldet og alt trengs ikke. Det kommer an på hva du skal bryke Pyhon og hvordan du skal bruke språket.

Minimalisme er alltid et sunt prinsipp.

Installer dermed ikke noen av de hjelpmidlene som er nevnt her uten at du trenger det. Verden blir som regel ikke mer komplisert.

Gå tilbake til «Python»

Hvem er online

Brukere i dette forumet: Ingen registrerte brukere og 0 gjester