Add setup.py
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Fri, 19 Apr 2013 12:04:59 +0000 (14:04 +0200)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Fri, 19 Apr 2013 12:04:59 +0000 (14:04 +0200)
setup.py [new file with mode: 0755]

diff --git a/setup.py b/setup.py
new file mode 100755 (executable)
index 0000000..2469571
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,37 @@
+#!/usr/bin/env python3
+
+import sys, os
+from setuptools import setup
+from setuptools import find_packages
+
+here = os.path.abspath(os.path.dirname(__file__))
+README = open(os.path.join(here, "README")).read()
+
+required_version = (3, 1)
+if sys.version_info < required_version:
+       raise SystemExit("Mibuild requires python {0} or greater".format(
+               ".".join(map(str, required_version))))
+
+setup(
+       name="mibuild",
+       version="unknown",
+       description="Build system and board definitions for Migen FPGA designs",
+       long_description=README,
+       author="Sebastien Bourdeauducq",
+       author_email="sebastien@milkymist.org",
+       url="http://www.milkymist.org",
+       download_url="https://github.com/milkymist/mibuild",
+       packages=find_packages(here),
+       license="GPL",
+       platforms=["Any"],
+       keywords="HDL ASIC FPGA hardware design",
+       classifiers=[
+               "Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)",
+               "Environment :: Console",
+               "Development Status :: Alpha",
+               "Intended Audience :: Developers",
+               "License :: OSI Approved :: GNU General Public License (GPL)",
+               "Operating System :: OS Independent",
+               "Programming Language :: Python",
+       ],
+)