Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
b748722c
Commit
b748722c
authored
Aug 07, 2013
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed references to distribute_setup.py
parent
c05e0003
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
docs/setuptools.txt
docs/setuptools.txt
+18
-18
No files found.
docs/setuptools.txt
View file @
b748722c
...
...
@@ -72,7 +72,7 @@ is available from the `Python SVN sandbox`_, and in-development versions of the
.. contents:: **Table of Contents**
.. _
distribute
_setup.py: `bootstrap module`_
.. _
ez
_setup.py: `bootstrap module`_
-----------------
...
...
@@ -95,7 +95,7 @@ other than Python's ``site-packages`` directory.
If you want the current in-development version of setuptools, you should first
install a stable version, and then run::
distribute
_setup.py setuptools==dev
ez
_setup.py setuptools==dev
This will download and install the latest development (i.e. unstable) version
of setuptools from the Python Subversion sandbox.
...
...
@@ -529,7 +529,7 @@ Python must be available via the ``PATH`` environment variable, under its
"long" name. That is, if the egg is built for Python 2.3, there must be a
``python2.3`` executable present in a directory on ``PATH``.
This feature is primarily intended to support
distribute
_setup the installation of
This feature is primarily intended to support
ez
_setup the installation of
setuptools itself on non-Windows platforms, but may also be useful for other
projects as well.
...
...
@@ -1148,20 +1148,20 @@ Using ``setuptools``... Without bundling it!
Your users might not have ``setuptools`` installed on their machines, or even
if they do, it might not be the right version. Fixing this is easy; just
download `
distribute
_setup.py`_, and put it in the same directory as your ``setup.py``
download `
ez
_setup.py`_, and put it in the same directory as your ``setup.py``
script. (Be sure to add it to your revision control system, too.) Then add
these two lines to the very top of your setup script, before the script imports
anything from setuptools:
.. code-block:: python
import
distribute
_setup
distribute
_setup.use_setuptools()
import
ez
_setup
ez
_setup.use_setuptools()
That's it. The ``
distribute
_setup`` module will automatically download a matching
That's it. The ``
ez
_setup`` module will automatically download a matching
version of ``setuptools`` from PyPI, if it isn't present on the target system.
Whenever you install an updated version of setuptools, you should also update
your projects' ``
distribute
_setup.py`` files, so that a matching version gets installed
your projects' ``
ez
_setup.py`` files, so that a matching version gets installed
on the target machine(s).
By the way, setuptools supports the new PyPI "upload" command, so you can use
...
...
@@ -1191,7 +1191,7 @@ relevant to your project and your target audience isn't already familiar with
setuptools and ``easy_install``.
Network Access
If your project is using ``
distribute
_setup``, you should inform users of the
If your project is using ``
ez
_setup``, you should inform users of the
need to either have network access, or to preinstall the correct version of
setuptools using the `EasyInstall installation instructions`_. Those
instructions also have tips for dealing with firewalls as well as how to
...
...
@@ -1271,27 +1271,27 @@ Creating System Packages
Managing Multiple Projects
--------------------------
If you're managing several projects that need to use ``
distribute
_setup``, and you
If you're managing several projects that need to use ``
ez
_setup``, and you
are using Subversion as your revision control system, you can use the
"svn:externals" property to share a single copy of ``
distribute
_setup`` between
"svn:externals" property to share a single copy of ``
ez
_setup`` between
projects, so that it will always be up-to-date whenever you check out or update
an individual project, without having to manually update each project to use
a new version.
However, because Subversion only supports using directories as externals, you
have to turn ``
distribute_setup.py`` into ``distribute
_setup/__init__.py`` in order
to do this, then create "externals" definitions that map the ``
distribute
_setup``
have to turn ``
ez_setup.py`` into ``ez
_setup/__init__.py`` in order
to do this, then create "externals" definitions that map the ``
ez
_setup``
directory into each project. Also, if any of your projects use
``find_packages()`` on their setup directory, you will need to exclude the
resulting ``
distribute
_setup`` package, to keep it from being included in your
resulting ``
ez
_setup`` package, to keep it from being included in your
distributions, e.g.::
setup(
...
packages = find_packages(exclude=['
distribute
_setup']),
packages = find_packages(exclude=['
ez
_setup']),
)
Of course, the ``
distribute
_setup`` package will still be included in your
Of course, the ``
ez
_setup`` package will still be included in your
packages' source distributions, as it needs to be.
For your convenience, you may use the following external definition, which will
...
...
@@ -2700,8 +2700,8 @@ XXX
Reusing ``setuptools`` Code
===========================
``
distribute
_setup``
------------
--------
``
ez
_setup``
------------
XXX
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment