From f85098d6389e336bfb444132be6032e292eab19f Mon Sep 17 00:00:00 2001 From: PJ Eby Date: Tue, 20 Dec 2005 16:21:50 +0000 Subject: Changes so that upgrading an existing setuptools to a development version doesn't lose its entry points by using the already-installed setuptools as a basis for generating them. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041776 --- setup.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/setup.py b/setup.py index 2ccf260e..b9b50838 100755 --- a/setup.py +++ b/setup.py @@ -15,10 +15,13 @@ def get_description(): f.close() return ''.join(lines) +from distutils.util import convert_path +d = {}; execfile(convert_path('setuptools/command/__init__.py'), d) +SETUP_COMMANDS = d['__all__'] + VERSION = "0.6a9" from setuptools import setup, find_packages import sys -from setuptools.command import __all__ as SETUP_COMMANDS scripts = [] if sys.platform != "win32": scripts = ["easy_install.py"] # for backward compatibility only @@ -35,8 +38,9 @@ setup( keywords = "CPAN PyPI distutils eggs package management", url = "http://peak.telecommunity.com/DevCenter/setuptools", test_suite = 'setuptools.tests.test_suite', + packages = find_packages(), - include_package_data = True, + package_data = {'setuptools':'*.exe'}, py_modules = ['pkg_resources', 'easy_install', 'site'], zip_safe = False, # We want 'python -m easy_install' to work, for now :( @@ -76,10 +80,6 @@ setup( - - - - classifiers = [f.strip() for f in """ Development Status :: 3 - Alpha Intended Audience :: Developers -- cgit v1.2.1