diff --git a/setup.py b/setup.py
index 33f38fa141ef0f3d6236b54af10ba6a77f22d10f..159d49ea2be0f184a8ad5dea99f911c56728e331 100644
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,7 @@
 #   See the License for the specific language governing permissions and
 #   limitations under the License.
 
-from setuptools import setup
+from setuptools import setup, find_packages
 
 
 def main():
@@ -24,7 +24,7 @@ def main():
         author_email='lauri.himanen@aalto.fi',
         license='GPL3',
         package_dir={'': './'},
-        packages=['cpmdparser'],
+        packages=find_packages(),
         include_package_data=True,
         install_requires=[
             'nomadcore',