py-pandas: exchange import_modules with skip_modules (#38227)
This commit is contained in:
parent
00257f6824
commit
fa2e1c0653
1 changed files with 1 additions and 11 deletions
|
@ -126,14 +126,4 @@ class PyPandas(PythonPackage):
|
||||||
# Optional dependencies
|
# Optional dependencies
|
||||||
# https://pandas.pydata.org/pandas-docs/stable/getting_started/install.html#optional-dependencies
|
# https://pandas.pydata.org/pandas-docs/stable/getting_started/install.html#optional-dependencies
|
||||||
|
|
||||||
@property
|
skip_modules = ["pandas.tests", "pandas.plotting._matplotlib", "pandas.core._numba.kernels"]
|
||||||
def import_modules(self):
|
|
||||||
modules = super(__class__, self).import_modules
|
|
||||||
|
|
||||||
ignored_imports = [
|
|
||||||
"pandas.tests",
|
|
||||||
"pandas.plotting._matplotlib",
|
|
||||||
"pandas.core._numba.kernels",
|
|
||||||
]
|
|
||||||
|
|
||||||
return [i for i in modules if not any(map(i.startswith, ignored_imports))]
|
|
||||||
|
|
Loading…
Reference in a new issue