diff --git a/rmgmolecule_setup.py b/rmgmolecule_setup.py index 0d4ad5e74ff..db78d97f54f 100644 --- a/rmgmolecule_setup.py +++ b/rmgmolecule_setup.py @@ -147,21 +147,7 @@ scripts = [] -modules = [] -for root, dirs, files in os.walk("molecule"): - if "test_data" in root: - continue - for f in files: - if f.endswith(".py") or f.endswith(".pyx"): - if "Test" not in f and "__init__" not in f: - module = ( - "molecule" - + root.partition("molecule")[-1].replace("/", ".") - + "." - + f.partition(".py")[0] - ) - modules.append(module) - +modules = ["rmgpy.exceptions"] __version__ = "1.0.0" @@ -178,12 +164,13 @@ url="http://reactionmechanismgenerator.github.io", packages=[ "rmgpy.molecule", - "rmgpy.exceptions", ], py_modules=modules, scripts=scripts, ext_modules=cythonize( - ext_modules, build_dir="build", compiler_directives=directives + ext_modules, + build_dir="build", + compiler_directives=directives, ), include_dirs=[".", numpy.get_include()], )