~barry/mailman/events-and-web

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Barry Warsaw
  • Date: 2009-01-25 18:01:41 UTC
  • Revision ID: barry@list.org-20090125180141-6gkxgr0gq24ruof9
Push the source directory into a 'src' subdirectory so that zc.buildout works
correctly regardless of how it's used.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2007-2008 by the Free Software Foundation, Inc.
 
1
# Copyright (C) 2007-2009 by the Free Software Foundation, Inc.
2
2
#
3
3
# This file is part of GNU Mailman.
4
4
#
21
21
import sys
22
22
from string import Template
23
23
 
 
24
sys.path.insert(0, 'src')
 
25
 
24
26
import mailman.bin
25
27
from mailman.version import VERSION as __version__
26
28
from setuptools import setup, find_packages
86
88
    license         = 'GPLv3',
87
89
    url             = 'http://www.list.org',
88
90
    keywords        = 'email',
89
 
    packages        = find_packages(),
 
91
    packages        = find_packages('src'),
 
92
    package_dir     = {'': 'src'},
90
93
    include_package_data = True,
91
94
    entry_points    = {
92
95
        'console_scripts': list(scripts),