Commit 739f071e authored by tarek's avatar tarek

fixed use_setuptools

--HG--
branch : distribute
extra : rebase_source : ef32212ac795e851f32e63d1ec9fd7e3765caf92
parent a5633e5d
......@@ -13,6 +13,8 @@ CHANGES
PyPI's http://packages.python.org.
This close http://bitbucket.org/tarek/distribute/issue/56.
* Fixed a bootstrap bug on the use_setuptools() API.
-----
0.6.3
-----
......
......@@ -143,6 +143,26 @@ Lastly:
- remove the *.OLD.* directory located in your site-packages directory if any,
**once you have checked everything was working correctly again**.
-------------------------
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::
from distribute_setup import use_setuptools
use_setuptools()
Another way is to add ``Distribute`` in the ``install_requires`` option::
from setuptools import setup
setup(...
install_requires=['distribute']
)
-----------
Install FAQ
-----------
......
......@@ -132,6 +132,7 @@ def use_setuptools(version=DEFAULT_VERSION, download_base=DEFAULT_URL,
try:
import pkg_resources
if not hasattr(pkg_resources, '_distribute'):
fake_setuptools()
raise ImportError
except ImportError:
return _do_download(version, download_base, to_dir, download_delay)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment