py-pandas: exchange import_modules with skip_modules (#38227)
This commit is contained in:
		| @@ -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))] |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Manuela Kuhn
					Manuela Kuhn