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
|
|
|
|
|
|
|
|
versionError = "ERROR: myhdl requires Python 2.2.2 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)
|
|
|
|
# we need at least 2.2.2
|
|
|
|
if sys.version_info[:3] < (2, 2, 2):
|
|
|
|
print versionError
|
|
|
|
raise SystemExit(1)
|
|
|
|
|
|
|
|
from distutils.core import setup
|
|
|
|
|
2003-01-23 23:21:31 +00:00
|
|
|
setup(name="myhdl",
|
2003-09-08 07:45:10 +00:00
|
|
|
version="0.3",
|
|
|
|
description="Python as a Hardware Description Language",
|
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",
|
|
|
|
download_url="http://jandecaluwe.com/Tools/MyHDL/Download.html",
|
2003-05-17 15:41:33 +00:00
|
|
|
packages=['myhdl'],
|
2003-09-08 07:45:10 +00:00
|
|
|
license="LGPL",
|
2003-01-23 23:21:31 +00:00
|
|
|
)
|
|
|
|
|