mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2025-12-24 04:30:24 +00:00
Update repo
This commit is contained in:
19
scripts/build/setup/python-crossenv-1.3.0-python-3.11.patch
Normal file
19
scripts/build/setup/python-crossenv-1.3.0-python-3.11.patch
Normal file
@@ -0,0 +1,19 @@
|
||||
https://github.com/benfogle/crossenv/issues/103
|
||||
|
||||
--- a/crossenv/__init__.py
|
||||
+++ b/crossenv/__init__.py
|
||||
@@ -245,7 +245,13 @@
|
||||
else:
|
||||
self.host_project_base = os.path.dirname(host)
|
||||
|
||||
- if sysconfig._is_python_source_dir(self.host_project_base):
|
||||
+ def _is_python_source_dir(d):
|
||||
+ for fn in ("Setup", "Setup.local"):
|
||||
+ if os.path.isfile(os.path.join(d, "Modules", fn)):
|
||||
+ return True
|
||||
+ return False
|
||||
+
|
||||
+ if _is_python_source_dir(self.host_project_base):
|
||||
self.host_makefile = os.path.join(self.host_project_base, 'Makefile')
|
||||
pybuilddir = os.path.join(self.host_project_base, 'pybuilddir.txt')
|
||||
try:
|
||||
@@ -21,6 +21,13 @@ termux_setup_python_crossenv() {
|
||||
tar xf $TERMUX_PKG_TMPDIR/$_CROSSENV_TAR -C $TERMUX_PKG_TMPDIR
|
||||
mv "$TERMUX_PKG_TMPDIR/crossenv-$_CROSSENV_VERSION" \
|
||||
$_CROSSENV_FOLDER
|
||||
shopt -s nullglob
|
||||
local f
|
||||
for f in "$TERMUX_SCRIPTDIR"/scripts/build/setup/python-crossenv-*.patch; do
|
||||
echo "[${FUNCNAME[0]}]: Applying $(basename "$f")"
|
||||
patch --silent -p1 -d "$_CROSSENV_FOLDER" < "$f"
|
||||
done
|
||||
shopt -u nullglob
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user