Commit 0f429b9b authored by Fred Drake's avatar Fred Drake

fix to make things continue to work when we're *not* running under

Python 2.4; this was broken by my earlier change to avoid stomping on
Python 2.4's build_py command

--HG--
branch : setuptools
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4040902
parent dfc00cc1
......@@ -56,13 +56,15 @@ class Distribution(_Distribution):
"""
def __init__ (self, attrs=None):
have_package_data = hasattr(self, "package_data")
if not have_package_data:
self.package_data = {}
self.features = {}
self.test_suite = None
self.requires = []
_Distribution.__init__(self,attrs)
if not hasattr(self, "package_data"):
if not have_package_data:
from setuptools.command.build_py import build_py
self.package_data = {}
self.cmdclass.setdefault('build_py',build_py)
self.cmdclass.setdefault('build_ext',build_ext)
self.cmdclass.setdefault('install',install)
......
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