Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 574322 - dev-lang/python: Don't install tests
Summary: dev-lang/python: Don't install tests
Status: RESOLVED DUPLICATE of bug 531648
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-10 10:14 UTC by Patrick Lauer
Modified: 2016-02-10 12:11 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Lauer gentoo-dev 2016-02-10 10:14:25 UTC
Same procedure can be applied to all slots, result is halving the filesize at no loss of functionality. Would also shrink stage3 by a noticeable amount.

 * dev-lang/python-3.4.3-r7
         Total files : 4724
         Total size  : 74.61 MiB

 * dev-lang/python-3.4.3-r8
         Total files : 2622
         Total size  : 39.56 MiB

$ diff python-3.4.3-r{7,8}* -Naur
--- python-3.4.3-r7.ebuild      2015-12-24 12:08:33.709991488 +0100
+++ python-3.4.3-r8.ebuild      2016-02-10 11:01:50.715306687 +0100
@@ -251,9 +251,9 @@
                dosym "python-${PYVER}.pc" "/usr/$(get_libdir)/pkgconfig/${abiver/${PYVER}/-${PYVER}}.pc"
        fi
 
-       use elibc_uclibc && rm -fr "${libdir}/test"
-       use sqlite || rm -fr "${libdir}/"{sqlite3,test/test_sqlite*}
-       use tk || rm -fr "${ED}usr/bin/idle${PYVER}" "${libdir}/"{idlelib,tkinter,test/test_tk*}
+       rm -fr "${libdir}/test"
+       use sqlite || rm -fr "${libdir}/"{sqlite3}
+       use tk || rm -fr "${ED}usr/bin/idle${PYVER}" "${libdir}/"{idlelib,tkinter}
 
        use threads || rm -fr "${libdir}/multiprocessing"
        use wininst || rm -f "${libdir}/distutils/command/"wininst-*.exe
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-02-10 12:11:22 UTC

*** This bug has been marked as a duplicate of bug 531648 ***