-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
executable file
·68 lines (63 loc) · 2.31 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/usr/bin/env python
#
# setup.py
#
# Copyright (C) 2010-2011 @UK Plc, http://www.uk-plc.net
#
# Author:
# 2010-2011 Damien Churchill <[email protected]>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, write to:
# The Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor
# Boston, MA 02110-1301, USA.
#
from setuptools import setup, find_packages, Extension
try:
from Cython.Distutils import build_ext
HAVE_CYTHON = True
cmdclass = {
'build_ext': build_ext
}
except ImportError:
HAVE_CYTHON = False
cmdclass = {}
ext_modules = []
if HAVE_CYTHON:
ext_modules.append(Extension('vmail.daemon._postfix',
['vmail/daemon/_postfix.pyx']))
setup(
name = 'vmail',
version = '0.4.901',
author = 'Damien Churchill',
author_email = '[email protected]',
cmdclass = cmdclass,
ext_modules = ext_modules,
packages = find_packages(exclude=['tests', 'docs']),
entry_points = """
[console_scripts]
vmaild = vmail.scripts.vmaild:VMailD.main
vgetmaildirsize = vmail.scripts.vgetmaildirsize:VGetMailDirSize.main
vcreatemaildir = vmail.scripts.vcreatemaildir:VCreateMailDir.main
vdelmaildir = vmail.scripts.vdelmaildir:VDelMailDir.main
vchkrcptto = vmail.scripts.vchkrcptto:VChkRcptTo.main
vgetconfig = vmail.scripts.vgetconfig:VGetConfig.main
vautoreply = vmail.scripts.vautoreply:VAutoreply.main
vmailman = vmail.scripts.vmailman:VMailMan.main
vlastlogin = vmail.scripts.vlastlogin:VLastLogin.main
vlogmessage = vmail.scripts.vlogmessage:VLogMessage.main
vchkpasswd = vmail.scripts.vchkpasswd:VChkPasswd.main
vquotawarning = vmail.scripts.vquotawarning:VQuotaWarning.main
"""
)