1 #!/usr/bin/env python3.2
2 # vim: noexpandtab:tabstop=8:softtabstop=8
3 """ Migen's distutils distribution and installation script. """
6 from distutils
.core
import setup
8 here
= os
.path
.abspath(os
.path
.dirname(__file__
))
9 README
= open(os
.path
.join(here
, "README")).read()
11 required_version
= (3, 2)
12 if sys
.version_info
< required_version
:
13 raise SystemExit("migen requires python {0} or greater".format(
14 ".".join(map(str, required_version
))))
17 packages_dir
= os
.path
.sep
.join((here
, packages
[0]))
18 for entry
in os
.listdir(packages_dir
):
19 if (os
.path
.isdir(os
.path
.sep
.join((packages_dir
, entry
))) and
20 os
.path
.isfile(os
.path
.sep
.join((packages_dir
, entry
, '__init__.py')))):
21 packages
.append('.'.join((packages
[0], entry
)))
23 packages_dir
={'': 'migen'}
27 description
="Python toolbox for building complex digital hardware",
28 long_description
=README
,
29 author
="Sebastien Bourdeauducq",
30 author_email
="sebastien@milkymist.org",
31 url
="http://www.milkymist.org",
32 download_url
="https://github.com/milkymist/migen",
36 keywords
="HDL ASIC FPGA hardware design",
38 "Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)",
39 "Environment :: Console",
40 "Development Status :: Alpha",
41 "Intended Audience :: Developers",
42 "License :: OSI Approved :: GNU General Public License (GPL)",
43 "Operating System :: OS Independent",
44 "Programming Language :: Python",