setup.py: simplify
[litex.git] / setup.py
1 #!/usr/bin/env python3
2 # vim: noexpandtab:tabstop=8:softtabstop=8
3 """ Migen's distutils distribution and installation script. """
4
5 import sys, os
6 from setuptools import setup
7 from setuptools import find_packages
8
9 here = os.path.abspath(os.path.dirname(__file__))
10 README = open(os.path.join(here, "README")).read()
11
12 required_version = (3, 1)
13 if sys.version_info < required_version:
14 raise SystemExit("migen requires python {0} or greater".format(
15 ".".join(map(str, required_version))))
16
17 setup(
18 name="migen",
19 version="unknown",
20 description="Python toolbox for building complex digital hardware",
21 long_description=README,
22 author="Sebastien Bourdeauducq",
23 author_email="sebastien@milkymist.org",
24 url="http://www.milkymist.org",
25 download_url="https://github.com/milkymist/migen",
26 packages=find_packages(here),
27 license="GPL",
28 platforms=["Any"],
29 keywords="HDL ASIC FPGA hardware design",
30 classifiers=[
31 "Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)",
32 "Environment :: Console",
33 "Development Status :: Alpha",
34 "Intended Audience :: Developers",
35 "License :: OSI Approved :: GNU General Public License (GPL)",
36 "Operating System :: OS Independent",
37 "Programming Language :: Python",
38 ],
39 )