diff options
author | PJ Eby <distutils-sig@python.org> | 2006-03-29 23:09:16 +0000 |
---|---|---|
committer | PJ Eby <distutils-sig@python.org> | 2006-03-29 23:09:16 +0000 |
commit | f4505e41e7c3c4c270c53a4506b3f17556f20f76 (patch) | |
tree | d2b094b53ff243149f0d55cec304654dcbd47bbe /setuptools.txt | |
parent | 97d43ce576112fdda6d2fa1cecf4b46cc85b04c2 (diff) | |
download | external_python_setuptools-f4505e41e7c3c4c270c53a4506b3f17556f20f76.tar.gz external_python_setuptools-f4505e41e7c3c4c270c53a4506b3f17556f20f76.tar.bz2 external_python_setuptools-f4505e41e7c3c4c270c53a4506b3f17556f20f76.zip |
More docs for .py#egg and ``dependency_links``
--HG--
branch : setuptools
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4043429
Diffstat (limited to 'setuptools.txt')
-rwxr-xr-x | setuptools.txt | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/setuptools.txt b/setuptools.txt index 1e93cd44..e93d9304 100755 --- a/setuptools.txt +++ b/setuptools.txt @@ -527,6 +527,45 @@ development work on it. (See `"Development Mode"`_ below for more details on using ``setup.py develop``.) +Dependencies that aren't in PyPI +-------------------------------- + +If your project depends on packages that aren't registered in PyPI, you may +still be able to depend on them, as long as they are available for download +as an egg, in the standard distutils ``sdist`` format, or as a single ``.py`` +file. You just need to add some URLs to the ``dependency_links`` argument to +``setup()``. + +The URLs must be either: + +1. direct download URLs, or +2. the URLs of web pages that contain direct download links + +In general, it's better to link to web pages, because it is usually less +complex to update a web page than to release a new version of your project. +You can also use a SourceForge ``showfiles.php`` link in the case where a +package you depend on is distributed via SourceForge. + +If you depend on a package that's distributed as a single ``.py`` file, you +must include an ``#egg=project-version`` suffix to the URL, to give a project +name and version number. (Be sure to escape any dashes in the name or version +by replacing them with underscores.) EasyInstall will recognize this suffix +and automatically create a trivial ``setup.py`` to wrap the single ``.py`` file +as an egg. + +The ``dependency_links`` option takes the form of a list of URL strings. For +example, the below will cause EasyInstall to search the specified page for +eggs or source distributions, if the package's dependencies aren't already +installed:: + + setup( + ... + dependency_links = [ + "http://peak.telecommunity.com/snapshots/" + ], + ) + + .. _Declaring Extras: |