Using Distribute in your projectΒΆ

To use Distribute in your project, 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']
)

XXX to be finished

Previous topic

Supporting both Python 2 and Python 3 with Distribute

Next topic

Building and Distributing Packages with Distribute

This Page