summaryrefslogtreecommitdiffstats
path: root/third_party/tlslite/setup.py
blob: e3417c4ea496680a4df478daa58d8f760a10fdff (plain)
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
#!/usr/bin/env python

import sys
from distutils.core import setup, Extension

if sys.version_info < (2, 2):
    raise AssertionError("Python 2.2 or later required")

if sys.platform == "win32":
    ext = Extension("tlslite.utils.win32prng",
                    sources=["tlslite/utils/win32prng.c"],
                    libraries=["advapi32"])
    exts = [ext]
else:
    exts = None

setup(name="tlslite",
      version="0.3.8",
      author="Trevor Perrin",
      author_email="trevp@trevp.net",
      url="http://trevp.net/tlslite/",
      description="tlslite implements SSL and TLS with SRP, shared-keys, cryptoID, or X.509 authentication.",
      license="public domain",
      scripts=["scripts/tls.py", "scripts/tlsdb.py"],
      packages=["tlslite", "tlslite.utils", "tlslite.integration"],
      ext_modules=exts)