1
0
mirror of https://github.com/myhdl/myhdl.git synced 2024-12-14 07:44:38 +08:00
myhdl/setup.py
Jan Decaluwe 4189d9ba95 Bug fix merge from default
--HG--
branch : 0.9-dev
2013-09-15 22:36:59 +02:00

48 lines
1.3 KiB
Python

""" myhdl's distutils distribution and installation script. """
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 :: 4 - Beta
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.zip",
packages=['myhdl', 'myhdl.conversion'],
license="LGPL",
platforms=["Any"],
keywords="HDL ASIC FPGA hardware design",
classifiers=filter(None, classifiers.split("\n")),
)