From 97fece249df9daf30c71af52ae0a7f2beb52c2ae Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alain=20P=C3=A9teut?= Date: Sat, 10 Mar 2012 20:01:14 +0100 Subject: [PATCH] setup.py: simplify MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alain Péteut --- setup.py | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/setup.py b/setup.py index 84bfd55e..0c8c16d6 100755 --- a/setup.py +++ b/setup.py @@ -3,7 +3,8 @@ """ Migen's distutils distribution and installation script. """ import sys, os -from distutils.core import setup +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() @@ -13,14 +14,6 @@ if sys.version_info < required_version: raise SystemExit("migen requires python {0} or greater".format( ".".join(map(str, required_version)))) -packages = ["migen"] -packages_dir = os.path.sep.join((here, packages[0])) -for entry in os.listdir(packages_dir): - if (os.path.isdir(os.path.sep.join((packages_dir, entry))) and - os.path.isfile(os.path.sep.join((packages_dir, entry, "__init__.py")))): - packages.append(".".join((packages[0], entry))) - -packages_dir={"": "migen"} setup( name="migen", version="unknown", @@ -30,7 +23,7 @@ setup( author_email="sebastien@milkymist.org", url="http://www.milkymist.org", download_url="https://github.com/milkymist/migen", - packages=packages, + packages=find_packages(here), license="GPL", platforms=["Any"], keywords="HDL ASIC FPGA hardware design", -- 2.30.2