Browse code

correctly list all packages in setup.py

Without this subpackages are not packaged when using 'sdist'.

Joseph Weston authored on 20/02/2018 16:11:52
Showing 1 changed files
... ...
@@ -4,7 +4,7 @@
4 4
 import os
5 5
 import sys
6 6
 import imp
7
-from setuptools import setup
7
+from setuptools import setup, find_packages
8 8
 from setuptools.command.sdist import sdist as sdist_orig
9 9
 from distutils.command.build import build as build_orig
10 10
 
... ...
@@ -76,7 +76,7 @@ setup(
76 76
         'Intended Audience :: Science/Research',
77 77
         'Programming Language :: Python :: 3.6',
78 78
     ],
79
-    packages=['adaptive'],
79
+    packages=find_packages('.'),
80 80
     install_requires=install_requires,
81 81
     extras_require=extras_require,
82 82
     cmdclass=dict(sdist=sdist, build=build),