-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.py
More file actions
32 lines (25 loc) · 750 Bytes
/
Copy pathsetup.py
File metadata and controls
32 lines (25 loc) · 750 Bytes
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
# encoding: utf-8
from setuptools import setup
def regenerate_dropin_cache():
"""Make Twisted regenerate the dropin.cache, if possible. This is
necessary because in a site-wide install, dropin.cache cannot be
rewritten by normal users.
"""
try:
from twisted.plugin import IPlugin, getPlugins
except ImportError:
pass
else:
list(getPlugins(IPlugin))
setup(
name="trompet",
description="The commit announcement IRC bot.",
packages=["trompet", "trompet.listeners", "trompet.test", "twisted.plugins"],
version="0.1",
author="Andreas Stührk",
author_email="andreas@buffer.io",
install_requires=[
"twisted"
],
zip_safe=False)
regenerate_dropin_cache()