diff options
author | mborch@valga.local <mborch@valga.local> | 2009-11-04 17:26:28 +0100 |
---|---|---|
committer | mborch@valga.local <mborch@valga.local> | 2009-11-04 17:26:28 +0100 |
commit | 529f165dfbd7b654b646b1b42b1ba6419e5ce832 (patch) | |
tree | 898b19683ae1b4bf11ca268610ef0e7efc29260c | |
parent | 0118a1febd0bde436f3f0e392d016b8e7e7656c9 (diff) | |
download | external_python_setuptools-529f165dfbd7b654b646b1b42b1ba6419e5ce832.tar.gz external_python_setuptools-529f165dfbd7b654b646b1b42b1ba6419e5ce832.tar.bz2 external_python_setuptools-529f165dfbd7b654b646b1b42b1ba6419e5ce832.zip |
Added instructions from Florian Schultze.
--HG--
branch : distribute
extra : rebase_source : bd41be5da388ce505e146bdb445342a585e732fd
-rwxr-xr-x | README.txt | 36 |
1 files changed, 26 insertions, 10 deletions
@@ -149,21 +149,37 @@ Lastly: Quick help for developers ------------------------- -To use Distribute in your package, the recommended way is to ship -`distribute_setup.py` alongside your `setup.py` script and call -it at the very begining of `setup.py` like this:: +To create an egg which is compatible with Distribute, use the same +practice as with Setuptools, e.g.: - from distribute_setup import use_setuptools - use_setuptools() +{{{ +from setuptools import setup +setup(... +) +}}} -Another way is to add ``Distribute`` in the ``install_requires`` option:: +To use `pkg_resources` to access data files in the egg, you should +require the Setuptools distribution explicitly: - from setuptools import setup +{{{ +from setuptools import setup - setup(... - install_requires=['distribute'] - ) +setup(... + install_requires=['setuptools'] +) +}}} + +Only if you need Distribute-specific functionality should you depend +on it explicitly. In this case, replace the Setuptools dependency: + +{{{ +from setuptools import setup + +setup(... + install_requires=['distribute'] +) +}}} ----------- Install FAQ |