From eefd06f1b88b8ecbb23a9013cd223b72ca85c20d Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Sun, 25 Jan 2009 13:01:41 -0500 Subject: Push the source directory into a 'src' subdirectory so that zc.buildout works correctly regardless of how it's used. --- setup.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 117528b7e..4d807a5ee 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,4 @@ -# Copyright (C) 2007-2008 by the Free Software Foundation, Inc. +# Copyright (C) 2007-2009 by the Free Software Foundation, Inc. # # This file is part of GNU Mailman. # @@ -21,6 +21,8 @@ ez_setup.use_setuptools() import sys from string import Template +sys.path.insert(0, 'src') + import mailman.bin from mailman.version import VERSION as __version__ from setuptools import setup, find_packages @@ -86,7 +88,8 @@ case second `m'. Any other spelling is incorrect.""", license = 'GPLv3', url = 'http://www.list.org', keywords = 'email', - packages = find_packages(), + packages = find_packages('src'), + package_dir = {'': 'src'}, include_package_data = True, entry_points = { 'console_scripts': list(scripts), -- cgit v1.2.3-70-g09d2