2003-01-30 12:19:52 +00:00
|
|
|
""" myhdl's distutils distribution and installation script. """
|
|
|
|
|
2015-02-01 16:11:41 -05:00
|
|
|
from __future__ import print_function
|
2003-01-30 17:19:02 +00:00
|
|
|
import sys
|
|
|
|
|
2009-04-25 16:51:01 +02:00
|
|
|
requiredVersion = (2, 6)
|
2006-03-08 16:04:18 +00:00
|
|
|
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:
|
2015-02-01 16:11:41 -05:00
|
|
|
print(versionError)
|
2003-01-30 17:19:02 +00:00
|
|
|
raise SystemExit(1)
|
2006-03-08 16:04:18 +00:00
|
|
|
|
|
|
|
if sys.version_info < requiredVersion:
|
2015-02-01 16:11:41 -05:00
|
|
|
print(versionError)
|
2003-01-30 17:19:02 +00:00
|
|
|
raise SystemExit(1)
|
|
|
|
|
|
|
|
from distutils.core import setup
|
2004-01-07 21:28:04 +00:00
|
|
|
|
|
|
|
classifiers = """\
|
2014-08-26 10:06:55 +02:00
|
|
|
Development Status :: 5 - Production/Stable
|
2004-01-07 21:28:04 +00:00
|
|
|
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",
|
2013-09-15 22:36:59 +02:00
|
|
|
version="0.9",
|
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",
|
2010-12-19 18:20:35 +01:00
|
|
|
url="http://www.myhdl.org",
|
2014-08-26 10:59:59 +02:00
|
|
|
download_url="https://bitbucket.org/jandecaluwe/myhdl/get/0.8.1.zip",
|
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
|
|
|
)
|