File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,13 @@ config BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS
15
15
default y if BR2_sh
16
16
default y if BR2_x86_64
17
17
18
+ config BR2_PACKAGE_PYTHON_NUMPY_TESTS
19
+ bool "numpy.tests"
20
+ help
21
+ Include test files.
22
+ Selecting this option adds about 2.5 MB to the target file
23
+ system.
24
+
18
25
config BR2_PACKAGE_PYTHON_NUMPY
19
26
bool "python-numpy"
20
27
depends on BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS
Original file line number Diff line number Diff line change 32
32
# in the staging area.
33
33
PYTHON_NUMPY_INSTALL_STAGING = YES
34
34
35
+ ifneq ($(BR2_PACKAGE_PYTHON_NUMPY_TESTS ) ,y)
36
+ define PYTHON_NUMPY_REMOVE_TESTS
37
+ find $(TARGET_DIR ) /usr/lib/python*/site-packages/numpy/ \
38
+ -name tests -prune -exec rm -rf {} \;
39
+ endef
40
+ PYTHON_NUMPY_POST_INSTALL_TARGET_HOOKS += PYTHON_NUMPY_REMOVE_TESTS
41
+ endif
42
+
35
43
$(eval $(python-package))
36
44
$(eval $(host-python-package))
You can’t perform that action at this time.
0 commit comments