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

49 lines
1.4 KiB
Python
Raw Normal View History

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
2006-03-08 16:04:18 +00:00
requiredVersion = (2, 4)
requiredVersionStr = ".".join([str(i) for i in requiredVersion])
versionError = "ERROR: myhdl requires Python %s or higher" % requiredVersionStr
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)
2006-03-08 16:04:18 +00:00
if sys.version_info < requiredVersion:
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",
2008-08-21 15:29:10 +02:00
version="0.6dev9",
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",
2006-10-04 15:28:04 +00:00
packages=['myhdl', 'myhdl.conversion'],
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
)