python,python3: drop tests from all core packages
authorAlexandru Ardelean <ardeleanalex@gmail.com>
Wed, 8 Mar 2017 15:18:09 +0000 (17:18 +0200)
committerAlexandru Ardelean <ardeleanalex@gmail.com>
Thu, 9 Mar 2017 07:23:10 +0000 (09:23 +0200)
Well, this slipped by for some time.
This should make the Python core packages even more lighter.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
lang/python/Makefile
lang/python3/Makefile

index 4300eef713870c7a88c52dd5c1a66c0e9b4b28db..25d07fbd437fb9533c48c9b06e853c29ee68770a 100644 (file)
@@ -104,6 +104,8 @@ define PyBasePackage
   define PyPackage/$(1)/filespec
     ifneq ($(2),)
       $(subst $(space),$(newline),$(foreach lib_file,$(2),+|$(lib_file)))
+      -|/usr/lib/python$(PYTHON_VERSION)/*/test
+      -|/usr/lib/python$(PYTHON_VERSION)/*/tests
     endif
   endef
 endef
index 1276ae546076646629e50662a1c034fd29c12955..a0711a3f6a5a396c188570883edbb960951446bf 100644 (file)
@@ -98,6 +98,8 @@ define Py3BasePackage
   define Py3Package/$(1)/filespec
     ifneq ($(2),)
       $(subst $(space),$(newline),$(foreach lib_file,$(2),+|$(lib_file)))
+      -|/usr/lib/python$(PYTHON_VERSION)/*/test
+      -|/usr/lib/python$(PYTHON_VERSION)/*/tests
     endif
   endef
 endef