2003-01-30 12:19:52 +00:00
|
|
|
""" myhdl's distutils distribution and installation script. """
|
|
|
|
|
2003-01-30 17:19:02 +00:00
|
|
|
import sys
|
|
|
|
|
2004-01-07 21:28:04 +00:00
|
|
|
versionError = "ERROR: myhdl requires Python 2.3 or higher"
|
2003-01-23 23:21:31 +00:00
|
|
|
|
2003-01-30 17:19:02 +00:00
|
|
|
# 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)
|
2005-10-06 20:08:06 +00:00
|
|
|
# we need at least 2.4
|
|
|
|
if sys.version_info < (2, 4):
|
2003-01-30 17:19:02 +00:00
|
|
|
print versionError
|
|
|
|
raise SystemExit(1)
|
|
|
|
|
|
|
|
from distutils.core import setup
|
2004-01-07 21:28:04 +00:00
|
|
|
|
|
|
|
classifiers = """\
|
|
|
|
Development Status :: 3 - Alpha
|
|
|
|
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)
|
|
|
|
"""
|
|
|
|
|
2003-01-30 17:19:02 +00:00
|
|
|
|
2003-01-23 23:21:31 +00:00
|
|
|
setup(name="myhdl",
|
2005-12-27 16:55:12 +00:00
|
|
|
version="0.5",
|
2003-09-08 07:45:10 +00:00
|
|
|
description="Python as a Hardware Description Language",
|
2004-01-07 21:28:04 +00:00
|
|
|
long_description = "See home page.",
|
2003-01-23 23:21:31 +00:00
|
|
|
author="Jan Decaluwe",
|
|
|
|
author_email="jan@jandecaluwe.com",
|
2003-09-08 07:45:10 +00:00
|
|
|
url="http://jandecaluwe.com/Tools/MyHDL/Overview.html",
|
2004-01-07 21:28:04 +00:00
|
|
|
download_url="http://sourceforge.net/project/showfiles.php?group_id=91207",
|
2004-02-04 17:13:07 +00:00
|
|
|
packages=['myhdl', 'myhdl._toVerilog'],
|
2003-09-08 07:45:10 +00:00
|
|
|
license="LGPL",
|
2004-01-07 21:36:05 +00:00
|
|
|
platforms=["Any"],
|
2004-01-07 21:28:04 +00:00
|
|
|
keywords="HDL ASIC FPGA hardware design",
|
|
|
|
classifiers=filter(None, classifiers.split("\n")),
|
2003-01-23 23:21:31 +00:00
|
|
|
)
|
|
|
|
|