python3 3.8.0 and move to core

This commit is contained in:
IdrisKalp
2019-12-10 04:35:28 +03:00
parent 3bf24f28de
commit c42a5c2491
6 changed files with 305 additions and 0 deletions
+48
View File
@@ -0,0 +1,48 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/copyleft/gpl.txt
from pisi.actionsapi import get
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
def setup():
pisitools.flags.add("-fwrapv")
pisitools.dosed("Lib/cgi.py","^#.* /usr/local/bin/python","#!/usr/bin/python")
shelltools.unlinkDir("Modules/expat")
#shelltools.unlinkDir("Modules/zlib")
shelltools.unlinkDir("Modules/_ctypes/darwin")
#shelltools.unlinkDir("Modules/_ctypes/libffi")
#shelltools.unlinkDir("Modules/_ctypes/libffi_msvc")
shelltools.unlinkDir("Modules/_ctypes/libffi_osx")
#shelltools.unlinkDir("Modules/_decimal/libmpdec")
autotools.rawConfigure("\
--prefix=/usr \
--enable-shared \
--with-threads \
--with-computed-gotos \
--enable-ipv6 \
--with-system-expat \
--with-dbmliborder=gdbm:ndbm \
--with-system-ffi \
--with-system-libmpdec \
--enable-loadable-sqlite-extensions \
--without-ensurepip")
def build():
autotools.make()
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
pisitools.remove("/usr/bin/2to3")
pisitools.dodoc("LICENSE", "README.*")
pisitools.removeDir("/usr/lib/python3.8/idlelib")
pisitools.removeDir("/usr/lib/python3.8/tkinter")
pisitools.removeDir("/usr/lib/python3.8/turtledemo")
pisitools.remove("/usr/bin/idle3*")
@@ -0,0 +1,57 @@
From 84fdbc156ed424d030686de350fbfc6c3593263f Mon Sep 17 00:00:00 2001
Message-Id: <84fdbc156ed424d030686de350fbfc6c3593263f.1537028533.git.jan.steffens@gmail.com>
From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com>
Date: Sat, 15 Sep 2018 18:22:06 +0200
Subject: [PATCH] compileall: Fix ddir when recursing
---
Lib/compileall.py | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/Lib/compileall.py b/Lib/compileall.py
index 72592126d7..70e246fd96 100644
--- a/Lib/compileall.py
+++ b/Lib/compileall.py
@@ -45,12 +45,16 @@ def _walk_dir(dir, ddir=None, maxlevels=10, quiet=0):
else:
dfile = None
if not os.path.isdir(fullname):
- yield fullname
+ yield fullname, ddir
elif (maxlevels > 0 and name != os.curdir and name != os.pardir and
os.path.isdir(fullname) and not os.path.islink(fullname)):
yield from _walk_dir(fullname, ddir=dfile,
maxlevels=maxlevels - 1, quiet=quiet)
+def _compile_one(file_ddir, *args, **kwargs):
+ file, ddir = file_ddir
+ return compile_file(file, ddir, *args, **kwargs)
+
def compile_dir(dir, maxlevels=10, ddir=None, force=False, rx=None,
quiet=0, legacy=False, optimize=-1, workers=1,
invalidation_mode=py_compile.PycInvalidationMode.TIMESTAMP):
@@ -79,17 +83,17 @@ def compile_dir(dir, maxlevels=10, ddir=None, force=False, rx=None,
if workers is not None and workers != 1 and ProcessPoolExecutor is not None:
workers = workers or None
with ProcessPoolExecutor(max_workers=workers) as executor:
- results = executor.map(partial(compile_file,
- ddir=ddir, force=force,
+ results = executor.map(partial(_compile_one,
+ force=force,
rx=rx, quiet=quiet,
legacy=legacy,
optimize=optimize,
invalidation_mode=invalidation_mode),
files)
success = min(results, default=True)
else:
- for file in files:
- if not compile_file(file, ddir, force, rx, quiet,
+ for file_ddir in files:
+ if not _compile_one(file_ddir, force, rx, quiet,
legacy, optimize, invalidation_mode):
success = False
return success
--
2.18.0
@@ -0,0 +1,13 @@
diff --git a/Makefile.pre.in b/Makefile.pre.in
index ce2c0aa..7d6dcf7 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -60,7 +60,7 @@ INSTALL_DATA= @INSTALL_DATA@
# Shared libraries must be installed with executable mode on some systems;
# rather than figuring out exactly which, we always give them executable mode.
# Also, making them read-only seems to be a good idea...
-INSTALL_SHARED= ${INSTALL} -m 555
+INSTALL_SHARED= ${INSTALL} -m 755
MKDIR_P= @MKDIR_P@
+11
View File
@@ -0,0 +1,11 @@
[Desktop Entry]
Encoding=UTF-8
Exec=idle3
Icon=idle3
Name=IDLE Integrated Development Environment
Name[tr]=IDLE3 Tümleşik Geliştirme Ortamı
StartupNotify=false
Terminal=false
Type=Application
Categories=Application;Development;
MimeType=application/x-python;
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

+176
View File
@@ -0,0 +1,176 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>python3</Name>
<Homepage>http://www.python.org/</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>custom</License>
<PartOf>programming.language</PartOf>
<Summary>Next generation of the python high-level scripting language</Summary>
<Description>Next generation of the python high-level scripting language</Description>
<Archive sha1sum="7720e0384558c598107cf046c48165fd7e1f5b2c" type="tarxz">https://www.python.org/ftp/python/3.8.0/Python-3.8.0.tar.xz</Archive>
<BuildDependencies>
<!-- <Dependency>valgrind</Dependency> -->
<Dependency>bzip2</Dependency>
<Dependency>xz-devel</Dependency>
<!-- <Dependency>tcl-devel</Dependency> -->
<Dependency>gdbm-devel</Dependency>
<Dependency>zlib-devel</Dependency>
<!-- <Dependency>tcltk-devel</Dependency> -->
<Dependency>expat-devel</Dependency>
<Dependency>libffi-devel</Dependency>
<Dependency>sqlite-devel</Dependency>
<Dependency>ncurses-devel</Dependency>
<Dependency>openssl-devel</Dependency>
<Dependency>readline-devel</Dependency>
<Dependency>mpdecimal-devel</Dependency>
</BuildDependencies>
<Patches>
<!-- <Patch level="1">dont-make-libpython-readonly.patch</Patch> -->
<Patch level="1">0001-compileall-Fix-ddir-when-recursing.patch</Patch>
</Patches>
</Source>
<Package>
<Name>python3</Name>
<RuntimeDependencies>
<Dependency>xz</Dependency>
<Dependency>gdbm</Dependency>
<Dependency>zlib</Dependency>
<Dependency>bzip2</Dependency>
<Dependency>expat</Dependency>
<Dependency>libffi</Dependency>
<Dependency>sqlite</Dependency>
<Dependency>ncurses</Dependency>
<Dependency>openssl</Dependency>
<Dependency>readline</Dependency>
<Dependency>mpdecimal</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="executable" permanent="0">/usr/bin/p*</Path>
<Path fileType="executable" permanent="0">/usr/bin/2to3*</Path>
<Path fileType="library" permanent="0">/usr/lib/python3.8/a*</Path>
<Path fileType="library" permanent="0">/usr/lib/python3.8/c*</Path>
<Path fileType="library" permanent="0">/usr/lib/python3.8/d*</Path>
<Path fileType="library" permanent="0">/usr/lib/python3.8/e*</Path>
<Path fileType="library" permanent="0">/usr/lib/python3.8/h*</Path>
<Path fileType="library" permanent="0">/usr/lib/python3.8/imp*</Path>
<Path fileType="library" permanent="0">/usr/lib/python3.8/j*</Path>
<Path fileType="library" permanent="0">/usr/lib/python3.8/lib2*</Path>
<Path fileType="library" permanent="0">/usr/lib/python3.8/log*</Path>
<Path fileType="library" permanent="0">/usr/lib/python3.8/m*</Path>
<Path fileType="library" permanent="0">/usr/lib/python3.8/p*</Path>
<Path fileType="library" permanent="0">/usr/lib/python3.8/s*</Path>
<Path fileType="library" permanent="0">/usr/lib/python3.8/te*</Path>
<Path fileType="library" permanent="0">/usr/lib/python3.8/u*</Path>
<Path fileType="library" permanent="0">/usr/lib/python3.8/v*</Path>
<Path fileType="library" permanent="0">/usr/lib/python3.8/w*</Path>
<Path fileType="library" permanent="0">/usr/lib/python3.8/x*</Path>
<Path fileType="library" permanent="0">/usr/lib/python3.8/*.py</Path>
<Path fileType="library" permanent="0">/usr/lib/python3.8/*.txt</Path>
<Path fileType="library" permanent="0">/usr/lib/python3.8/lib-dynload/_a*</Path>
<Path fileType="library" permanent="0">/usr/lib/python3.8/lib-dynload/a*</Path>
<Path fileType="library" permanent="0">/usr/lib/python3.8/lib-dynload/b*</Path>
<Path fileType="library" permanent="0">/usr/lib/python3.8/lib-dynload/_b*</Path>
<Path fileType="library" permanent="0">/usr/lib/python3.8/lib-dynload/c*</Path>
<Path fileType="library" permanent="0">/usr/lib/python3.8/lib-dynload/_c*</Path>
<Path fileType="library" permanent="0">/usr/lib/python3.8/lib-dynload/_d*</Path>
<Path fileType="library" permanent="0">/usr/lib/python3.8/lib-dynload/_e*</Path>
<Path fileType="library" permanent="0">/usr/lib/python3.8/lib-dynload/f*</Path>
<Path fileType="library" permanent="0">/usr/lib/python3.8/lib-dynload/g*</Path>
<Path fileType="library" permanent="0">/usr/lib/python3.8/lib-dynload/_g*</Path>
<Path fileType="library" permanent="0">/usr/lib/python3.8/lib-dynload/_h*</Path>
<Path fileType="library" permanent="0">/usr/lib/python3.8/lib-dynload/_j*</Path>
<Path fileType="library" permanent="0">/usr/lib/python3.8/lib-dynload/_l*</Path>
<Path fileType="library" permanent="0">/usr/lib/python3.8/lib-dynload/m*</Path>
<Path fileType="library" permanent="0">/usr/lib/python3.8/lib-dynload/_m*</Path>
<Path fileType="library" permanent="0">/usr/lib/python3.8/lib-dynload/n*</Path>
<Path fileType="library" permanent="0">/usr/lib/python3.8/lib-dynload/o*</Path>
<Path fileType="library" permanent="0">/usr/lib/python3.8/lib-dynload/_o*</Path>
<Path fileType="library" permanent="0">/usr/lib/python3.8/lib-dynload/_p*</Path>
<Path fileType="library" permanent="0">/usr/lib/python3.8/lib-dynload/p*</Path>
<Path fileType="library" permanent="0">/usr/lib/python3.8/lib-dynload/r*</Path>
<Path fileType="library" permanent="0">/usr/lib/python3.8/lib-dynload/_r*</Path>
<Path fileType="library" permanent="0">/usr/lib/python3.8/lib-dynload/_s*</Path>
<Path fileType="library" permanent="0">/usr/lib/python3.8/lib-dynload/s*</Path>
<Path fileType="library" permanent="0">/usr/lib/python3.8/lib-dynload/te*</Path>
<Path fileType="library" permanent="0">/usr/lib/python3.8/lib-dynload/_te*</Path>
<Path fileType="library" permanent="0">/usr/lib/python3.8/lib-dynload/ti*</Path>
<Path fileType="library" permanent="0">/usr/lib/python3.8/lib-dynload/u*</Path>
<Path fileType="library" permanent="0">/usr/lib/python3.8/lib-dynload/x*</Path>
<Path fileType="library" permanent="0">/usr/lib/python3.8/lib-dynload/z*</Path>
<Path fileType="library" permanent="0">/usr/lib/python3.8/__pycache__</Path>
<Path fileType="library" permanent="0">/usr/lib/*.so</Path>
<Path fileType="library" permanent="0">/usr/lib/libpython3.8.so.1.0</Path>
<Path fileType="man" permanent="0">/usr/share/man/man1/*</Path>
<Path fileType="doc" permanent="0">/usr/share/doc</Path>
</Files>
</Package>
<Package>
<Name>python3-devel</Name>
<RuntimeDependencies>
<Dependency release="current">python3</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header" permanent="0">/usr/include/python3.8/*</Path>
<Path fileType="library" permanent="0">/usr/lib/pkgconfig/*</Path>
</Files>
</Package>
<History>
<Update release="7">
<Date>2019-12-10</Date>
<Version>3.8.0</Version>
<Comment>Version bump</Comment>
<Name>Idris Kalp</Name>
<Email>idriskalp@gmail.com</Email>
</Update>
<Update release="6">
<Date>2018-07-31</Date>
<Version>3.6.5</Version>
<Comment>Rebuild.</Comment>
<Name>mustafa Cinasal</Name>
<Email>muscnsl@gmail.com</Email>
</Update>
<Update release="5">
<Date>2018-05-09</Date>
<Version>3.6.5</Version>
<Comment>Version bump</Comment>
<Name>Ertuğrul Erata</Name>
<Email>ertugrulerata@gmail.com</Email>
</Update>
<Update release="4">
<Date>2018-01-31</Date>
<Version>3.6.0</Version>
<Comment>Rebuild</Comment>
<Name>Ayhan Yalçınsoy</Name>
<Email>ayhanyalcinsoy@pisilinux.org</Email>
</Update>
<Update release="3">
<Date>2016-06-09</Date>
<Version>3.4.3</Version>
<Comment>Release Bump</Comment>
<Name>Pisi Linux Community</Name>
<Email>admin@pisilinux.org</Email>
</Update>
<Update release="2">
<Date>2016-05-08</Date>
<Version>3.4.3</Version>
<Comment>Rebuild.</Comment>
<Name>Ertuğrul Erata</Name>
<Email>ertugrulerata@gmail.com</Email>
</Update>
<Update release="1">
<Date>2015-08-13</Date>
<Version>3.4.3</Version>
<Comment>First release</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
</History>
</PISI>