mirror of
https://github.com/kennethreitz/python-guide.git
synced 2026-06-05 23:00:18 +00:00
Replace all references to Distribute with Setuptools.
Distribute was merged back into setuptools and discontinued.
This commit is contained in:
@@ -18,21 +18,21 @@ side-by-side with the system's Python 2.4 installation.
|
||||
You do not need to install or configure anything else to use Python. Having
|
||||
said that, I would strongly recommend that you install the tools and libraries
|
||||
described in the next section before you start building Python applications
|
||||
for real-world use. In particular, you should always install Distribute, as
|
||||
for real-world use. In particular, you should always install Setuptools, as
|
||||
it makes it much easier for you to use other third-party Python libraries.
|
||||
|
||||
Distribute & Pip
|
||||
Setuptools & Pip
|
||||
----------------
|
||||
|
||||
The most crucial third-party Python software of all is Distribute, which
|
||||
The most crucial third-party Python software of all is Setuptools, which
|
||||
extends the packaging and installation facilities provided by the distutils
|
||||
in the standard library. Once you add Distribute to your Python system you can
|
||||
in the standard library. Once you add Setuptools to your Python system you can
|
||||
download and install any compliant Python software product with a single
|
||||
command. It also enables you to add this network installation capability to
|
||||
your own Python software with very little work.
|
||||
|
||||
To obtain the latest version of Distribute for Linux, run the python script
|
||||
available here: `python-distribute <http://python-distribute.org/distribute_setup.py>`_
|
||||
To obtain the latest version of Setuptools for Linux, refer to the documentation
|
||||
available here: `unix-setuptools <https://pypi.python.org/pypi/setuptools#unix-wget>`_
|
||||
|
||||
The new``easy_install`` command you have available is considered by many to be
|
||||
deprecated, so we will install its replacement: **pip**. Pip allows for
|
||||
@@ -48,7 +48,7 @@ To install pip, simply open a command prompt and run
|
||||
Virtualenv
|
||||
----------
|
||||
|
||||
After Distribute & Pip, the next development tool that you should install is
|
||||
After Setuptools & Pip, the next development tool that you should install is
|
||||
`virtualenv <http://pypi.python.org/pypi/virtualenv/>`_. Use pip
|
||||
|
||||
.. code-block:: console
|
||||
@@ -68,7 +68,7 @@ project's directory
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
$ virtualenv --distribute venv
|
||||
$ virtualenv venv
|
||||
|
||||
To use an environment, run ``source venv/bin/activate``. Your command prompt
|
||||
will change to show the active environment. Once you have finished working in
|
||||
|
||||
Reference in New Issue
Block a user