mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
Pillow: Don't use distutilscross
This commit is contained in:
parent
07e981c855
commit
4e209de48d
@ -8,21 +8,16 @@ PKG_SHA256="e70284e8605a5b7ccb37e5bfd4634598ca2c43c7f2c353572351ccf72c031004"
|
||||
PKG_LICENSE="BSD"
|
||||
PKG_SITE="https://python-pillow.org/"
|
||||
PKG_URL="https://github.com/python-pillow/${PKG_NAME}/archive/${PKG_VERSION}.tar.gz"
|
||||
PKG_DEPENDS_TARGET="toolchain Python3 distutilscross:host zlib freetype libjpeg-turbo tiff"
|
||||
PKG_DEPENDS_TARGET="toolchain Python3 zlib freetype libjpeg-turbo tiff"
|
||||
PKG_LONGDESC="The Python Imaging Library adds image processing capabilities to your Python interpreter."
|
||||
PKG_TOOLCHAIN="manual"
|
||||
|
||||
pre_make_target() {
|
||||
export PYTHONXCPREFIX="${SYSROOT_PREFIX}/usr"
|
||||
export LDSHARED="${CC} -shared"
|
||||
}
|
||||
|
||||
make_target() {
|
||||
python3 setup.py build --cross-compile
|
||||
python_target_env python3 setup.py build_ext --disable-platform-guessing build
|
||||
}
|
||||
|
||||
makeinstall_target() {
|
||||
python3 setup.py install --root=${INSTALL} --prefix=/usr
|
||||
exec_thread_safe python_target_env python3 setup.py build_ext --disable-platform-guessing install --root=${INSTALL} --prefix=/usr
|
||||
}
|
||||
|
||||
post_makeinstall_target() {
|
||||
|
@ -1,23 +0,0 @@
|
||||
diff --git a/setup.py b/setup.py
|
||||
index 8eb0b3c..277e44a 100755
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -341,9 +341,7 @@
|
||||
return True if value in configuration.get(option, []) else None
|
||||
|
||||
def initialize_options(self):
|
||||
- self.disable_platform_guessing = self.check_configuration(
|
||||
- "platform-guessing", "disable"
|
||||
- )
|
||||
+ self.disable_platform_guessing = True
|
||||
self.add_imaging_libs = ""
|
||||
build_ext.initialize_options(self)
|
||||
for x in self.feature:
|
||||
@@ -1007,6 +1005,7 @@
|
||||
|
||||
try:
|
||||
setup(
|
||||
+ version=PILLOW_VERSION,
|
||||
cmdclass={"build_ext": pil_build_ext},
|
||||
ext_modules=ext_modules,
|
||||
zip_safe=not (debug_build() or PLATFORM_MINGW),
|
Loading…
x
Reference in New Issue
Block a user