SETUP - Introducing "setuptools" to a project without risk

Ilias Lazaridis ilias at lazaridis.com
Mon Sep 18 00:42:37 EDT 2006


If I understood things right, setuptools extends the functionality of
distutils

Thus replacing within a setup.py:

from distutils.core import setup

with

try:
    from setuptools import setup
except ImportError:
    from distutils.core import setup

should have the following behaviour:

* does not change distutils functionality on any system (with or
without setuptools installed)
* adds setuptools functionality on a system with setuptools installed

This is especially important to obtain the convenient "python setup.py
develop" command.

Can someone confirm that the addition is non-critical? (I've not asked
on the setuptools list in order to get a neutral view of users).

context: http://trac.edgewall.org/ticket/3743

.

--
http://lazaridis.com




More information about the Python-list mailing list