Skip to content

Commit

Permalink
package/python-pandas: Strip test files
Browse files Browse the repository at this point in the history
  • Loading branch information
mcous committed Mar 30, 2022
1 parent 9132a4e commit db5170a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions package/python-pandas/Config.in
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,10 @@ config BR2_PACKAGE_PYTHON_PANDAS
and statistics.

http://pandas.pydata.org

config BR2_PACKAGE_PYTHON_PANDAS_TESTS
bool "pandas.tests"
help
Include test files.
Selecting this option adds about 7.0 MB to the target file
system.
7 changes: 7 additions & 0 deletions package/python-pandas/python-pandas.mk
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,11 @@ PYTHON_PANDAS_SETUP_TYPE = setuptools
PYTHON_PANDAS_LICENSE = BSD
PYTHON_PANDAS_LICENSE_FILES = LICENSE

ifneq ($(BR2_PACKAGE_PYTHON_PANDAS_TESTS),y)
define PYTHON_PANDAS_REMOVE_TESTS
rm -rf $(TARGET_DIR)/usr/lib/python*/site-packages/pandas/tests
endef
PYTHON_PANDAS_POST_INSTALL_TARGET_HOOKS += PYTHON_PANDAS_REMOVE_TESTS
endif

$(eval $(python-package))

0 comments on commit db5170a

Please sign in to comment.