mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-15 16:20:08 +02:00
python3: disable debug build, drop testsuit
* turns out exportig OPT var disables debug build * drop testsuite as it takes a lot of space, perhaps needs to be moved into a separate package * should we drop __pycache__ as well? Used https://git.centos.org/blob/rpms!rh-python36-python.git/c7/SPECS!python.spec#L1484 and https://packages.debian.org/source/buster/python3.6 as a reference
This commit is contained in:
@@ -99,6 +99,7 @@ BUILD()
|
||||
libtoolize --force --copy --install
|
||||
aclocal
|
||||
autoconf
|
||||
export OPT=""
|
||||
runConfigure --omit-dirs binDir,includeDir ./configure \
|
||||
--enable-shared --without-ensurepip \
|
||||
--with-system-expat --bindir=$commandBinDir --includedir=$developDir/headers
|
||||
@@ -130,6 +131,14 @@ INSTALL()
|
||||
|
||||
mkdir -p $prefix/non-packaged/lib/python3.6
|
||||
mv $prefix/lib/python3.6/site-packages $prefix/non-packaged/lib/python3.6/
|
||||
|
||||
# drop testsuite altogether; move to a separate package if needed
|
||||
cd $prefix/lib/python3.6
|
||||
rm -rf ctypes/test distutils/tests idlelib/idle_test lib2to3/tests \
|
||||
sqlite3/test test tkinter/test unittest/test
|
||||
|
||||
# TODO: drop __pycache__ folders as well?
|
||||
find . -name __pycache__ | xargs rm -rf
|
||||
}
|
||||
|
||||
TEST()
|
||||
|
||||
Reference in New Issue
Block a user