Skip to content
Snippets Groups Projects
Commit 1d45a300 authored by Christoph Groth's avatar Christoph Groth
Browse files

setup.py: use setuptools.find_packages()

parent 0ea19bec
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,7 @@ import glob
import imp
import subprocess
import ConfigParser
from setuptools import setup, Extension, Command
from setuptools import setup, find_packages, Extension, Command
from sysconfig import get_platform
from distutils.errors import DistutilsError, DistutilsModuleError, \
CCompilerError
......@@ -247,12 +247,6 @@ def long_description():
return '\n'.join(text)
def packages():
return [root.replace('/', '.')
for root, dnames, fnames in os.walk('kwant')
if '__init__.py' in fnames or root.endswith('/tests')]
def search_mumps():
"""Return the configuration for MUMPS if it is available in a known way.
......@@ -448,7 +442,7 @@ def main():
platforms=["Unix", "Linux", "Mac OS-X", "Windows"],
url="http://kwant-project.org/",
license="BSD",
packages=packages(),
packages=find_packages('.'),
test_suite = 'nose.collector',
cmdclass={'build': kwant_build,
'sdist': kwant_sdist,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment