1
0
mirror of https://github.com/myhdl/myhdl.git synced 2024-12-14 07:44:38 +08:00
myhdl/setup.py
2010-12-19 18:20:35 +01:00

49 lines
1.4 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.7",
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="http://sourceforge.net/project/showfiles.php?group_id=91207",
packages=['myhdl', 'myhdl.conversion'],
license="LGPL",
platforms=["Any"],
keywords="HDL ASIC FPGA hardware design",
classifiers=filter(None, classifiers.split("\n")),
)