packages/lang/python/python/patches
Jeffery To 85c805d0ad python,python3: Increase max recursion level when generating bytecode
"python -m compileall" has a default maximum recursion level of 10, i.e.
it will descend up to 10 levels of subdirectories when looking for
source files to compile. This is usually sufficient but there are
packages that include more than 10 levels (botocore,
https://github.com/openwrt/packages/pull/8214#discussion_r270056741).

This adds the "-r" command line option to the call to compileall to
increase the max recursion level (currently set to 20).

This also patches Python 2's compileall.py to add this max recursion
level option. (Python 3's compileall.py already supports this option.)

This also applies some related changes to python-package-install.sh:

* Use the "-delete" option with find instead of exec'ing rm / rmdir. For
  the case of removing empty directories (in delete_empty_dirs()), this
  has the added benefit of simplifying the code, as the "-delete" option
  implies "-depth", and thus find "does the right thing" (removing empty
  directories depth-first).

* Remove the backslash in "-name" patterns (for find), as they are not
  regular expression but glob patterns.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-04-04 03:07:02 +08:00
..
001-enable-zlib.patch python: Refresh patches 2019-03-08 18:48:45 -08:00
002-do-not-add-include-dirs-when-cross-compiling.patch python: refresh patches make package/python/refresh cmd 2017-07-26 23:56:14 +03:00
003-do-not-compile-tests-at-build.patch python: update to version 2.7.15 2018-05-03 14:46:12 +03:00
004-do-not-write-bytes-codes.patch python: update to version 2.7.15 2018-05-03 14:46:12 +03:00
005-fix-bluetooth-support.patch python: Refresh patches 2019-03-08 18:48:45 -08:00
006-remove-multi-arch-and-local-paths.patch python: refresh patches make package/python/refresh cmd 2017-07-26 23:56:14 +03:00
007-distutils-do-not-adjust-path.patch python packages: move all things python under lang/python 2017-05-17 16:51:14 +03:00
008-distutils-use-python-sysroot.patch python: refresh patches make package/python/refresh cmd 2017-07-26 23:56:14 +03:00
009-do-not-use-dblib_dir-when-cross-compiling.patch python: refresh patches make package/python/refresh cmd 2017-07-26 23:56:14 +03:00
010-do-not-add-rt-lib-dirs-when-cross-compiling.patch python: refresh patches make package/python/refresh cmd 2017-07-26 23:56:14 +03:00
011-fix-ssl-build-use-have-npn.patch python: Refresh patches 2019-03-08 18:48:45 -08:00
012-add-support-source-date-epoch-pyc.patch python: update to version 2.7.15 2018-05-03 14:46:12 +03:00
013-getbuildinfo-date-time-source-date-epoch.patch python: update to version 2.7.15 2018-05-03 14:46:12 +03:00
017_lib2to3_fix_pyc_search.patch python: Refresh patches 2019-03-08 18:48:45 -08:00
019-bpo-36216-Add-check-for-characters-in-netloc-that-normalize-to-separators-GH-12216.patch python,python3: Fix CVE-2019-9636 - urlsplit missing NFKC normalization 2019-03-31 05:18:14 +08:00
020-bpo-36216-Only-print-test-messages-when-verbose-GH-12291.patch python,python3: Fix CVE-2019-9636 - urlsplit missing NFKC normalization 2019-03-31 05:18:14 +08:00
021-compileall-add-recursion-option.patch python,python3: Increase max recursion level when generating bytecode 2019-04-04 03:07:02 +08:00