forked from myhdl/myhdl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
48 lines (39 loc) · 1.4 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
46
47
48
""" myhdl's distutils distribution and installation script. """
from __future__ import print_function
import sys
requiredVersion = (2, 6)
requiredVersionStr = ".".join([str(i) for i in requiredVersion])
versionError = "ERROR: myhdl requires Python %s or higher" % requiredVersionStr
# use version_info to check version
# this was new in 2.0, so first see if it exists
try:
sys.version_info
except:
print(versionError)
raise SystemExit(1)
if sys.version_info < requiredVersion:
print(versionError)
raise SystemExit(1)
from distutils.core import setup
classifiers = """\
Development Status :: 5 - Production/Stable
Intended Audience :: Developers
License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)
Operating System :: OS Independent
Programming Language :: Python
Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)
"""
setup(name="myhdl",
version="0.9",
description="Python as a Hardware Description Language",
long_description = "See home page.",
author="Jan Decaluwe",
author_email="jan@jandecaluwe.com",
url="http://www.myhdl.org",
download_url="https://bitbucket.org/jandecaluwe/myhdl/get/0.8.1.zip",
packages=['myhdl', 'myhdl.conversion'],
license="LGPL",
platforms=["Any"],
keywords="HDL ASIC FPGA hardware design",
classifiers=filter(None, classifiers.split("\n")),
)