forked from paulsm/pyzeroconf
-
Notifications
You must be signed in to change notification settings - Fork 11
/
setup.py
executable file
·33 lines (33 loc) · 1.07 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
#! /usr/bin/env python
"""Install Zeroconf.py using distutils"""
try:
from setuptools import setup
except ImportError as err:
from distutils.core import setup
import os
info = {}
keys = [('__author__','author'),('__email__','author_email'),('__version__','version')]
for line in open( os.path.join('zeroconf','__init__.py') ):
for key,inf in keys:
if line.startswith( key ):
info[inf] = line.strip().split('=')[1].strip().strip('"').strip("'")
keys.remove( (key,inf))
if not keys:
break
if __name__ == "__main__":
setup(
name='pyzeroconf',
description='Python Zeroconf (mDNS) Library',
url='http://digitaltorque.ca',
packages=['zeroconf'],
#scripts=['Browser.py'],
classifiers=[
'Development Status :: Production',
'License :: OSI Approved :: LGPL2',
'Topic :: Networking',
'Intended Audience :: Developers',
'Operating System :: Any',
'Environment :: Console',
],
**info
)