From c03592154a73076c763341bf023f777c7b0bcf41 Mon Sep 17 00:00:00 2001 From: Jackson Burns Date: Tue, 12 Sep 2023 20:08:23 -0400 Subject: [PATCH] fix extension modules to include exceptions --- rmgmolecule_setup.py | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) 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()], )