-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsetup.py
More file actions
27 lines (24 loc) · 847 Bytes
/
setup.py
File metadata and controls
27 lines (24 loc) · 847 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
# -*- Mode: Python -*-
from setuptools import setup, find_packages
from distutils.extension import Extension
try:
from Cython.Build import cythonize
exts = cythonize ([Extension ("tinyber._codec", ['tinyber/_codec.pyx'])])
except ImportError:
exts = []
setup (
name = 'tinyber',
version = '0.0.1',
url = "https://github.com/cloudtools/tinyber",
packages = find_packages(),
description = 'ASN.1 code generator for Python and C',
scripts = ['scripts/tinyber_gen', 'scripts/dax'],
package_data = {
'tinyber': ['data/*.[ch]', 'tinyber/codec.py'],
'tests': ['*.asn1'],
},
ext_modules = exts,
test_suite = "tests",
use_2to3 = True,
install_requires = ['asn1ate>=0.5', 'pyparsing>=2.0.0'],
)