Skip to content

Commit

Permalink
fix extension modules to include exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonBurns committed Sep 13, 2023
1 parent 1237a72 commit c035921
Showing 1 changed file with 4 additions and 17 deletions.
21 changes: 4 additions & 17 deletions rmgmolecule_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -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()],
)

0 comments on commit c035921

Please sign in to comment.