From: Ghislain Antony Vaillant <ghisvail@gmail.com>
Date: Mon, 17 Apr 2017 13:28:41 +0100
Subject: Install the tests

---
 setup.py | 18 ++++++------------
 1 file changed, 6 insertions(+), 12 deletions(-)

diff --git a/setup.py b/setup.py
index 478f87d..88df0a1 100755
--- a/setup.py
+++ b/setup.py
@@ -64,14 +64,9 @@ import distutils.spawn as ds
 import distutils.dir_util as dd
 
 # Always prefer setuptools over distutils
-try:
-    from setuptools import setup, Extension
-    from setuptools.command.clean import clean
-    from setuptools.command.sdist import sdist
-except ImportError:
-    from distutils.core import setup, Extension
-    from distutils.command.clean import clean
-    from distutils.command.sdist import sdist
+from setuptools import setup, find_packages, Extension
+from distutils.command.clean import clean
+from distutils.command.sdist import sdist
 
 # Test if Cython is installed
 USE_CYTHON = True
@@ -319,11 +314,10 @@ def setup_package():
           long_description=(read('README.rst') + '\n\n' +
                             read('HISTORY.rst') + '\n\n' +
                             read('AUTHORS.rst')),
-          packages=["ltfatpy", "ltfatpy.comp", "ltfatpy.fourier",
-                    "ltfatpy.gabor", "ltfatpy.signals", "ltfatpy.sigproc",
-                    "ltfatpy.tools"],
+          packages=find_packages(),
           package_data={'ltfatpy.signals': ['*.wav'],
-                        'ltfatpy.comp': ['*.pxd']},
+                        'ltfatpy.comp': ['*.pxd'],
+                        'ltfatpy.tests.datasets': ['*.mat']},
           url="https://gitlab.lif.univ-mrs.fr/dev/ltfatpy",
           license='GNU GPL V3',
           author='Denis Arrivault and Florent Jaillet',
