python3: initial import
This commit is contained in:
parent
c71d762993
commit
179f9a657a
python3
6867
python3/.footprint
Normal file
6867
python3/.footprint
Normal file
File diff suppressed because it is too large
Load Diff
1
python3/.md5sum
Normal file
1
python3/.md5sum
Normal file
@ -0,0 +1 @@
|
||||
82b143ebbf4514d7e05876bed7a6b1f5 Python-3.6.0.tar.xz
|
40
python3/Pkgfile
Normal file
40
python3/Pkgfile
Normal file
@ -0,0 +1,40 @@
|
||||
# Description: Python interpreter, version 3.
|
||||
# URL: https://www.python.org/
|
||||
# Maintainer: Danny Rawlins, crux at romster dot me
|
||||
# Depends on: bzip2 expat gdbm libffi openssl sqlite3 xz zlib
|
||||
|
||||
name=python3
|
||||
version=3.6.0
|
||||
release=1
|
||||
source=(https://www.python.org/ftp/$name/$version/Python-$version.tar.xz)
|
||||
|
||||
build() {
|
||||
cd Python-$version
|
||||
|
||||
# set OPT to the python default without -O3 or -g
|
||||
# our CFLAGS are used as well
|
||||
OPT="-Wall -Wstrict-prototypes -Wno-unused-result -Wsign-compare -fwrapv" \
|
||||
./configure --prefix=/usr \
|
||||
--enable-shared \
|
||||
--enable-ipv6 \
|
||||
--enable-loadable-sqlite-extensions \
|
||||
--with-threads \
|
||||
--with-system-expat \
|
||||
--with-system-ffi \
|
||||
--without-ensurepip
|
||||
|
||||
make
|
||||
make -j1 DESTDIR=$PKG install
|
||||
|
||||
ln -s python${version%.*} $PKG/usr/lib/$name
|
||||
|
||||
rm $PKG/usr/bin/2to3
|
||||
rm $PKG/usr/lib/python${version%.*}/ctypes/macholib/README.ctypes
|
||||
rm $PKG/usr/lib/python${version%.*}/distutils/README
|
||||
rm $PKG/usr/lib/python${version%.*}/idlelib/{ChangeLog,NEWS.txt,NEWS2x.txt}
|
||||
rm $PKG/usr/lib/python${version%.*}/idlelib/{README.txt,TODO.txt,idle_test/README.txt}
|
||||
rm $PKG/usr/lib/python${version%.*}/lib2to3/tests/data/README
|
||||
rm $PKG/usr/lib/python${version%.*}/site-packages/{README,README.txt}
|
||||
rm $PKG/usr/lib/python${version%.*}/test/{data/README,sndhdrdata/README}
|
||||
rm $PKG/usr/lib/python${version%.*}/tkinter/test/README
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user