-
Notifications
You must be signed in to change notification settings - Fork 10
/
setup.py
45 lines (37 loc) · 995 Bytes
/
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
#!/usr/bin/python
#
# Copyrigth 2014 Mappy S.A
#
# Licensed under Apache Software License, Version 2.0
#
try:
import setuptools
from setuptools import setup
except ImportError:
setuptools = None
from distutils.core import setup
kwargs = {}
if setuptools is not None:
# If setuptools is not available, you're on your own for dependencies.
install_requires = ['bitstring']
kwargs['install_requires'] = install_requires
def get_version():
local_vars = {}
exec(open('pylr/version.py'),{},local_vars)
return local_vars["__version__"]
version = get_version()
setup(
name="pylr",
version=version,
packages = ["pylr", "pylr.tests"],
package_data = {},
author="Mappy S.A",
url="https://github.com/Mappy/PyLR",
license="AL2",
description="Pylr, an OpenLR (tm) decoder.",
classifiers=[
'License :: OSI Approved :: Apache Software License, Version 2.0',
'Programming Language :: Python :: 2.7',
],
**kwargs
)