Merge branch 'master' of github.com:milkymist/migen
[litex.git] / setup.py
1 #!/usr/bin/env python3.2
2 # vim: noexpandtab:tabstop=8:softtabstop=8
3 """ Migen's distutils distribution and installation script. """
4
5 import sys, os
6 from distutils.core import setup
7
8 here = os.path.abspath(os.path.dirname(__file__))
9 README = open(os.path.join(here, "README")).read()
10
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))))
15
16 packages = ['migen']
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)))
22
23 packages_dir={'': 'migen'}
24 setup(
25 name="migen",
26 version="unknown",
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",
33 packages=packages,
34 license="GPL",
35 platforms=["Any"],
36 keywords="HDL ASIC FPGA hardware design",
37 classifiers=[
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",
45 ],
46 )