-
Notifications
You must be signed in to change notification settings - Fork 42
/
setup.py
45 lines (39 loc) · 1.27 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
#
# This file is part of Python-ASN1. Python-ASN1 is free software that is
# made available under the MIT license. Consult the file "LICENSE" that
# is distributed together with this file for the exact licensing terms.
#
# Python-ASN1 is copyright (c) 2007 by the Python-ASN1 authors. See the
# file "AUTHORS" for a complete overview.
import sys
# Support both setuptools (if installed) and distutils
try:
from setuptools import setup, Extension
except ImportError:
from distutils.core import setup, Extension
classifiers = \
[
'Development Status :: 4 - Beta',
'Environment :: Plugins',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Programming Language :: Python',
'Topic :: Internet',
'Topic :: Software Development :: Libraries :: Python Modules'
]
args = \
{
'name': 'python-asn1',
'version': '0.9',
'description': 'An ASN1 encoder/decoder for Python',
'author': 'Geert Jansen',
'author_email': '[email protected]',
'url': 'http://www.boskant.nl/trac/python-asn1',
'package_dir': {'': 'lib'},
'py_modules': ['asn1']
}
if sys.version_info[:3] >= (2, 4, 0):
args['classifiers'] = classifiers
setup(**args)