Skip to content

Commit

Permalink
add dependencies to setup.py install_requires=
Browse files Browse the repository at this point in the history
  • Loading branch information
diogomart committed Nov 6, 2024
1 parent 23302ee commit 78db43b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion meeko/analysis/fingerprint_interactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@
import os

import numpy as np
import pandas as pd
try:
import pandas as pd
_got_pandas = True
except ImportError as error:
_got_pandas = False
_pandas_import_error = error

from .interactions import Hydrophobic, Reactive, Metal
from .interactions import HBDonor, HBAcceptor, WaterDonor, WaterAcceptor
Expand Down Expand Up @@ -89,6 +94,10 @@ def to_dataframe(self, remove_common=False):
found between the molecules and the receptor
"""

if not _got_pandas:
raise _pandas_import_error

count = 0
resid_to_idx_encoder = {}
columns = [[], []]
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def find_files(directory):
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=['numpy>=1.18'],
install_requires=['numpy>=1.18', "rdkit", "scipy", "gemmi"],
python_requires='>=3.9, <3.12',
license="LGPL-2.1",
keywords=["molecular modeling", "drug design",
Expand Down

0 comments on commit 78db43b

Please sign in to comment.