Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/about.json +176 -0
- docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/files +0 -0
- docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/git +0 -0
- docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/has_prefix +14 -0
- docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/hash_input.json +22 -0
- docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/index.json +30 -0
- docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/licenses/LICENSE +279 -0
- docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/paths.json +0 -0
- docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/build_base.sh +522 -0
- docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/conda_build_config.yaml +46 -0
- docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/meta.yaml +209 -0
- docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/.circleci/config.yml +24 -0
- docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/.gitattributes +24 -0
- docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/.gitignore +3 -0
- docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/LICENSE.txt +13 -0
- docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/brand_python.py +41 -0
- docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/build-locally.py +63 -0
- docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/build_base.bat +212 -0
- docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/build_base.sh +522 -0
- docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/build_static.bat +0 -0
- docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/build_static.sh +39 -0
- docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/conda_build_config.yaml +13 -0
- docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/fix_staged_scripts.py +41 -0
- docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/meta.yaml +371 -0
- docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/meta.yaml.orig +327 -0
- docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/meta.yaml.rej +17 -0
- docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/patches/0001-Win32-Change-FD_SETSIZE-from-512-to-2048.patch +26 -0
- docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/patches/0002-Win32-distutils-Add-support-to-cygwinccompiler-for-V.patch +28 -0
- docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/patches/0004-bpo-45258-search-for-isysroot-in-addition-to-sysroot.patch +27 -0
- docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/patches/0005-runtime_library_dir_option-Use-1st-word-of-CC-as-com.patch +30 -0
- docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/patches/0006-Win32-Do-not-download-externals.patch +25 -0
- docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/patches/0007-Fix-find_library-so-that-it-looks-in-sys.prefix-lib-.patch +76 -0
- docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/patches/0008-bpo-22699-Allow-compiling-on-debian-ubuntu-with-a-di.patch +49 -0
- docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/patches/0009-Disable-registry-lookup-unless-CONDA_PY_ALLOW_REG_PA.patch +1197 -0
- docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/patches/0010-Unvendor-openssl.patch +217 -0
- docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/patches/0011-Unvendor-sqlite3.patch +83 -0
- docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/patches/0012-Use-ranlib-from-env-if-env-variable-is-set.patch +26 -0
- docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/patches/0013-Add-CondaEcosystemModifyDllSearchPath.patch +158 -0
- docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/patches/0014-Add-d1trimfile-SRC_DIR-to-make-pdbs-more-relocatable.patch +39 -0
- docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/patches/0015-Doing-d1trimfile.patch +883 -0
- docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/patches/0016-cross-compile-darwin.patch +104 -0
- docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/patches/0017-Fix-TZPATH-on-windows.patch +24 -0
- docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/patches/0018-Make-dyld-search-work-with-SYSTEM_VERSION_COMPAT-1.patch +32 -0
- docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/patches/0019-Fix-LDSHARED-when-CC-is-overriden-on-Linux-too.patch +29 -0
- docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/patches/0020-Unvendor-bzip2.patch +90 -0
- docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/patches/0021-Unvendor-libffi.patch +42 -0
- docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/patches/0022-Unvendor-tcltk.patch +31 -0
- docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/patches/0023-unvendor-xz.patch +46 -0
- docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/patches/0024-unvendor-zlib.patch +166 -0
- docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/patches/0025-Do-not-pass-g-to-GCC-when-not-Py_DEBUG.patch +49 -0
docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/about.json
ADDED
|
@@ -0,0 +1,176 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"channels": [
|
| 3 |
+
"https://repo.anaconda.com/pkgs/main",
|
| 4 |
+
"https://repo.anaconda.com/pkgs/r",
|
| 5 |
+
"https://repo.anaconda.com/pkgs/r"
|
| 6 |
+
],
|
| 7 |
+
"conda_build_version": "25.1.2",
|
| 8 |
+
"conda_version": "25.1.1",
|
| 9 |
+
"description": "Python is a widely used high-level, general-purpose, interpreted, dynamic\nprogramming language. Its design philosophy emphasizes code\nreadability, and its syntax allows programmers to express concepts in\nfewer lines of code than would be possible in languages such as C++ or\nJava. The language provides constructs intended to enable clear programs\non both a small and large scale.\n",
|
| 10 |
+
"dev_url": "https://devguide.python.org/",
|
| 11 |
+
"doc_url": "https://www.python.org/doc/versions/",
|
| 12 |
+
"env_vars": {
|
| 13 |
+
"CIO_TEST": "<not set>"
|
| 14 |
+
},
|
| 15 |
+
"extra": {
|
| 16 |
+
"copy_test_source_files": true,
|
| 17 |
+
"feedstock-name": "python",
|
| 18 |
+
"final": true,
|
| 19 |
+
"parent_recipe": {
|
| 20 |
+
"name": "python-split",
|
| 21 |
+
"path": "/home/task_176107048787964/python-feedstock/recipe",
|
| 22 |
+
"version": "3.11.14"
|
| 23 |
+
},
|
| 24 |
+
"recipe-maintainers": [
|
| 25 |
+
"isuruf",
|
| 26 |
+
"jakirkham",
|
| 27 |
+
"mbargull",
|
| 28 |
+
"mingwandroid",
|
| 29 |
+
"msarahan",
|
| 30 |
+
"pelson",
|
| 31 |
+
"ocefpaf",
|
| 32 |
+
"scopatz",
|
| 33 |
+
"katietz",
|
| 34 |
+
"xhochy"
|
| 35 |
+
]
|
| 36 |
+
},
|
| 37 |
+
"home": "https://www.python.org/",
|
| 38 |
+
"identifiers": [],
|
| 39 |
+
"keywords": [],
|
| 40 |
+
"license": "PSF-2.0",
|
| 41 |
+
"license_family": "PSF",
|
| 42 |
+
"license_file": "LICENSE",
|
| 43 |
+
"license_url": "https://spdx.org/licenses/PSF-2.0.html",
|
| 44 |
+
"root_pkgs": [
|
| 45 |
+
"_libgcc_mutex 0.1 main",
|
| 46 |
+
"ca-certificates 2025.9.9 h06a4308_0",
|
| 47 |
+
"ld_impl_linux-64 2.40 h12ee557_0",
|
| 48 |
+
"libstdcxx-ng 11.2.0 h1234567_1",
|
| 49 |
+
"nlohmann_json 3.11.2 h6a678d5_0",
|
| 50 |
+
"pybind11-abi 5 hd3eb1b0_0",
|
| 51 |
+
"tzdata 2025a h04d1e81_0",
|
| 52 |
+
"libgomp 11.2.0 h1234567_1",
|
| 53 |
+
"_openmp_mutex 5.1 1_gnu",
|
| 54 |
+
"libgcc-ng 11.2.0 h1234567_1",
|
| 55 |
+
"bzip2 1.0.8 h5eee18b_6",
|
| 56 |
+
"c-ares 1.19.1 h5eee18b_0",
|
| 57 |
+
"cpp-expected 1.1.0 hdb19cb5_0",
|
| 58 |
+
"expat 2.6.4 h6a678d5_0",
|
| 59 |
+
"fmt 9.1.0 hdb19cb5_1",
|
| 60 |
+
"icu 73.1 h6a678d5_0",
|
| 61 |
+
"libev 4.33 h7f8727e_1",
|
| 62 |
+
"libffi 3.4.4 h6a678d5_1",
|
| 63 |
+
"libuuid 1.41.5 h5eee18b_0",
|
| 64 |
+
"lz4-c 1.9.4 h6a678d5_1",
|
| 65 |
+
"ncurses 6.4 h6a678d5_0",
|
| 66 |
+
"liblief 0.12.3 h6a678d5_0",
|
| 67 |
+
"reproc 14.2.4 h6a678d5_2",
|
| 68 |
+
"simdjson 3.10.1 hdb19cb5_0",
|
| 69 |
+
"xz 5.4.6 h5eee18b_1",
|
| 70 |
+
"yaml-cpp 0.8.0 h6a678d5_1",
|
| 71 |
+
"zlib 1.2.13 h5eee18b_1",
|
| 72 |
+
"libedit 3.1.20230828 h5eee18b_0",
|
| 73 |
+
"libnghttp2 1.57.0 h2d74bed_0",
|
| 74 |
+
"libssh2 1.11.1 h251f7ec_0",
|
| 75 |
+
"libxml2 2.13.5 hfdd30dd_0",
|
| 76 |
+
"pcre2 10.42 hebb0a14_1",
|
| 77 |
+
"readline 8.2 h5eee18b_0",
|
| 78 |
+
"reproc-cpp 14.2.4 h6a678d5_2",
|
| 79 |
+
"spdlog 1.11.0 hdb19cb5_0",
|
| 80 |
+
"tk 8.6.14 h39e8969_0",
|
| 81 |
+
"zstd 1.5.6 hc292b87_0",
|
| 82 |
+
"krb5 1.20.1 h143b758_1",
|
| 83 |
+
"libarchive 3.7.7 hfab0078_0",
|
| 84 |
+
"libsolv 0.7.30 he621ea3_1",
|
| 85 |
+
"sqlite 3.45.3 h5eee18b_0",
|
| 86 |
+
"libcurl 8.11.1 hc9e6f67_0",
|
| 87 |
+
"python 3.12.9 h5148396_0",
|
| 88 |
+
"libmamba 2.0.5 haf1ee3a_1",
|
| 89 |
+
"menuinst 2.2.0 py312h06a4308_1",
|
| 90 |
+
"anaconda-anon-usage 0.5.0 py312hfc0e8ea_100",
|
| 91 |
+
"annotated-types 0.6.0 py312h06a4308_0",
|
| 92 |
+
"archspec 0.2.3 pyhd3eb1b0_0",
|
| 93 |
+
"boltons 24.1.0 py312h06a4308_0",
|
| 94 |
+
"brotli-python 1.0.9 py312h6a678d5_9",
|
| 95 |
+
"charset-normalizer 3.3.2 pyhd3eb1b0_0",
|
| 96 |
+
"distro 1.9.0 py312h06a4308_0",
|
| 97 |
+
"frozendict 2.4.2 py312h06a4308_0",
|
| 98 |
+
"idna 3.7 py312h06a4308_0",
|
| 99 |
+
"jsonpointer 2.1 pyhd3eb1b0_0",
|
| 100 |
+
"libmambapy 2.0.5 py312hdb19cb5_1",
|
| 101 |
+
"mdurl 0.1.0 py312h06a4308_0",
|
| 102 |
+
"packaging 24.2 py312h06a4308_0",
|
| 103 |
+
"platformdirs 3.10.0 py312h06a4308_0",
|
| 104 |
+
"pluggy 1.5.0 py312h06a4308_0",
|
| 105 |
+
"pycosat 0.6.6 py312h5eee18b_2",
|
| 106 |
+
"pycparser 2.21 pyhd3eb1b0_0",
|
| 107 |
+
"pygments 2.15.1 py312h06a4308_1",
|
| 108 |
+
"pysocks 1.7.1 py312h06a4308_0",
|
| 109 |
+
"ruamel.yaml.clib 0.2.8 py312h5eee18b_0",
|
| 110 |
+
"setuptools 75.8.0 py312h06a4308_0",
|
| 111 |
+
"tqdm 4.67.1 py312he106c6f_0",
|
| 112 |
+
"truststore 0.10.0 py312h06a4308_0",
|
| 113 |
+
"typing_extensions 4.12.2 py312h06a4308_0",
|
| 114 |
+
"wheel 0.45.1 py312h06a4308_0",
|
| 115 |
+
"cffi 1.17.1 py312h1fdaa30_1",
|
| 116 |
+
"jsonpatch 1.33 py312h06a4308_1",
|
| 117 |
+
"markdown-it-py 2.2.0 py312h06a4308_1",
|
| 118 |
+
"pip 25.0 py312h06a4308_0",
|
| 119 |
+
"ruamel.yaml 0.18.6 py312h5eee18b_0",
|
| 120 |
+
"typing-extensions 4.12.2 py312h06a4308_0",
|
| 121 |
+
"urllib3 2.3.0 py312h06a4308_0",
|
| 122 |
+
"cryptography 43.0.3 py312h7825ff9_1",
|
| 123 |
+
"pydantic-core 2.27.1 py312h4aa5aa6_0",
|
| 124 |
+
"requests 2.32.3 py312h06a4308_1",
|
| 125 |
+
"rich 13.9.4 py312h06a4308_0",
|
| 126 |
+
"zstandard 0.23.0 py312h2c38b39_1",
|
| 127 |
+
"conda-content-trust 0.2.0 py312h06a4308_1",
|
| 128 |
+
"conda-package-streaming 0.11.0 py312h06a4308_0",
|
| 129 |
+
"pydantic 2.10.3 py312h06a4308_0",
|
| 130 |
+
"conda-package-handling 2.4.0 py312h06a4308_0",
|
| 131 |
+
"conda 25.1.1 py312h06a4308_0",
|
| 132 |
+
"conda-anaconda-tos 0.1.2 py312h06a4308_0",
|
| 133 |
+
"conda-libmamba-solver 25.1.1 pyhd3eb1b0_0",
|
| 134 |
+
"libsodium 1.0.20 heac8642_0",
|
| 135 |
+
"openssl 3.0.18 hd6dcaed_0",
|
| 136 |
+
"patch 2.8 hb25bd0a_0",
|
| 137 |
+
"patchelf 0.17.2 h6a678d5_0",
|
| 138 |
+
"yaml 0.2.5 h7b6447c_0",
|
| 139 |
+
"argcomplete 3.6.2 py312h06a4308_0",
|
| 140 |
+
"attrs 24.3.0 py312h06a4308_0",
|
| 141 |
+
"certifi 2025.8.3 py312h06a4308_0",
|
| 142 |
+
"chardet 5.2.0 py312h06a4308_0",
|
| 143 |
+
"click 8.2.1 py312h06a4308_0",
|
| 144 |
+
"filelock 3.17.0 py312h06a4308_0",
|
| 145 |
+
"jmespath 1.0.1 py312h06a4308_0",
|
| 146 |
+
"markupsafe 3.0.2 py312h5eee18b_0",
|
| 147 |
+
"more-itertools 10.3.0 py312h06a4308_0",
|
| 148 |
+
"pkginfo 1.12.0 py312h06a4308_0",
|
| 149 |
+
"psutil 7.0.0 py312hee96239_0",
|
| 150 |
+
"py-lief 0.12.3 py312h6a678d5_0",
|
| 151 |
+
"python-libarchive-c 5.1 pyhd3eb1b0_0",
|
| 152 |
+
"pytz 2025.2 py312h06a4308_0",
|
| 153 |
+
"pyyaml 6.0.2 py312h5eee18b_0",
|
| 154 |
+
"rpds-py 0.22.3 py312h4aa5aa6_0",
|
| 155 |
+
"six 1.17.0 py312h06a4308_0",
|
| 156 |
+
"soupsieve 2.5 py312h06a4308_0",
|
| 157 |
+
"tomlkit 0.13.2 py312h06a4308_0",
|
| 158 |
+
"xmltodict 0.14.2 py312h06a4308_0",
|
| 159 |
+
"jinja2 3.1.6 py312h06a4308_0",
|
| 160 |
+
"python-dateutil 2.9.0post0 py312h06a4308_2",
|
| 161 |
+
"referencing 0.30.2 py312h06a4308_0",
|
| 162 |
+
"yq 3.4.3 py312h06a4308_0",
|
| 163 |
+
"beautifulsoup4 4.13.5 py312h06a4308_0",
|
| 164 |
+
"botocore 1.37.10 py312h06a4308_0",
|
| 165 |
+
"jsonschema-specifications 2023.7.1 py312h06a4308_0",
|
| 166 |
+
"pynacl 1.5.0 py312h2630517_2",
|
| 167 |
+
"jsonschema 4.25.0 py312h06a4308_0",
|
| 168 |
+
"s3transfer 0.11.2 py312h06a4308_0",
|
| 169 |
+
"boto3 1.37.10 py312h06a4308_0",
|
| 170 |
+
"conda-anaconda-telemetry 0.3.0 pyhd3eb1b0_1",
|
| 171 |
+
"conda-index 0.5.0 py312h06a4308_0",
|
| 172 |
+
"conda-build 25.1.2 py312h06a4308_0"
|
| 173 |
+
],
|
| 174 |
+
"summary": "General purpose programming language",
|
| 175 |
+
"tags": []
|
| 176 |
+
}
|
docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/files
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/git
ADDED
|
File without changes
|
docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/has_prefix
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/home/task_176107048787964/conda-bld/python-split_1761071004794/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_plac binary bin/python3.11
|
| 2 |
+
/home/task_176107048787964/conda-bld/python-split_1761071004794/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_plac binary lib/libpython3.11.so.1.0
|
| 3 |
+
/home/task_176107048787964/conda-bld/python-split_1761071004794/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_plac text bin/2to3-3.11
|
| 4 |
+
/home/task_176107048787964/conda-bld/python-split_1761071004794/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_plac text bin/idle3.11
|
| 5 |
+
/home/task_176107048787964/conda-bld/python-split_1761071004794/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_plac text bin/pydoc3.11
|
| 6 |
+
/home/task_176107048787964/conda-bld/python-split_1761071004794/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_plac text bin/python3.11-config
|
| 7 |
+
/home/task_176107048787964/conda-bld/python-split_1761071004794/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_plac text lib/pkgconfig/python-3.11-embed.pc
|
| 8 |
+
/home/task_176107048787964/conda-bld/python-split_1761071004794/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_plac text lib/pkgconfig/python-3.11.pc
|
| 9 |
+
/home/task_176107048787964/conda-bld/python-split_1761071004794/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_plac text lib/python3.11/_sysconfigdata__linux_x86_64-linux-gnu.py
|
| 10 |
+
/home/task_176107048787964/conda-bld/python-split_1761071004794/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_plac text lib/python3.11/_sysconfigdata__linux_x86_64-linux-gnu.py.orig
|
| 11 |
+
/home/task_176107048787964/conda-bld/python-split_1761071004794/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_plac text lib/python3.11/_sysconfigdata_x86_64_conda_cos6_linux_gnu.py
|
| 12 |
+
/home/task_176107048787964/conda-bld/python-split_1761071004794/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_plac text lib/python3.11/_sysconfigdata_x86_64_conda_linux_gnu.py
|
| 13 |
+
/home/task_176107048787964/conda-bld/python-split_1761071004794/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_plac text lib/python3.11/config-3.11-x86_64-linux-gnu/Makefile
|
| 14 |
+
/home/task_176107048787964/conda-bld/python-split_1761071004794/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_plac text lib/python3.11/config-3.11-x86_64-linux-gnu/python-config.py
|
docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/hash_input.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"expat": "2",
|
| 3 |
+
"readline": "8",
|
| 4 |
+
"cxx_compiler_version": "11.2.0",
|
| 5 |
+
"BUILD": "x86_64-conda_el8-linux-gnu",
|
| 6 |
+
"libnsl": "2.0",
|
| 7 |
+
"channel_targets": "defaults",
|
| 8 |
+
"xorg_xorgproto": "2024",
|
| 9 |
+
"bzip2": "1",
|
| 10 |
+
"ncurses": "6",
|
| 11 |
+
"xorg_libx11": "1",
|
| 12 |
+
"zlib": "1.2",
|
| 13 |
+
"libuuid": "1",
|
| 14 |
+
"xz": "5",
|
| 15 |
+
"target_platform": "linux-64",
|
| 16 |
+
"cxx_compiler": "gxx",
|
| 17 |
+
"c_compiler": "gcc",
|
| 18 |
+
"sqlite": "3",
|
| 19 |
+
"c_compiler_version": "11.2.0",
|
| 20 |
+
"openssl": "3",
|
| 21 |
+
"tk": "8.6"
|
| 22 |
+
}
|
docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/index.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"arch": "x86_64",
|
| 3 |
+
"build": "h6fa692b_0",
|
| 4 |
+
"build_number": 0,
|
| 5 |
+
"depends": [
|
| 6 |
+
"bzip2 >=1.0.8,<2.0a0",
|
| 7 |
+
"expat >=2.7.1,<3.0a0",
|
| 8 |
+
"ld_impl_linux-64 >=2.35.1",
|
| 9 |
+
"libffi >=3.4,<3.5",
|
| 10 |
+
"libffi >=3.4,<4.0a0",
|
| 11 |
+
"libgcc-ng >=11.2.0",
|
| 12 |
+
"libnsl >=2.0.0,<2.1.0a0",
|
| 13 |
+
"libuuid >=1.41.5,<2.0a0",
|
| 14 |
+
"ncurses >=6.5,<7.0a0",
|
| 15 |
+
"openssl >=3.0.18,<4.0a0",
|
| 16 |
+
"readline >=8.3,<9.0a0",
|
| 17 |
+
"sqlite >=3.50.2,<4.0a0",
|
| 18 |
+
"tk >=8.6.15,<8.7.0a0",
|
| 19 |
+
"tzdata",
|
| 20 |
+
"xz >=5.6.4,<6.0a0",
|
| 21 |
+
"zlib >=1.2.13,<2.0a0"
|
| 22 |
+
],
|
| 23 |
+
"license": "PSF-2.0",
|
| 24 |
+
"license_family": "PSF",
|
| 25 |
+
"name": "python",
|
| 26 |
+
"platform": "linux",
|
| 27 |
+
"subdir": "linux-64",
|
| 28 |
+
"timestamp": 1761072209650,
|
| 29 |
+
"version": "3.11.14"
|
| 30 |
+
}
|
docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/licenses/LICENSE
ADDED
|
@@ -0,0 +1,279 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
A. HISTORY OF THE SOFTWARE
|
| 2 |
+
==========================
|
| 3 |
+
|
| 4 |
+
Python was created in the early 1990s by Guido van Rossum at Stichting
|
| 5 |
+
Mathematisch Centrum (CWI, see https://www.cwi.nl) in the Netherlands
|
| 6 |
+
as a successor of a language called ABC. Guido remains Python's
|
| 7 |
+
principal author, although it includes many contributions from others.
|
| 8 |
+
|
| 9 |
+
In 1995, Guido continued his work on Python at the Corporation for
|
| 10 |
+
National Research Initiatives (CNRI, see https://www.cnri.reston.va.us)
|
| 11 |
+
in Reston, Virginia where he released several versions of the
|
| 12 |
+
software.
|
| 13 |
+
|
| 14 |
+
In May 2000, Guido and the Python core development team moved to
|
| 15 |
+
BeOpen.com to form the BeOpen PythonLabs team. In October of the same
|
| 16 |
+
year, the PythonLabs team moved to Digital Creations, which became
|
| 17 |
+
Zope Corporation. In 2001, the Python Software Foundation (PSF, see
|
| 18 |
+
https://www.python.org/psf/) was formed, a non-profit organization
|
| 19 |
+
created specifically to own Python-related Intellectual Property.
|
| 20 |
+
Zope Corporation was a sponsoring member of the PSF.
|
| 21 |
+
|
| 22 |
+
All Python releases are Open Source (see https://opensource.org for
|
| 23 |
+
the Open Source Definition). Historically, most, but not all, Python
|
| 24 |
+
releases have also been GPL-compatible; the table below summarizes
|
| 25 |
+
the various releases.
|
| 26 |
+
|
| 27 |
+
Release Derived Year Owner GPL-
|
| 28 |
+
from compatible? (1)
|
| 29 |
+
|
| 30 |
+
0.9.0 thru 1.2 1991-1995 CWI yes
|
| 31 |
+
1.3 thru 1.5.2 1.2 1995-1999 CNRI yes
|
| 32 |
+
1.6 1.5.2 2000 CNRI no
|
| 33 |
+
2.0 1.6 2000 BeOpen.com no
|
| 34 |
+
1.6.1 1.6 2001 CNRI yes (2)
|
| 35 |
+
2.1 2.0+1.6.1 2001 PSF no
|
| 36 |
+
2.0.1 2.0+1.6.1 2001 PSF yes
|
| 37 |
+
2.1.1 2.1+2.0.1 2001 PSF yes
|
| 38 |
+
2.1.2 2.1.1 2002 PSF yes
|
| 39 |
+
2.1.3 2.1.2 2002 PSF yes
|
| 40 |
+
2.2 and above 2.1.1 2001-now PSF yes
|
| 41 |
+
|
| 42 |
+
Footnotes:
|
| 43 |
+
|
| 44 |
+
(1) GPL-compatible doesn't mean that we're distributing Python under
|
| 45 |
+
the GPL. All Python licenses, unlike the GPL, let you distribute
|
| 46 |
+
a modified version without making your changes open source. The
|
| 47 |
+
GPL-compatible licenses make it possible to combine Python with
|
| 48 |
+
other software that is released under the GPL; the others don't.
|
| 49 |
+
|
| 50 |
+
(2) According to Richard Stallman, 1.6.1 is not GPL-compatible,
|
| 51 |
+
because its license has a choice of law clause. According to
|
| 52 |
+
CNRI, however, Stallman's lawyer has told CNRI's lawyer that 1.6.1
|
| 53 |
+
is "not incompatible" with the GPL.
|
| 54 |
+
|
| 55 |
+
Thanks to the many outside volunteers who have worked under Guido's
|
| 56 |
+
direction to make these releases possible.
|
| 57 |
+
|
| 58 |
+
|
| 59 |
+
B. TERMS AND CONDITIONS FOR ACCESSING OR OTHERWISE USING PYTHON
|
| 60 |
+
===============================================================
|
| 61 |
+
|
| 62 |
+
Python software and documentation are licensed under the
|
| 63 |
+
Python Software Foundation License Version 2.
|
| 64 |
+
|
| 65 |
+
Starting with Python 3.8.6, examples, recipes, and other code in
|
| 66 |
+
the documentation are dual licensed under the PSF License Version 2
|
| 67 |
+
and the Zero-Clause BSD license.
|
| 68 |
+
|
| 69 |
+
Some software incorporated into Python is under different licenses.
|
| 70 |
+
The licenses are listed with code falling under that license.
|
| 71 |
+
|
| 72 |
+
|
| 73 |
+
PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2
|
| 74 |
+
--------------------------------------------
|
| 75 |
+
|
| 76 |
+
1. This LICENSE AGREEMENT is between the Python Software Foundation
|
| 77 |
+
("PSF"), and the Individual or Organization ("Licensee") accessing and
|
| 78 |
+
otherwise using this software ("Python") in source or binary form and
|
| 79 |
+
its associated documentation.
|
| 80 |
+
|
| 81 |
+
2. Subject to the terms and conditions of this License Agreement, PSF hereby
|
| 82 |
+
grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce,
|
| 83 |
+
analyze, test, perform and/or display publicly, prepare derivative works,
|
| 84 |
+
distribute, and otherwise use Python alone or in any derivative version,
|
| 85 |
+
provided, however, that PSF's License Agreement and PSF's notice of copyright,
|
| 86 |
+
i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
|
| 87 |
+
2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 Python Software Foundation;
|
| 88 |
+
All Rights Reserved" are retained in Python alone or in any derivative version
|
| 89 |
+
prepared by Licensee.
|
| 90 |
+
|
| 91 |
+
3. In the event Licensee prepares a derivative work that is based on
|
| 92 |
+
or incorporates Python or any part thereof, and wants to make
|
| 93 |
+
the derivative work available to others as provided herein, then
|
| 94 |
+
Licensee hereby agrees to include in any such work a brief summary of
|
| 95 |
+
the changes made to Python.
|
| 96 |
+
|
| 97 |
+
4. PSF is making Python available to Licensee on an "AS IS"
|
| 98 |
+
basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
|
| 99 |
+
IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND
|
| 100 |
+
DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
|
| 101 |
+
FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT
|
| 102 |
+
INFRINGE ANY THIRD PARTY RIGHTS.
|
| 103 |
+
|
| 104 |
+
5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON
|
| 105 |
+
FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS
|
| 106 |
+
A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON,
|
| 107 |
+
OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
|
| 108 |
+
|
| 109 |
+
6. This License Agreement will automatically terminate upon a material
|
| 110 |
+
breach of its terms and conditions.
|
| 111 |
+
|
| 112 |
+
7. Nothing in this License Agreement shall be deemed to create any
|
| 113 |
+
relationship of agency, partnership, or joint venture between PSF and
|
| 114 |
+
Licensee. This License Agreement does not grant permission to use PSF
|
| 115 |
+
trademarks or trade name in a trademark sense to endorse or promote
|
| 116 |
+
products or services of Licensee, or any third party.
|
| 117 |
+
|
| 118 |
+
8. By copying, installing or otherwise using Python, Licensee
|
| 119 |
+
agrees to be bound by the terms and conditions of this License
|
| 120 |
+
Agreement.
|
| 121 |
+
|
| 122 |
+
|
| 123 |
+
BEOPEN.COM LICENSE AGREEMENT FOR PYTHON 2.0
|
| 124 |
+
-------------------------------------------
|
| 125 |
+
|
| 126 |
+
BEOPEN PYTHON OPEN SOURCE LICENSE AGREEMENT VERSION 1
|
| 127 |
+
|
| 128 |
+
1. This LICENSE AGREEMENT is between BeOpen.com ("BeOpen"), having an
|
| 129 |
+
office at 160 Saratoga Avenue, Santa Clara, CA 95051, and the
|
| 130 |
+
Individual or Organization ("Licensee") accessing and otherwise using
|
| 131 |
+
this software in source or binary form and its associated
|
| 132 |
+
documentation ("the Software").
|
| 133 |
+
|
| 134 |
+
2. Subject to the terms and conditions of this BeOpen Python License
|
| 135 |
+
Agreement, BeOpen hereby grants Licensee a non-exclusive,
|
| 136 |
+
royalty-free, world-wide license to reproduce, analyze, test, perform
|
| 137 |
+
and/or display publicly, prepare derivative works, distribute, and
|
| 138 |
+
otherwise use the Software alone or in any derivative version,
|
| 139 |
+
provided, however, that the BeOpen Python License is retained in the
|
| 140 |
+
Software, alone or in any derivative version prepared by Licensee.
|
| 141 |
+
|
| 142 |
+
3. BeOpen is making the Software available to Licensee on an "AS IS"
|
| 143 |
+
basis. BEOPEN MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
|
| 144 |
+
IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, BEOPEN MAKES NO AND
|
| 145 |
+
DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
|
| 146 |
+
FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE WILL NOT
|
| 147 |
+
INFRINGE ANY THIRD PARTY RIGHTS.
|
| 148 |
+
|
| 149 |
+
4. BEOPEN SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF THE
|
| 150 |
+
SOFTWARE FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS
|
| 151 |
+
AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THE SOFTWARE, OR ANY
|
| 152 |
+
DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
|
| 153 |
+
|
| 154 |
+
5. This License Agreement will automatically terminate upon a material
|
| 155 |
+
breach of its terms and conditions.
|
| 156 |
+
|
| 157 |
+
6. This License Agreement shall be governed by and interpreted in all
|
| 158 |
+
respects by the law of the State of California, excluding conflict of
|
| 159 |
+
law provisions. Nothing in this License Agreement shall be deemed to
|
| 160 |
+
create any relationship of agency, partnership, or joint venture
|
| 161 |
+
between BeOpen and Licensee. This License Agreement does not grant
|
| 162 |
+
permission to use BeOpen trademarks or trade names in a trademark
|
| 163 |
+
sense to endorse or promote products or services of Licensee, or any
|
| 164 |
+
third party. As an exception, the "BeOpen Python" logos available at
|
| 165 |
+
http://www.pythonlabs.com/logos.html may be used according to the
|
| 166 |
+
permissions granted on that web page.
|
| 167 |
+
|
| 168 |
+
7. By copying, installing or otherwise using the software, Licensee
|
| 169 |
+
agrees to be bound by the terms and conditions of this License
|
| 170 |
+
Agreement.
|
| 171 |
+
|
| 172 |
+
|
| 173 |
+
CNRI LICENSE AGREEMENT FOR PYTHON 1.6.1
|
| 174 |
+
---------------------------------------
|
| 175 |
+
|
| 176 |
+
1. This LICENSE AGREEMENT is between the Corporation for National
|
| 177 |
+
Research Initiatives, having an office at 1895 Preston White Drive,
|
| 178 |
+
Reston, VA 20191 ("CNRI"), and the Individual or Organization
|
| 179 |
+
("Licensee") accessing and otherwise using Python 1.6.1 software in
|
| 180 |
+
source or binary form and its associated documentation.
|
| 181 |
+
|
| 182 |
+
2. Subject to the terms and conditions of this License Agreement, CNRI
|
| 183 |
+
hereby grants Licensee a nonexclusive, royalty-free, world-wide
|
| 184 |
+
license to reproduce, analyze, test, perform and/or display publicly,
|
| 185 |
+
prepare derivative works, distribute, and otherwise use Python 1.6.1
|
| 186 |
+
alone or in any derivative version, provided, however, that CNRI's
|
| 187 |
+
License Agreement and CNRI's notice of copyright, i.e., "Copyright (c)
|
| 188 |
+
1995-2001 Corporation for National Research Initiatives; All Rights
|
| 189 |
+
Reserved" are retained in Python 1.6.1 alone or in any derivative
|
| 190 |
+
version prepared by Licensee. Alternately, in lieu of CNRI's License
|
| 191 |
+
Agreement, Licensee may substitute the following text (omitting the
|
| 192 |
+
quotes): "Python 1.6.1 is made available subject to the terms and
|
| 193 |
+
conditions in CNRI's License Agreement. This Agreement together with
|
| 194 |
+
Python 1.6.1 may be located on the internet using the following
|
| 195 |
+
unique, persistent identifier (known as a handle): 1895.22/1013. This
|
| 196 |
+
Agreement may also be obtained from a proxy server on the internet
|
| 197 |
+
using the following URL: http://hdl.handle.net/1895.22/1013".
|
| 198 |
+
|
| 199 |
+
3. In the event Licensee prepares a derivative work that is based on
|
| 200 |
+
or incorporates Python 1.6.1 or any part thereof, and wants to make
|
| 201 |
+
the derivative work available to others as provided herein, then
|
| 202 |
+
Licensee hereby agrees to include in any such work a brief summary of
|
| 203 |
+
the changes made to Python 1.6.1.
|
| 204 |
+
|
| 205 |
+
4. CNRI is making Python 1.6.1 available to Licensee on an "AS IS"
|
| 206 |
+
basis. CNRI MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
|
| 207 |
+
IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, CNRI MAKES NO AND
|
| 208 |
+
DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
|
| 209 |
+
FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON 1.6.1 WILL NOT
|
| 210 |
+
INFRINGE ANY THIRD PARTY RIGHTS.
|
| 211 |
+
|
| 212 |
+
5. CNRI SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON
|
| 213 |
+
1.6.1 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS
|
| 214 |
+
A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 1.6.1,
|
| 215 |
+
OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
|
| 216 |
+
|
| 217 |
+
6. This License Agreement will automatically terminate upon a material
|
| 218 |
+
breach of its terms and conditions.
|
| 219 |
+
|
| 220 |
+
7. This License Agreement shall be governed by the federal
|
| 221 |
+
intellectual property law of the United States, including without
|
| 222 |
+
limitation the federal copyright law, and, to the extent such
|
| 223 |
+
U.S. federal law does not apply, by the law of the Commonwealth of
|
| 224 |
+
Virginia, excluding Virginia's conflict of law provisions.
|
| 225 |
+
Notwithstanding the foregoing, with regard to derivative works based
|
| 226 |
+
on Python 1.6.1 that incorporate non-separable material that was
|
| 227 |
+
previously distributed under the GNU General Public License (GPL), the
|
| 228 |
+
law of the Commonwealth of Virginia shall govern this License
|
| 229 |
+
Agreement only as to issues arising under or with respect to
|
| 230 |
+
Paragraphs 4, 5, and 7 of this License Agreement. Nothing in this
|
| 231 |
+
License Agreement shall be deemed to create any relationship of
|
| 232 |
+
agency, partnership, or joint venture between CNRI and Licensee. This
|
| 233 |
+
License Agreement does not grant permission to use CNRI trademarks or
|
| 234 |
+
trade name in a trademark sense to endorse or promote products or
|
| 235 |
+
services of Licensee, or any third party.
|
| 236 |
+
|
| 237 |
+
8. By clicking on the "ACCEPT" button where indicated, or by copying,
|
| 238 |
+
installing or otherwise using Python 1.6.1, Licensee agrees to be
|
| 239 |
+
bound by the terms and conditions of this License Agreement.
|
| 240 |
+
|
| 241 |
+
ACCEPT
|
| 242 |
+
|
| 243 |
+
|
| 244 |
+
CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2
|
| 245 |
+
--------------------------------------------------
|
| 246 |
+
|
| 247 |
+
Copyright (c) 1991 - 1995, Stichting Mathematisch Centrum Amsterdam,
|
| 248 |
+
The Netherlands. All rights reserved.
|
| 249 |
+
|
| 250 |
+
Permission to use, copy, modify, and distribute this software and its
|
| 251 |
+
documentation for any purpose and without fee is hereby granted,
|
| 252 |
+
provided that the above copyright notice appear in all copies and that
|
| 253 |
+
both that copyright notice and this permission notice appear in
|
| 254 |
+
supporting documentation, and that the name of Stichting Mathematisch
|
| 255 |
+
Centrum or CWI not be used in advertising or publicity pertaining to
|
| 256 |
+
distribution of the software without specific, written prior
|
| 257 |
+
permission.
|
| 258 |
+
|
| 259 |
+
STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO
|
| 260 |
+
THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
| 261 |
+
FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE
|
| 262 |
+
FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
| 263 |
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
| 264 |
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
|
| 265 |
+
OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
| 266 |
+
|
| 267 |
+
ZERO-CLAUSE BSD LICENSE FOR CODE IN THE PYTHON DOCUMENTATION
|
| 268 |
+
----------------------------------------------------------------------
|
| 269 |
+
|
| 270 |
+
Permission to use, copy, modify, and/or distribute this software for any
|
| 271 |
+
purpose with or without fee is hereby granted.
|
| 272 |
+
|
| 273 |
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
| 274 |
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
| 275 |
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
| 276 |
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
| 277 |
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
| 278 |
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
| 279 |
+
PERFORMANCE OF THIS SOFTWARE.
|
docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/paths.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/build_base.sh
ADDED
|
@@ -0,0 +1,522 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
set -ex
|
| 3 |
+
|
| 4 |
+
# Get an updated config.sub and config.guess
|
| 5 |
+
cp $BUILD_PREFIX/share/libtool/build-aux/config.* .
|
| 6 |
+
|
| 7 |
+
# The LTO/PGO information was sourced from @pitrou and the Debian rules file in:
|
| 8 |
+
# http://http.debian.net/debian/pool/main/p/python3.6/python3.6_3.6.2-2.debian.tar.xz
|
| 9 |
+
# https://packages.debian.org/source/sid/python3.6
|
| 10 |
+
# or:
|
| 11 |
+
# http://bazaar.launchpad.net/~doko/python/pkg3.5-debian/view/head:/rules#L255
|
| 12 |
+
# .. but upstream regrtest.py now has --pgo (since >= 3.6) and skips tests that are:
|
| 13 |
+
# "not helpful for PGO".
|
| 14 |
+
|
| 15 |
+
VERFULL=${PKG_VERSION}
|
| 16 |
+
VER=${PKG_VERSION%.*}
|
| 17 |
+
VERNODOTS=${VER//./}
|
| 18 |
+
TCLTK_VER=${tk}
|
| 19 |
+
# Disables some PGO/LTO
|
| 20 |
+
QUICK_BUILD=no
|
| 21 |
+
|
| 22 |
+
_buildd_static=build-static
|
| 23 |
+
_buildd_shared=build-shared
|
| 24 |
+
_ENABLE_SHARED=--enable-shared
|
| 25 |
+
# We *still* build a shared lib here for non-static embedded use cases
|
| 26 |
+
_DISABLE_SHARED=--disable-shared
|
| 27 |
+
# Hack to allow easily comparing static vs shared interpreter performance
|
| 28 |
+
# .. hack because we just build it shared in both the build-static and
|
| 29 |
+
# build-shared directories.
|
| 30 |
+
# Yes this hack is a bit confusing, sorry about that.
|
| 31 |
+
if [[ ${PY_INTERP_LINKAGE_NATURE} == shared ]]; then
|
| 32 |
+
_DISABLE_SHARED=--enable-shared
|
| 33 |
+
_ENABLE_SHARED=--enable-shared
|
| 34 |
+
fi
|
| 35 |
+
|
| 36 |
+
# For debugging builds, set this to no to disable profile-guided optimization
|
| 37 |
+
if [[ ${DEBUG_C} == yes ]]; then
|
| 38 |
+
_OPTIMIZED=no
|
| 39 |
+
else
|
| 40 |
+
_OPTIMIZED=yes
|
| 41 |
+
fi
|
| 42 |
+
|
| 43 |
+
# Since these take very long to build in our emulated ci, disable for now
|
| 44 |
+
if [[ ${target_platform} == linux-aarch64 ]]; then
|
| 45 |
+
_OPTIMIZED=no
|
| 46 |
+
fi
|
| 47 |
+
|
| 48 |
+
if [[ ${target_platform} == linux-ppc64le ]]; then
|
| 49 |
+
_OPTIMIZED=no
|
| 50 |
+
# ppc64le cdt need to be rebuilt with files in powerpc64le-conda-linux-gnu instead of powerpc64le-conda_cos7-linux-gnu. In the mean time:
|
| 51 |
+
cp --force --archive --update --link $BUILD_PREFIX/powerpc64le-conda_cos7-linux-gnu/. $BUILD_PREFIX/powerpc64le-conda-linux-gnu
|
| 52 |
+
fi
|
| 53 |
+
|
| 54 |
+
declare -a _dbg_opts
|
| 55 |
+
if [[ ${DEBUG_PY} == yes ]]; then
|
| 56 |
+
# This Python will not be usable with non-debug Python modules.
|
| 57 |
+
_dbg_opts+=(--with-pydebug)
|
| 58 |
+
DBG=d
|
| 59 |
+
else
|
| 60 |
+
DBG=
|
| 61 |
+
fi
|
| 62 |
+
|
| 63 |
+
ABIFLAGS=${DBG}
|
| 64 |
+
VERABI=${VER}${DBG}
|
| 65 |
+
|
| 66 |
+
# Make sure the "python" value in conda_build_config.yaml is up to date.
|
| 67 |
+
test "${PY_VER}" = "${VER}"
|
| 68 |
+
|
| 69 |
+
# This is the mechanism by which we fall back to default gcc, but having it defined here
|
| 70 |
+
# would probably break the build by using incorrect settings and/or importing files that
|
| 71 |
+
# do not yet exist.
|
| 72 |
+
unset _PYTHON_SYSCONFIGDATA_NAME
|
| 73 |
+
unset _CONDA_PYTHON_SYSCONFIGDATA_NAME
|
| 74 |
+
|
| 75 |
+
# Prevent lib/python${VER}/_sysconfigdata_*.py from ending up with full paths to these things
|
| 76 |
+
# in _build_env because _build_env will not get found during prefix replacement, only _h_env_placeh ...
|
| 77 |
+
AR=$(basename "${AR}")
|
| 78 |
+
|
| 79 |
+
# CC must contain the string 'gcc' or else distutils thinks it is on macOS and uses '-R' to set rpaths.
|
| 80 |
+
if [[ ${target_platform} == osx-* ]]; then
|
| 81 |
+
CC=$(basename "${CC}")
|
| 82 |
+
else
|
| 83 |
+
CC=$(basename "${GCC}")
|
| 84 |
+
fi
|
| 85 |
+
CXX=$(basename "${CXX}")
|
| 86 |
+
RANLIB=$(basename "${RANLIB}")
|
| 87 |
+
READELF=$(basename "${READELF}")
|
| 88 |
+
|
| 89 |
+
if [[ ${HOST} =~ .*darwin.* ]] && [[ -n ${CONDA_BUILD_SYSROOT} ]]; then
|
| 90 |
+
# Python's setup.py will figure out that this is a macOS sysroot.
|
| 91 |
+
CFLAGS="-isysroot ${CONDA_BUILD_SYSROOT} "${CFLAGS}
|
| 92 |
+
LDFLAGS="-isysroot ${CONDA_BUILD_SYSROOT} "${LDFLAGS}
|
| 93 |
+
CPPFLAGS="-isysroot ${CONDA_BUILD_SYSROOT} "${CPPFLAGS}
|
| 94 |
+
fi
|
| 95 |
+
|
| 96 |
+
# Debian uses -O3 then resets it at the end to -O2 in _sysconfigdata.py
|
| 97 |
+
if [[ ${_OPTIMIZED} = yes ]]; then
|
| 98 |
+
CPPFLAGS=$(echo "${CPPFLAGS}" | sed "s/-O2/-O3/g")
|
| 99 |
+
CFLAGS=$(echo "${CFLAGS}" | sed "s/-O2/-O3/g")
|
| 100 |
+
CXXFLAGS=$(echo "${CXXFLAGS}" | sed "s/-O2/-O3/g")
|
| 101 |
+
fi
|
| 102 |
+
|
| 103 |
+
if [[ ${CONDA_FORGE} == yes ]]; then
|
| 104 |
+
${SYS_PYTHON} ${RECIPE_DIR}/brand_python.py
|
| 105 |
+
fi
|
| 106 |
+
|
| 107 |
+
if [[ "$target_platform" == linux-* ]]; then
|
| 108 |
+
cp ${PREFIX}/include/uuid/uuid.h ${PREFIX}/include/uuid.h
|
| 109 |
+
fi
|
| 110 |
+
|
| 111 |
+
declare -a LTO_CFLAGS=()
|
| 112 |
+
|
| 113 |
+
# Following is needed for building extensions like zlib
|
| 114 |
+
CPPFLAGS=${CPPFLAGS}" -I${PREFIX}/include"
|
| 115 |
+
|
| 116 |
+
re='^(.*)(-I[^ ]*)(.*)$'
|
| 117 |
+
if [[ ${CFLAGS} =~ $re ]]; then
|
| 118 |
+
CFLAGS="${BASH_REMATCH[1]}${BASH_REMATCH[3]}"
|
| 119 |
+
fi
|
| 120 |
+
|
| 121 |
+
# Force rebuild to avoid:
|
| 122 |
+
# ../work/Modules/unicodename_db.h:24118:30: note: (near initialization for 'code_hash')
|
| 123 |
+
# ../work/Modules/unicodename_db.h:24118:33: warning: excess elements in scalar initializer
|
| 124 |
+
# 0, 0, 12018, 0, 0, 0, 0, 0, 4422, 4708, 3799, 119358, 119357, 0, 120510,
|
| 125 |
+
# ^~~~
|
| 126 |
+
# This should have been fixed by https://github.com/python/cpython/commit/7c69c1c0fba8c1c8ff3969bce4c1135736a4cc58
|
| 127 |
+
# .. but that appears incomplete. In particular, the generated files contain:
|
| 128 |
+
# /* this file was generated by Tools/unicode/makeunicodedata.py 3.2 */
|
| 129 |
+
# .. yet the PR updated to version of makeunicodedata.py to 3.3
|
| 130 |
+
# rm -f Modules/unicodedata_db.h Modules/unicodename_db.h
|
| 131 |
+
# ${SYS_PYTHON} ${SRC_DIR}/Tools/unicode/makeunicodedata.py
|
| 132 |
+
# .. instead we revert this commit for now.
|
| 133 |
+
|
| 134 |
+
export CPPFLAGS CFLAGS CXXFLAGS LDFLAGS
|
| 135 |
+
|
| 136 |
+
declare -a _common_configure_args
|
| 137 |
+
|
| 138 |
+
if [[ ${target_platform} == osx-* ]]; then
|
| 139 |
+
sed -i -e "s/@OSX_ARCH@/$ARCH/g" Lib/distutils/unixccompiler.py
|
| 140 |
+
fi
|
| 141 |
+
|
| 142 |
+
if [[ "${CONDA_BUILD_CROSS_COMPILATION}" == "1" ]]; then
|
| 143 |
+
# Build the exact same Python for the build machine. It would be nice (and might be
|
| 144 |
+
# possible already?) to be able to make this just an 'exact' pinned build dependency
|
| 145 |
+
# of a split-package?
|
| 146 |
+
BUILD_PYTHON_PREFIX=${PWD}/build-python-install
|
| 147 |
+
mkdir build-python-build
|
| 148 |
+
pushd build-python-build
|
| 149 |
+
(unset CPPFLAGS LDFLAGS;
|
| 150 |
+
export CC=${CC_FOR_BUILD} \
|
| 151 |
+
CXX=${CXX_FOR_BUILD} \
|
| 152 |
+
CPP="${CC_FOR_BUILD} -E" \
|
| 153 |
+
CFLAGS="-O2" \
|
| 154 |
+
AR="$(${CC_FOR_BUILD} --print-prog-name=ar)" \
|
| 155 |
+
RANLIB="$(${CC_FOR_BUILD} --print-prog-name=ranlib)" \
|
| 156 |
+
LD="$(${CC_FOR_BUILD} --print-prog-name=ld)" && \
|
| 157 |
+
${SRC_DIR}/configure --build=${BUILD} \
|
| 158 |
+
--host=${BUILD} \
|
| 159 |
+
--prefix=${BUILD_PYTHON_PREFIX} \
|
| 160 |
+
--with-ensurepip=no \
|
| 161 |
+
--with-tzpath=${PREFIX}/share/zoneinfo \
|
| 162 |
+
--with-platlibdir=lib && \
|
| 163 |
+
make -j${CPU_COUNT} && \
|
| 164 |
+
make install)
|
| 165 |
+
export PATH=${BUILD_PYTHON_PREFIX}/bin:${PATH}
|
| 166 |
+
ln -s ${BUILD_PYTHON_PREFIX}/bin/python${VER} ${BUILD_PYTHON_PREFIX}/bin/python
|
| 167 |
+
popd
|
| 168 |
+
echo "ac_cv_file__dev_ptmx=yes" > config.site
|
| 169 |
+
echo "ac_cv_file__dev_ptc=yes" >> config.site
|
| 170 |
+
echo "ac_cv_pthread=yes" >> config.site
|
| 171 |
+
echo "ac_cv_little_endian_double=yes" >> config.site
|
| 172 |
+
if [[ ${target_platform} == osx-arm64 ]]; then
|
| 173 |
+
echo "ac_cv_aligned_required=no" >> config.site
|
| 174 |
+
echo "ac_cv_file__dev_ptc=no" >> config.site
|
| 175 |
+
echo "ac_cv_pthread_is_default=yes" >> config.site
|
| 176 |
+
echo "ac_cv_working_tzset=yes" >> config.site
|
| 177 |
+
echo "ac_cv_pthread_system_supported=yes" >> config.site
|
| 178 |
+
fi
|
| 179 |
+
export CONFIG_SITE=${PWD}/config.site
|
| 180 |
+
# This is needed for libffi:
|
| 181 |
+
export PKG_CONFIG_PATH=${PREFIX}/lib/pkgconfig
|
| 182 |
+
_common_configure_args+=(--with-build-python=${BUILD_PYTHON_PREFIX}/bin/python)
|
| 183 |
+
fi
|
| 184 |
+
|
| 185 |
+
# This causes setup.py to query the sysroot directories from the compiler, something which
|
| 186 |
+
# IMHO should be done by default anyway with a flag to disable it to workaround broken ones.
|
| 187 |
+
# Technically, setting _PYTHON_HOST_PLATFORM causes setup.py to consider it cross_compiling
|
| 188 |
+
if [[ -n ${HOST} ]]; then
|
| 189 |
+
if [[ ${HOST} =~ .*darwin.* ]]; then
|
| 190 |
+
# Even if BUILD is .*darwin.* you get better isolation by cross_compiling (no /usr/local)
|
| 191 |
+
IFS='-' read -r host_arch host_os host_kernel <<<"${HOST}"
|
| 192 |
+
export _PYTHON_HOST_PLATFORM=darwin-${host_arch}
|
| 193 |
+
else
|
| 194 |
+
IFS='-' read -r host_arch host_vendor host_os host_libc <<<"${HOST}"
|
| 195 |
+
export _PYTHON_HOST_PLATFORM=${host_os}-${host_arch}
|
| 196 |
+
fi
|
| 197 |
+
fi
|
| 198 |
+
|
| 199 |
+
if [[ ${target_platform} == osx-64 ]]; then
|
| 200 |
+
export MACHDEP=darwin
|
| 201 |
+
export ac_sys_system=Darwin
|
| 202 |
+
export ac_sys_release=13.4.0
|
| 203 |
+
export MACOSX_DEFAULT_ARCH=x86_64
|
| 204 |
+
# TODO: check with LLVM 12 if the following hack is needed.
|
| 205 |
+
# https://reviews.llvm.org/D76461 may have fixed the need for the following hack.
|
| 206 |
+
echo '#!/bin/bash' > $BUILD_PREFIX/bin/$HOST-llvm-ar
|
| 207 |
+
echo "$BUILD_PREFIX/bin/llvm-ar --format=darwin" '"$@"' >> $BUILD_PREFIX/bin/$HOST-llvm-ar
|
| 208 |
+
chmod +x $BUILD_PREFIX/bin/$HOST-llvm-ar
|
| 209 |
+
export ARCHFLAGS="-arch x86_64"
|
| 210 |
+
elif [[ ${target_platform} == osx-arm64 ]]; then
|
| 211 |
+
export MACHDEP=darwin
|
| 212 |
+
export ac_sys_system=Darwin
|
| 213 |
+
export ac_sys_release=20.0.0
|
| 214 |
+
export MACOSX_DEFAULT_ARCH=arm64
|
| 215 |
+
echo '#!/bin/bash' > $BUILD_PREFIX/bin/$HOST-llvm-ar
|
| 216 |
+
echo "$BUILD_PREFIX/bin/llvm-ar --format=darwin" '"$@"' >> $BUILD_PREFIX/bin/$HOST-llvm-ar
|
| 217 |
+
chmod +x $BUILD_PREFIX/bin/$HOST-llvm-ar
|
| 218 |
+
export ARCHFLAGS="-arch arm64"
|
| 219 |
+
export CFLAGS="$CFLAGS $ARCHFLAGS"
|
| 220 |
+
elif [[ ${target_platform} == linux-* ]]; then
|
| 221 |
+
export MACHDEP=linux
|
| 222 |
+
export ac_sys_system=Linux
|
| 223 |
+
export ac_sys_release=
|
| 224 |
+
fi
|
| 225 |
+
|
| 226 |
+
# Not used at present but we should run 'make test' and finish up TESTOPTS (see debians rules).
|
| 227 |
+
declare -a TEST_EXCLUDES
|
| 228 |
+
TEST_EXCLUDES+=(test_ensurepip test_venv)
|
| 229 |
+
TEST_EXCLUDES+=(test_tcl test_codecmaps_cn test_codecmaps_hk
|
| 230 |
+
test_codecmaps_jp test_codecmaps_kr test_codecmaps_tw
|
| 231 |
+
test_normalization test_ossaudiodev test_socket)
|
| 232 |
+
if [[ ! -f /dev/dsp ]]; then
|
| 233 |
+
TEST_EXCLUDES+=(test_linuxaudiodev test_ossaudiodev)
|
| 234 |
+
fi
|
| 235 |
+
# hangs on Aarch64, see LP: #1264354
|
| 236 |
+
if [[ ${CC} =~ .*-aarch64.* ]]; then
|
| 237 |
+
TEST_EXCLUDES+=(test_faulthandler)
|
| 238 |
+
fi
|
| 239 |
+
if [[ ${CC} =~ .*-arm.* ]]; then
|
| 240 |
+
TEST_EXCLUDES+=(test_ctypes)
|
| 241 |
+
TEST_EXCLUDES+=(test_compiler)
|
| 242 |
+
fi
|
| 243 |
+
|
| 244 |
+
_common_configure_args+=(--prefix=${PREFIX})
|
| 245 |
+
_common_configure_args+=(--build=${BUILD})
|
| 246 |
+
_common_configure_args+=(--host=${HOST})
|
| 247 |
+
_common_configure_args+=(--enable-ipv6)
|
| 248 |
+
_common_configure_args+=(--with-ensurepip=no)
|
| 249 |
+
_common_configure_args+=(--with-tzpath=${PREFIX}/share/zoneinfo)
|
| 250 |
+
_common_configure_args+=(--with-computed-gotos)
|
| 251 |
+
_common_configure_args+=(--with-system-ffi)
|
| 252 |
+
_common_configure_args+=(--with-system-expat)
|
| 253 |
+
_common_configure_args+=(--enable-loadable-sqlite-extensions)
|
| 254 |
+
_common_configure_args+=(--with-tcltk-includes="-I${PREFIX}/include")
|
| 255 |
+
_common_configure_args+=("--with-tcltk-libs=-L${PREFIX}/lib -ltcl8.6 -ltk8.6")
|
| 256 |
+
_common_configure_args+=(--with-platlibdir=lib)
|
| 257 |
+
|
| 258 |
+
# Add more optimization flags for the static Python interpreter:
|
| 259 |
+
declare -a PROFILE_TASK=()
|
| 260 |
+
if [[ ${_OPTIMIZED} == yes ]]; then
|
| 261 |
+
_common_configure_args+=(--with-lto)
|
| 262 |
+
if [[ "$CONDA_BUILD_CROSS_COMPILATION" != "1" ]]; then
|
| 263 |
+
_common_configure_args+=(--enable-optimizations)
|
| 264 |
+
_MAKE_TARGET=profile-opt
|
| 265 |
+
# To speed up build times during testing (1):
|
| 266 |
+
if [[ ${QUICK_BUILD} == yes ]]; then
|
| 267 |
+
# TODO :: It seems this is just profiling everything, on Windows, only 40 odd tests are
|
| 268 |
+
# run while on Unix, all 400+ are run, making this slower and less well curated
|
| 269 |
+
_PROFILE_TASK+=(PROFILE_TASK="-m test --pgo")
|
| 270 |
+
else
|
| 271 |
+
# From talking to Steve Dower, who implemented pgo/pgo-extended, it is really not worth
|
| 272 |
+
# it to run pgo-extended (which runs the whole test-suite). The --pgo set of tests are
|
| 273 |
+
# curated specifically to be useful/appropriate for pgo instrumentation.
|
| 274 |
+
# _PROFILE_TASK+=(PROFILE_TASK="-m test --pgo-extended")
|
| 275 |
+
_PROFILE_TASK+=(PROFILE_TASK="-m test --pgo")
|
| 276 |
+
fi
|
| 277 |
+
fi
|
| 278 |
+
if [[ ${CC} =~ .*gcc.* ]]; then
|
| 279 |
+
LTO_CFLAGS+=(-fuse-linker-plugin)
|
| 280 |
+
LTO_CFLAGS+=(-ffat-lto-objects)
|
| 281 |
+
# -flto must come after -flto-partition due to the replacement code
|
| 282 |
+
# TODO :: Replace the replacement code using conda-build's in-build regex replacement.
|
| 283 |
+
LTO_CFLAGS+=(-flto-partition=none)
|
| 284 |
+
LTO_CFLAGS+=(-flto)
|
| 285 |
+
else
|
| 286 |
+
# TODO :: Check if -flto=thin gives better results. It is about faster
|
| 287 |
+
# compilation rather than faster execution so probably not:
|
| 288 |
+
# http://clang.llvm.org/docs/ThinLTO.html
|
| 289 |
+
# http://blog.llvm.org/2016/06/thinlto-scalable-and-incremental-lto.html
|
| 290 |
+
LTO_CFLAGS+=(-flto)
|
| 291 |
+
# -flto breaks the check to determine whether float word ordering is bigendian
|
| 292 |
+
# see:
|
| 293 |
+
# https://bugs.python.org/issue28015
|
| 294 |
+
# https://bugs.python.org/issue38527
|
| 295 |
+
# manually specify this setting
|
| 296 |
+
export ax_cv_c_float_words_bigendian=no
|
| 297 |
+
fi
|
| 298 |
+
export CFLAGS="${CFLAGS} ${LTO_CFLAGS[@]}"
|
| 299 |
+
else
|
| 300 |
+
_MAKE_TARGET=
|
| 301 |
+
fi
|
| 302 |
+
|
| 303 |
+
mkdir -p ${_buildd_shared}
|
| 304 |
+
pushd ${_buildd_shared}
|
| 305 |
+
${SRC_DIR}/configure "${_common_configure_args[@]}" \
|
| 306 |
+
"${_dbg_opts[@]}" \
|
| 307 |
+
--oldincludedir=${BUILD_PREFIX}/${HOST}/sysroot/usr/include \
|
| 308 |
+
--enable-shared
|
| 309 |
+
popd
|
| 310 |
+
|
| 311 |
+
mkdir -p ${_buildd_static}
|
| 312 |
+
pushd ${_buildd_static}
|
| 313 |
+
${SRC_DIR}/configure "${_common_configure_args[@]}" \
|
| 314 |
+
"${_dbg_opts[@]}" \
|
| 315 |
+
-oldincludedir=${BUILD_PREFIX}/${HOST}/sysroot/usr/include \
|
| 316 |
+
${_DISABLE_SHARED} "${_PROFILE_TASK[@]}"
|
| 317 |
+
popd
|
| 318 |
+
|
| 319 |
+
if [[ "${CI}" == "travis" ]]; then
|
| 320 |
+
# Travis has issues with long logs
|
| 321 |
+
make -j${CPU_COUNT} -C ${_buildd_static} \
|
| 322 |
+
EXTRA_CFLAGS="${EXTRA_CFLAGS}" \
|
| 323 |
+
${_MAKE_TARGET} "${_PROFILE_TASK[@]}" 2>&1 >make-static.log
|
| 324 |
+
else
|
| 325 |
+
make -j${CPU_COUNT} -C ${_buildd_static} \
|
| 326 |
+
EXTRA_CFLAGS="${EXTRA_CFLAGS}" \
|
| 327 |
+
${_MAKE_TARGET} "${_PROFILE_TASK[@]}" 2>&1 | tee make-static.log
|
| 328 |
+
fi
|
| 329 |
+
if rg "Failed to build these modules" make-static.log; then
|
| 330 |
+
echo "(static) :: Failed to build some modules, check the log"
|
| 331 |
+
exit 1
|
| 332 |
+
fi
|
| 333 |
+
|
| 334 |
+
if [[ "${CI}" == "travis" ]]; then
|
| 335 |
+
# Travis has issues with long logs
|
| 336 |
+
make -j${CPU_COUNT} -C ${_buildd_shared} \
|
| 337 |
+
EXTRA_CFLAGS="${EXTRA_CFLAGS}" 2>&1 >make-shared.log
|
| 338 |
+
else
|
| 339 |
+
make -j${CPU_COUNT} -C ${_buildd_shared} \
|
| 340 |
+
EXTRA_CFLAGS="${EXTRA_CFLAGS}" 2>&1 | tee make-shared.log
|
| 341 |
+
fi
|
| 342 |
+
if rg "Failed to build these modules" make-shared.log; then
|
| 343 |
+
echo "(shared) :: Failed to build some modules, check the log"
|
| 344 |
+
exit 1
|
| 345 |
+
fi
|
| 346 |
+
|
| 347 |
+
# build a static library with PIC objects and without LTO/PGO
|
| 348 |
+
make -j${CPU_COUNT} -C ${_buildd_shared} \
|
| 349 |
+
EXTRA_CFLAGS="${EXTRA_CFLAGS}" \
|
| 350 |
+
LIBRARY=libpython${VERABI}-pic.a libpython${VERABI}-pic.a
|
| 351 |
+
|
| 352 |
+
make -C ${_buildd_static} install
|
| 353 |
+
|
| 354 |
+
declare -a _FLAGS_REPLACE=()
|
| 355 |
+
if [[ ${_OPTIMIZED} == yes ]]; then
|
| 356 |
+
_FLAGS_REPLACE+=(-O3)
|
| 357 |
+
_FLAGS_REPLACE+=(-O2)
|
| 358 |
+
_FLAGS_REPLACE+=("-fprofile-use")
|
| 359 |
+
_FLAGS_REPLACE+=("")
|
| 360 |
+
_FLAGS_REPLACE+=("-fprofile-correction")
|
| 361 |
+
_FLAGS_REPLACE+=("")
|
| 362 |
+
_FLAGS_REPLACE+=("-L.")
|
| 363 |
+
_FLAGS_REPLACE+=("")
|
| 364 |
+
for _LTO_CFLAG in "${LTO_CFLAGS[@]}"; do
|
| 365 |
+
_FLAGS_REPLACE+=(${_LTO_CFLAG})
|
| 366 |
+
_FLAGS_REPLACE+=("")
|
| 367 |
+
done
|
| 368 |
+
fi
|
| 369 |
+
# Install the shared library (for people who embed Python only, e.g. GDB).
|
| 370 |
+
# Linking module extensions to this on Linux is redundant (but harmless).
|
| 371 |
+
# Linking module extensions to this on Darwin is harmful (multiply defined symbols).
|
| 372 |
+
cp -pf ${_buildd_shared}/libpython*${SHLIB_EXT}* ${PREFIX}/lib/
|
| 373 |
+
if [[ ${target_platform} =~ .*linux.* ]]; then
|
| 374 |
+
ln -sf ${PREFIX}/lib/libpython${VERABI}${SHLIB_EXT}.1.0 ${PREFIX}/lib/libpython${VERABI}${SHLIB_EXT}
|
| 375 |
+
fi
|
| 376 |
+
|
| 377 |
+
SYSCONFIG=$(find ${_buildd_static}/$(cat ${_buildd_static}/pybuilddir.txt) -name "_sysconfigdata*.py" -print0)
|
| 378 |
+
cat ${SYSCONFIG} | ${SYS_PYTHON} "${RECIPE_DIR}"/replace-word-pairs.py \
|
| 379 |
+
"${_FLAGS_REPLACE[@]}" \
|
| 380 |
+
> ${PREFIX}/lib/python${VER}/$(basename ${SYSCONFIG})
|
| 381 |
+
MAKEFILE=$(find ${PREFIX}/lib/python${VER}/ -path "*config-*/Makefile" -print0)
|
| 382 |
+
cp ${MAKEFILE} /tmp/Makefile-$$
|
| 383 |
+
cat /tmp/Makefile-$$ | ${SYS_PYTHON} "${RECIPE_DIR}"/replace-word-pairs.py \
|
| 384 |
+
"${_FLAGS_REPLACE[@]}" \
|
| 385 |
+
> ${MAKEFILE}
|
| 386 |
+
# Check to see that our differences took.
|
| 387 |
+
# echo diff -urN ${SYSCONFIG} ${PREFIX}/lib/python${VER}/$(basename ${SYSCONFIG})
|
| 388 |
+
# diff -urN ${SYSCONFIG} ${PREFIX}/lib/python${VER}/$(basename ${SYSCONFIG})
|
| 389 |
+
|
| 390 |
+
# Python installs python${VER}m and python${VER}, one as a hardlink to the other. conda-build breaks these
|
| 391 |
+
# by copying. Since the executable may be static it may be very large so change one to be a symlink
|
| 392 |
+
# of the other. In this case, python${VER}m will be the symlink.
|
| 393 |
+
if [[ -f ${PREFIX}/bin/python${VER}m ]]; then
|
| 394 |
+
rm -f ${PREFIX}/bin/python${VER}m
|
| 395 |
+
ln -s ${PREFIX}/bin/python${VER} ${PREFIX}/bin/python${VER}m
|
| 396 |
+
fi
|
| 397 |
+
ln -s ${PREFIX}/bin/python${VER} ${PREFIX}/bin/python
|
| 398 |
+
ln -s ${PREFIX}/bin/pydoc${VER} ${PREFIX}/bin/pydoc
|
| 399 |
+
# Workaround for https://github.com/conda/conda/issues/10969
|
| 400 |
+
ln -s ${PREFIX}/bin/python3.11 ${PREFIX}/bin/python3.1
|
| 401 |
+
|
| 402 |
+
# Remove test data to save space
|
| 403 |
+
# Though keep `support` as some things use that.
|
| 404 |
+
# TODO :: Make a subpackage for this once we implement multi-level testing.
|
| 405 |
+
pushd ${PREFIX}/lib/python${VER}
|
| 406 |
+
mkdir test_keep
|
| 407 |
+
mv test/__init__.py test/support test/test_support* test/test_script_helper* test_keep/
|
| 408 |
+
rm -rf test */test
|
| 409 |
+
mv test_keep test
|
| 410 |
+
popd
|
| 411 |
+
|
| 412 |
+
# Size reductions:
|
| 413 |
+
pushd ${PREFIX}
|
| 414 |
+
if [[ -f lib/libpython${VERABI}.a ]]; then
|
| 415 |
+
chmod +w lib/libpython${VERABI}.a
|
| 416 |
+
${STRIP} -S lib/libpython${VERABI}.a
|
| 417 |
+
fi
|
| 418 |
+
CONFIG_LIBPYTHON=$(find lib/python${VER}/config-${VERABI}* -name "libpython${VERABI}.a")
|
| 419 |
+
if [[ -f lib/libpython${VERABI}.a ]] && [[ -f ${CONFIG_LIBPYTHON} ]]; then
|
| 420 |
+
chmod +w ${CONFIG_LIBPYTHON}
|
| 421 |
+
rm ${CONFIG_LIBPYTHON}
|
| 422 |
+
fi
|
| 423 |
+
popd
|
| 424 |
+
|
| 425 |
+
# OLD_HOST is with CentOS version in them. When building this recipe
|
| 426 |
+
# with the compilers from conda-forge OLD_HOST != HOST, but when building
|
| 427 |
+
# with the compilers from defaults OLD_HOST == HOST. Both cases are handled in the
|
| 428 |
+
# code below
|
| 429 |
+
case "$target_platform" in
|
| 430 |
+
linux-64)
|
| 431 |
+
OLD_HOST=$(echo ${HOST} | sed -e 's/-conda-/-conda_cos6-/g')
|
| 432 |
+
;;
|
| 433 |
+
linux-*)
|
| 434 |
+
OLD_HOST=$(echo ${HOST} | sed -e 's/-conda-/-conda_cos7-/g')
|
| 435 |
+
;;
|
| 436 |
+
*)
|
| 437 |
+
OLD_HOST=$HOST
|
| 438 |
+
;;
|
| 439 |
+
esac
|
| 440 |
+
|
| 441 |
+
# Copy sysconfig that gets recorded to a non-default name
|
| 442 |
+
# using the new compilers with python will require setting _PYTHON_SYSCONFIGDATA_NAME
|
| 443 |
+
# to the name of this file (minus the .py extension)
|
| 444 |
+
pushd "${PREFIX}"/lib/python${VER}
|
| 445 |
+
# On Python 3.5 _sysconfigdata.py was getting copied in here and compiled for some reason.
|
| 446 |
+
# This breaks our attempt to find the right one as recorded_name.
|
| 447 |
+
find lib-dynload -name "_sysconfigdata*.py*" -exec rm {} \;
|
| 448 |
+
recorded_name=$(find . -name "_sysconfigdata*.py")
|
| 449 |
+
our_compilers_name=_sysconfigdata_$(echo ${HOST} | sed -e 's/[.-]/_/g').py
|
| 450 |
+
# So we can see if anything has significantly diverged by looking in a built package.
|
| 451 |
+
cp ${recorded_name} ${recorded_name}.orig
|
| 452 |
+
cp ${recorded_name} sysconfigfile
|
| 453 |
+
# fdebug-prefix-map for python work dir is useless for extensions
|
| 454 |
+
sed -i.bak "s@-fdebug-prefix-map=$SRC_DIR=/usr/local/src/conda/python-$PKG_VERSION@@g" sysconfigfile
|
| 455 |
+
sed -i.bak "s@-fdebug-prefix-map=$PREFIX=/usr/local/src/conda-prefix@@g" sysconfigfile
|
| 456 |
+
# Append the conda-forge zoneinfo to the end
|
| 457 |
+
sed -i.bak "s@zoneinfo'@zoneinfo:$PREFIX/share/tzinfo'@g" sysconfigfile
|
| 458 |
+
# Remove osx sysroot as it depends on the build machine
|
| 459 |
+
sed -i.bak "s@-isysroot @@g" sysconfigfile
|
| 460 |
+
# make sure $CONDA_BUILD_SYSROOT is not empty ...
|
| 461 |
+
if [[ ${HOST} =~ .*darwin.* ]] && [[ -n ${CONDA_BUILD_SYSROOT} ]]; then
|
| 462 |
+
sed -i.bak "s@$CONDA_BUILD_SYSROOT @@g" sysconfigfile
|
| 463 |
+
fi
|
| 464 |
+
# Remove unfilled config option
|
| 465 |
+
sed -i.bak "s/@SGI_ABI@//g" sysconfigfile
|
| 466 |
+
sed -i.bak "s@$BUILD_PREFIX/bin/${HOST}-llvm-ar@${HOST}-ar@g" sysconfigfile
|
| 467 |
+
# Remove GNULD=yes to make sure new-dtags are not used
|
| 468 |
+
sed -i.bak "s/'GNULD': 'yes'/'GNULD': 'no'/g" sysconfigfile
|
| 469 |
+
cp sysconfigfile ${our_compilers_name}
|
| 470 |
+
|
| 471 |
+
sed -i.bak "s@${HOST}@${OLD_HOST}@g" sysconfigfile
|
| 472 |
+
old_compiler_name=_sysconfigdata_$(echo ${OLD_HOST} | sed -e 's/[.-]/_/g').py
|
| 473 |
+
cp sysconfigfile ${old_compiler_name}
|
| 474 |
+
|
| 475 |
+
# For system gcc remove the triple
|
| 476 |
+
sed -i.bak "s@$OLD_HOST-c++@g++@g" sysconfigfile
|
| 477 |
+
sed -i.bak "s@$OLD_HOST-@@g" sysconfigfile
|
| 478 |
+
if [[ "$target_platform" == linux* ]]; then
|
| 479 |
+
# For linux, make sure the system gcc uses our linker
|
| 480 |
+
sed -i.bak "s@-pthread@-pthread -B $PREFIX/compiler_compat@g" sysconfigfile
|
| 481 |
+
fi
|
| 482 |
+
# Don't set -march and -mtune for system gcc
|
| 483 |
+
sed -i.bak "s@-march=[^( |\\\"|\\\')]*@@g" sysconfigfile
|
| 484 |
+
sed -i.bak "s@-mtune=[^( |\\\"|\\\')]*@@g" sysconfigfile
|
| 485 |
+
# Remove these flags that older compilers and linkers may not know
|
| 486 |
+
for flag in "-fstack-protector-strong" "-ffunction-sections" "-pipe" "-fno-plt" \
|
| 487 |
+
"-ftree-vectorize" "-Wl,--sort-common" "-Wl,--as-needed" "-Wl,-z,relro" \
|
| 488 |
+
"-Wl,-z,now" "-Wl,--disable-new-dtags" "-Wl,--gc-sections" "-Wl,-O2" \
|
| 489 |
+
"-fPIE" "-ftree-vectorize" "-mssse3" "-Wl,-pie" "-Wl,-dead_strip_dylibs" \
|
| 490 |
+
"-Wl,-headerpad_max_install_names"; do
|
| 491 |
+
sed -i.bak "s@$flag@@g" sysconfigfile
|
| 492 |
+
done
|
| 493 |
+
# Cleanup some extra spaces from above
|
| 494 |
+
sed -i.bak "s@' [ ]*@'@g" sysconfigfile
|
| 495 |
+
cp sysconfigfile $recorded_name
|
| 496 |
+
echo "========================sysconfig==========================="
|
| 497 |
+
cat $recorded_name
|
| 498 |
+
echo "============================================================"
|
| 499 |
+
|
| 500 |
+
rm sysconfigfile
|
| 501 |
+
rm sysconfigfile.bak
|
| 502 |
+
popd
|
| 503 |
+
|
| 504 |
+
if [[ ${HOST} =~ .*linux.* ]]; then
|
| 505 |
+
mkdir -p ${PREFIX}/compiler_compat
|
| 506 |
+
ln -s ${PREFIX}/bin/${HOST}-ld ${PREFIX}/compiler_compat/ld
|
| 507 |
+
echo "Files in this folder are to enhance backwards compatibility of anaconda software with older compilers." > ${PREFIX}/compiler_compat/README
|
| 508 |
+
echo "See: https://github.com/conda/conda/issues/6030 for more information." >> ${PREFIX}/compiler_compat/README
|
| 509 |
+
fi
|
| 510 |
+
|
| 511 |
+
# There are some strange distutils files around. Delete them
|
| 512 |
+
rm -rf ${PREFIX}/lib/python${VER}/distutils/command/*.exe
|
| 513 |
+
|
| 514 |
+
python -c "import compileall,os;compileall.compile_dir(os.environ['PREFIX'])"
|
| 515 |
+
rm ${PREFIX}/lib/libpython${VER}.a
|
| 516 |
+
if [[ "$target_platform" == linux-* ]]; then
|
| 517 |
+
rm ${PREFIX}/include/uuid.h
|
| 518 |
+
fi
|
| 519 |
+
|
| 520 |
+
# Workaround for old conda versions which fail to install noarch packages for Python 3.10+
|
| 521 |
+
# https://github.com/conda/conda/issues/10969
|
| 522 |
+
ln -s "${PREFIX}/lib/python3.11" "${PREFIX}/lib/python3.1"
|
docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/conda_build_config.yaml
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
BUILD: x86_64-conda_el8-linux-gnu
|
| 2 |
+
bzip2: '1'
|
| 3 |
+
c_compiler: gcc
|
| 4 |
+
c_compiler_version: 11.2.0
|
| 5 |
+
channel_targets: defaults
|
| 6 |
+
cpu_optimization_target: nocona
|
| 7 |
+
cran_mirror: https://cran.r-project.org
|
| 8 |
+
cxx_compiler: gxx
|
| 9 |
+
cxx_compiler_version: 11.2.0
|
| 10 |
+
expat: '2'
|
| 11 |
+
extend_keys:
|
| 12 |
+
- ignore_build_only_deps
|
| 13 |
+
- ignore_version
|
| 14 |
+
- pin_run_as_build
|
| 15 |
+
- extend_keys
|
| 16 |
+
fortran_compiler: gfortran
|
| 17 |
+
ignore_build_only_deps:
|
| 18 |
+
- numpy
|
| 19 |
+
- python
|
| 20 |
+
libnsl: '2.0'
|
| 21 |
+
libuuid: '1'
|
| 22 |
+
lua: '5'
|
| 23 |
+
ncurses: '6'
|
| 24 |
+
nss: '3'
|
| 25 |
+
numpy: '1.21'
|
| 26 |
+
openssl: '3'
|
| 27 |
+
perl: 5.26.2
|
| 28 |
+
pin_run_as_build:
|
| 29 |
+
python:
|
| 30 |
+
max_pin: x.x
|
| 31 |
+
min_pin: x.x
|
| 32 |
+
r-base:
|
| 33 |
+
max_pin: x.x
|
| 34 |
+
min_pin: x.x
|
| 35 |
+
platform: linux-64
|
| 36 |
+
python: '3.11'
|
| 37 |
+
python_impl: cpython
|
| 38 |
+
r_base: '3.5'
|
| 39 |
+
readline: '8'
|
| 40 |
+
sqlite: '3'
|
| 41 |
+
target_platform: linux-64
|
| 42 |
+
tk: '8.6'
|
| 43 |
+
xorg_libx11: '1'
|
| 44 |
+
xorg_xorgproto: '2024'
|
| 45 |
+
xz: '5'
|
| 46 |
+
zlib: '1.2'
|
docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/meta.yaml
ADDED
|
@@ -0,0 +1,209 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This file created by conda-build 25.1.2
|
| 2 |
+
# ------------------------------------------------
|
| 3 |
+
|
| 4 |
+
package:
|
| 5 |
+
name: python
|
| 6 |
+
version: 3.11.14
|
| 7 |
+
source:
|
| 8 |
+
- patches:
|
| 9 |
+
- patches/0001-Win32-Change-FD_SETSIZE-from-512-to-2048.patch
|
| 10 |
+
- patches/0002-Win32-distutils-Add-support-to-cygwinccompiler-for-V.patch
|
| 11 |
+
- patches/0004-bpo-45258-search-for-isysroot-in-addition-to-sysroot.patch
|
| 12 |
+
- patches/0005-runtime_library_dir_option-Use-1st-word-of-CC-as-com.patch
|
| 13 |
+
- patches/0006-Win32-Do-not-download-externals.patch
|
| 14 |
+
- patches/0007-Fix-find_library-so-that-it-looks-in-sys.prefix-lib-.patch
|
| 15 |
+
- patches/0009-Disable-registry-lookup-unless-CONDA_PY_ALLOW_REG_PA.patch
|
| 16 |
+
- patches/0010-Unvendor-openssl.patch
|
| 17 |
+
- patches/0011-Unvendor-sqlite3.patch
|
| 18 |
+
- patches/0012-Use-ranlib-from-env-if-env-variable-is-set.patch
|
| 19 |
+
- patches/0013-Add-CondaEcosystemModifyDllSearchPath.patch
|
| 20 |
+
- patches/0014-Add-d1trimfile-SRC_DIR-to-make-pdbs-more-relocatable.patch
|
| 21 |
+
- patches/0015-Doing-d1trimfile.patch
|
| 22 |
+
- patches/0016-cross-compile-darwin.patch
|
| 23 |
+
- patches/0017-Fix-TZPATH-on-windows.patch
|
| 24 |
+
- patches/0018-Make-dyld-search-work-with-SYSTEM_VERSION_COMPAT-1.patch
|
| 25 |
+
- patches/0019-Fix-LDSHARED-when-CC-is-overriden-on-Linux-too.patch
|
| 26 |
+
- patches/0020-Unvendor-bzip2.patch
|
| 27 |
+
- patches/0021-Unvendor-libffi.patch
|
| 28 |
+
- patches/0022-Unvendor-tcltk.patch
|
| 29 |
+
- patches/0023-unvendor-xz.patch
|
| 30 |
+
- patches/0024-unvendor-zlib.patch
|
| 31 |
+
- patches/0025-Do-not-pass-g-to-GCC-when-not-Py_DEBUG.patch
|
| 32 |
+
- patches/0027-Unvendor-expat.patch
|
| 33 |
+
sha256: 8d3ed8ec5c88c1c95f5e558612a725450d2452813ddad5e58fdb1a53b1209b78
|
| 34 |
+
url: https://www.python.org/ftp/python/3.11.14/Python-3.11.14.tar.xz
|
| 35 |
+
build:
|
| 36 |
+
activate_in_script: true
|
| 37 |
+
detect_binary_files_with_prefix: true
|
| 38 |
+
ignore_run_exports_from:
|
| 39 |
+
- gxx_linux-64 11.2.0.*
|
| 40 |
+
- xorg-libx11
|
| 41 |
+
- xorg-xorgproto
|
| 42 |
+
missing_dso_whitelist:
|
| 43 |
+
- $RPATH/libc.so.6
|
| 44 |
+
- $RPATH/libcrypt.so.1
|
| 45 |
+
- $RPATH/libdl.so.2
|
| 46 |
+
- $RPATH/libm.so.6
|
| 47 |
+
- $RPATH/libnsl.so.1
|
| 48 |
+
- $RPATH/libpthread.so.0
|
| 49 |
+
- $RPATH/librt.so.1
|
| 50 |
+
- $RPATH/libutil.so.1
|
| 51 |
+
no_link: null
|
| 52 |
+
number: 0
|
| 53 |
+
script_env:
|
| 54 |
+
- CONDA_FORGE=no
|
| 55 |
+
- PY_INTERP_DEBUG=no
|
| 56 |
+
- PY_INTERP_LINKAGE_NATURE=static
|
| 57 |
+
string: h6fa692b_0
|
| 58 |
+
requirements:
|
| 59 |
+
build:
|
| 60 |
+
- _libgcc_mutex 0.1 main
|
| 61 |
+
- _openmp_mutex 5.1 1_gnu
|
| 62 |
+
- _sysroot_linux-64_curr_repodata_hack 3 haa98f57_10
|
| 63 |
+
- binutils_impl_linux-64 2.40 h5293946_0
|
| 64 |
+
- binutils_linux-64 2.40.0 hc2dff05_2
|
| 65 |
+
- gcc_impl_linux-64 11.2.0 h1234567_1
|
| 66 |
+
- gcc_linux-64 11.2.0 h5c386dc_2
|
| 67 |
+
- gxx_impl_linux-64 11.2.0 h1234567_1
|
| 68 |
+
- gxx_linux-64 11.2.0 hc2dff05_2
|
| 69 |
+
- kernel-headers_linux-64 3.10.0 h57e8cba_10
|
| 70 |
+
- ld_impl_linux-64 2.40 h12ee557_0
|
| 71 |
+
- libgcc-devel_linux-64 11.2.0 h1234567_1
|
| 72 |
+
- libgcc-ng 11.2.0 h1234567_1
|
| 73 |
+
- libgomp 11.2.0 h1234567_1
|
| 74 |
+
- libstdcxx-devel_linux-64 11.2.0 h1234567_1
|
| 75 |
+
- libstdcxx-ng 11.2.0 h1234567_1
|
| 76 |
+
- libtool 2.4.7 h6a678d5_0
|
| 77 |
+
- make 4.2.1 h1bed415_1
|
| 78 |
+
- pkg-config 0.29.2 h1bed415_8
|
| 79 |
+
- ripgrep 14.1.0 h594256b_0
|
| 80 |
+
- sed 4.9 hb25bd0a_0
|
| 81 |
+
- sysroot_linux-64 2.17 h57e8cba_10
|
| 82 |
+
host:
|
| 83 |
+
- _libgcc_mutex 0.1 main
|
| 84 |
+
- _openmp_mutex 5.1 1_gnu
|
| 85 |
+
- bzip2 1.0.8 h5eee18b_6
|
| 86 |
+
- ca-certificates 2025.9.9 h06a4308_0
|
| 87 |
+
- expat 2.7.1 h6a678d5_0
|
| 88 |
+
- ld_impl_linux-64 2.44 h153f514_2
|
| 89 |
+
- libffi 3.4.4 h6a678d5_1
|
| 90 |
+
- libgcc-ng 11.2.0 h1234567_1
|
| 91 |
+
- libgomp 11.2.0 h1234567_1
|
| 92 |
+
- libnsl 2.0.0 h5eee18b_0
|
| 93 |
+
- libstdcxx-ng 11.2.0 h1234567_1
|
| 94 |
+
- libuuid 1.41.5 h5eee18b_0
|
| 95 |
+
- libxcb 1.17.0 h9b100fa_0
|
| 96 |
+
- ncurses 6.5 h7934f7d_0
|
| 97 |
+
- openssl 3.0.18 hd6dcaed_0
|
| 98 |
+
- pthread-stubs 0.3 h0ce48e5_1
|
| 99 |
+
- readline 8.3 hc2a1206_0
|
| 100 |
+
- sqlite 3.50.2 hb25bd0a_1
|
| 101 |
+
- tk 8.6.15 h54e0aa7_0
|
| 102 |
+
- xorg-libx11 1.8.12 h9b100fa_1
|
| 103 |
+
- xorg-libxau 1.0.12 h9b100fa_0
|
| 104 |
+
- xorg-libxdmcp 1.1.5 h9b100fa_0
|
| 105 |
+
- xorg-xorgproto 2024.1 h5eee18b_1
|
| 106 |
+
- xz 5.6.4 h5eee18b_1
|
| 107 |
+
- zlib 1.2.13 hd233ad5_2
|
| 108 |
+
run:
|
| 109 |
+
- bzip2 >=1.0.8,<2.0a0
|
| 110 |
+
- expat >=2.7.1,<3.0a0
|
| 111 |
+
- ld_impl_linux-64 >=2.35.1
|
| 112 |
+
- libffi >=3.4,<3.5
|
| 113 |
+
- libffi >=3.4,<4.0a0
|
| 114 |
+
- libgcc-ng >=11.2.0
|
| 115 |
+
- libnsl >=2.0.0,<2.1.0a0
|
| 116 |
+
- libuuid >=1.41.5,<2.0a0
|
| 117 |
+
- ncurses >=6.5,<7.0a0
|
| 118 |
+
- openssl >=3.0.18,<4.0a0
|
| 119 |
+
- readline >=8.3,<9.0a0
|
| 120 |
+
- sqlite >=3.50.2,<4.0a0
|
| 121 |
+
- tk >=8.6.15,<8.7.0a0
|
| 122 |
+
- tzdata
|
| 123 |
+
- xz >=5.6.4,<6.0a0
|
| 124 |
+
- zlib >=1.2.13,<2.0a0
|
| 125 |
+
test:
|
| 126 |
+
commands:
|
| 127 |
+
- python -V
|
| 128 |
+
- python3 -V
|
| 129 |
+
- 2to3 -h
|
| 130 |
+
- pydoc -h
|
| 131 |
+
- python3-config --help
|
| 132 |
+
- python -c "from zoneinfo import ZoneInfo; from datetime import datetime; dt
|
| 133 |
+
= datetime(2020, 10, 31, 12, tzinfo=ZoneInfo('America/Los_Angeles')); print(dt.tzname())"
|
| 134 |
+
- python -m venv test-venv
|
| 135 |
+
- test-venv/bin/python -c "import ctypes"
|
| 136 |
+
- python -c "import sysconfig; print(sysconfig.get_config_var('CC'))"
|
| 137 |
+
- _CONDA_PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata_x86_64_conda_cos6_linux_gnu
|
| 138 |
+
python -c "import sysconfig; print(sysconfig.get_config_var('CC'))"
|
| 139 |
+
- for f in ${CONDA_PREFIX}/lib/python*/_sysconfig*.py; do echo "Checking $f:";
|
| 140 |
+
if [[ `rg @ $f` ]]; then echo "FAILED ON $f"; cat $f; exit 1; fi; done
|
| 141 |
+
- test ! -f ${PREFIX}/lib/libpython${PKG_VERSION%.*}.a
|
| 142 |
+
- test ! -f ${PREFIX}/lib/libpython${PKG_VERSION%.*}.nolto.a
|
| 143 |
+
- pushd tests
|
| 144 |
+
- pushd distutils
|
| 145 |
+
- python setup.py install -v -v
|
| 146 |
+
- python -c "import foobar"
|
| 147 |
+
- popd
|
| 148 |
+
- pushd prefix-replacement
|
| 149 |
+
- bash build-and-test.sh
|
| 150 |
+
- popd
|
| 151 |
+
- pushd cmake
|
| 152 |
+
- cmake -GNinja -DPY_VER=3.11.14
|
| 153 |
+
- popd
|
| 154 |
+
- popd
|
| 155 |
+
- python run_test.py
|
| 156 |
+
- test -d "$PREFIX/lib/python3.1/site-packages"
|
| 157 |
+
- python3.1 --version
|
| 158 |
+
- python -c "from ctypes import CFUNCTYPE; CFUNCTYPE(None)(id)"
|
| 159 |
+
files:
|
| 160 |
+
- run_test.py
|
| 161 |
+
- tests/cmake/*
|
| 162 |
+
- tests/cython/*
|
| 163 |
+
- tests/distutils/*
|
| 164 |
+
- tests/prefix-replacement/*
|
| 165 |
+
requires:
|
| 166 |
+
- cmake-no-system
|
| 167 |
+
- gcc_linux-64 11.2.0.*
|
| 168 |
+
- gxx_linux-64 11.2.0.*
|
| 169 |
+
- make
|
| 170 |
+
- ninja-base
|
| 171 |
+
- ripgrep
|
| 172 |
+
about:
|
| 173 |
+
description: 'Python is a widely used high-level, general-purpose, interpreted,
|
| 174 |
+
dynamic
|
| 175 |
+
|
| 176 |
+
programming language. Its design philosophy emphasizes code
|
| 177 |
+
|
| 178 |
+
readability, and its syntax allows programmers to express concepts in
|
| 179 |
+
|
| 180 |
+
fewer lines of code than would be possible in languages such as C++ or
|
| 181 |
+
|
| 182 |
+
Java. The language provides constructs intended to enable clear programs
|
| 183 |
+
|
| 184 |
+
on both a small and large scale.
|
| 185 |
+
|
| 186 |
+
'
|
| 187 |
+
dev_url: https://devguide.python.org/
|
| 188 |
+
doc_url: https://www.python.org/doc/versions/
|
| 189 |
+
home: https://www.python.org/
|
| 190 |
+
license: PSF-2.0
|
| 191 |
+
license_family: PSF
|
| 192 |
+
license_file: LICENSE
|
| 193 |
+
license_url: https://spdx.org/licenses/PSF-2.0.html
|
| 194 |
+
summary: General purpose programming language
|
| 195 |
+
extra:
|
| 196 |
+
copy_test_source_files: true
|
| 197 |
+
feedstock-name: python
|
| 198 |
+
final: true
|
| 199 |
+
recipe-maintainers:
|
| 200 |
+
- isuruf
|
| 201 |
+
- jakirkham
|
| 202 |
+
- katietz
|
| 203 |
+
- mbargull
|
| 204 |
+
- mingwandroid
|
| 205 |
+
- msarahan
|
| 206 |
+
- ocefpaf
|
| 207 |
+
- pelson
|
| 208 |
+
- scopatz
|
| 209 |
+
- xhochy
|
docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/.circleci/config.yml
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This file was generated automatically from conda-smithy. To update this configuration,
|
| 2 |
+
# update the conda-forge.yml and/or the recipe/meta.yaml.
|
| 3 |
+
# -*- mode: yaml -*-
|
| 4 |
+
|
| 5 |
+
version: 2
|
| 6 |
+
|
| 7 |
+
jobs:
|
| 8 |
+
build:
|
| 9 |
+
working_directory: ~/test
|
| 10 |
+
machine: true
|
| 11 |
+
steps:
|
| 12 |
+
- run:
|
| 13 |
+
# The Circle-CI build should not be active, but if this is not true for some reason, do a fast finish.
|
| 14 |
+
command: exit 0
|
| 15 |
+
|
| 16 |
+
workflows:
|
| 17 |
+
version: 2
|
| 18 |
+
build_and_test:
|
| 19 |
+
jobs:
|
| 20 |
+
- build:
|
| 21 |
+
filters:
|
| 22 |
+
branches:
|
| 23 |
+
ignore:
|
| 24 |
+
- /.*/
|
docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/.gitattributes
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
* text=auto
|
| 2 |
+
|
| 3 |
+
*.patch binary
|
| 4 |
+
*.diff binary
|
| 5 |
+
meta.yaml text eol=lf
|
| 6 |
+
build.sh text eol=lf
|
| 7 |
+
bld.bat text eol=crlf
|
| 8 |
+
|
| 9 |
+
# github helper pieces to make some files not show up in diffs automatically
|
| 10 |
+
.azure-pipelines/* linguist-generated=true
|
| 11 |
+
.circleci/* linguist-generated=true
|
| 12 |
+
.drone/* linguist-generated=true
|
| 13 |
+
.drone.yml linguist-generated=true
|
| 14 |
+
.github/* linguist-generated=true
|
| 15 |
+
.travis/* linguist-generated=true
|
| 16 |
+
.appveyor.yml linguist-generated=true
|
| 17 |
+
.gitattributes linguist-generated=true
|
| 18 |
+
.gitignore linguist-generated=true
|
| 19 |
+
.travis.yml linguist-generated=true
|
| 20 |
+
LICENSE.txt linguist-generated=true
|
| 21 |
+
README.md linguist-generated=true
|
| 22 |
+
azure-pipelines.yml linguist-generated=true
|
| 23 |
+
build-locally.py linguist-generated=true
|
| 24 |
+
shippable.yml linguist-generated=true
|
docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/.gitignore
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.pyc
|
| 2 |
+
|
| 3 |
+
build_artifacts
|
docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/LICENSE.txt
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
BSD 3-clause license
|
| 2 |
+
Copyright (c) 2015-2019, conda-forge
|
| 3 |
+
All rights reserved.
|
| 4 |
+
|
| 5 |
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
| 6 |
+
|
| 7 |
+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
| 8 |
+
|
| 9 |
+
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
| 10 |
+
|
| 11 |
+
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
| 12 |
+
|
| 13 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/brand_python.py
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import argparse
|
| 2 |
+
import os
|
| 3 |
+
import re
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
platform_file = os.path.join('Lib', 'platform.py')
|
| 7 |
+
get_version_file = os.path.join('Python', 'getversion.c')
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
def patch_platform(msg):
|
| 11 |
+
with open(platform_file, 'r') as fh:
|
| 12 |
+
lines = list(fh)
|
| 13 |
+
|
| 14 |
+
lines_it = iter(lines)
|
| 15 |
+
with open(platform_file, 'w') as fh:
|
| 16 |
+
for line in lines_it:
|
| 17 |
+
fh.write(line)
|
| 18 |
+
if line.startswith('_sys_version_parser'):
|
| 19 |
+
next_line = next(lines_it)
|
| 20 |
+
fh.write(" r'([\w.+]+)\s*" + '(?:' + re.escape(' ' + msg) + ')?' + "\s*'\n")
|
| 21 |
+
|
| 22 |
+
def patch_get_version(msg):
|
| 23 |
+
with open(get_version_file, 'r') as fh:
|
| 24 |
+
content = list(fh)
|
| 25 |
+
|
| 26 |
+
lines = iter(content)
|
| 27 |
+
with open(get_version_file, 'w') as fh:
|
| 28 |
+
for line in lines:
|
| 29 |
+
if line.strip().startswith('PyOS_snprintf(version, sizeof(version)'):
|
| 30 |
+
fh.write(' PyOS_snprintf(version, sizeof(version),\n')
|
| 31 |
+
fh.write(' "%.80s ' + msg.replace('"', '\\"') + ' (%.80s) %.80s",\n')
|
| 32 |
+
else:
|
| 33 |
+
fh.write(line)
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
msg = os.environ.get('python_branding', '<undefined>')
|
| 37 |
+
if msg == '<undefined>':
|
| 38 |
+
msg = "| packaged by Anaconda, Inc. |"
|
| 39 |
+
|
| 40 |
+
patch_platform(msg)
|
| 41 |
+
patch_get_version(msg)
|
docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/build-locally.py
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
#
|
| 3 |
+
# This file has been generated by conda-smithy in order to build the recipe
|
| 4 |
+
# locally.
|
| 5 |
+
#
|
| 6 |
+
import os
|
| 7 |
+
import glob
|
| 8 |
+
import subprocess
|
| 9 |
+
from argparse import ArgumentParser
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
def setup_environment(ns):
|
| 13 |
+
os.environ["CONFIG"] = ns.config
|
| 14 |
+
os.environ["UPLOAD_PACKAGES"] = "False"
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
def run_docker_build(ns):
|
| 18 |
+
script = ".scripts/run_docker_build.sh"
|
| 19 |
+
subprocess.check_call([script])
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
def verify_config(ns):
|
| 23 |
+
valid_configs = {
|
| 24 |
+
os.path.basename(f)[:-5] for f in glob.glob(".ci_support/*.yaml")
|
| 25 |
+
}
|
| 26 |
+
print(f"valid configs are {valid_configs}")
|
| 27 |
+
if ns.config in valid_configs:
|
| 28 |
+
print("Using " + ns.config + " configuration")
|
| 29 |
+
return
|
| 30 |
+
elif len(valid_configs) == 1:
|
| 31 |
+
ns.config = valid_configs.pop()
|
| 32 |
+
print("Found " + ns.config + " configuration")
|
| 33 |
+
elif ns.config is None:
|
| 34 |
+
print("config not selected, please choose from the following:\n")
|
| 35 |
+
selections = list(enumerate(sorted(valid_configs), 1))
|
| 36 |
+
for i, c in selections:
|
| 37 |
+
print(f"{i}. {c}")
|
| 38 |
+
s = input("\n> ")
|
| 39 |
+
idx = int(s) - 1
|
| 40 |
+
ns.config = selections[idx][1]
|
| 41 |
+
print(f"selected {ns.config}")
|
| 42 |
+
else:
|
| 43 |
+
raise ValueError("config " + ns.config + " is not valid")
|
| 44 |
+
# Remove the following, as implemented
|
| 45 |
+
if not ns.config.startswith("linux"):
|
| 46 |
+
raise ValueError(
|
| 47 |
+
f"only Linux configs currently supported, got {ns.config}"
|
| 48 |
+
)
|
| 49 |
+
|
| 50 |
+
|
| 51 |
+
def main(args=None):
|
| 52 |
+
p = ArgumentParser("build-locally")
|
| 53 |
+
p.add_argument("config", default=None, nargs="?")
|
| 54 |
+
|
| 55 |
+
ns = p.parse_args(args=args)
|
| 56 |
+
verify_config(ns)
|
| 57 |
+
setup_environment(ns)
|
| 58 |
+
|
| 59 |
+
run_docker_build(ns)
|
| 60 |
+
|
| 61 |
+
|
| 62 |
+
if __name__ == "__main__":
|
| 63 |
+
main()
|
docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/build_base.bat
ADDED
|
@@ -0,0 +1,212 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
setlocal EnableDelayedExpansion
|
| 2 |
+
echo on
|
| 3 |
+
|
| 4 |
+
:: brand Python with conda-forge startup message
|
| 5 |
+
%SYS_PYTHON% %RECIPE_DIR%\brand_python.py
|
| 6 |
+
if errorlevel 1 exit 1
|
| 7 |
+
|
| 8 |
+
:: Compile python, extensions and external libraries
|
| 9 |
+
if "%ARCH%"=="64" (
|
| 10 |
+
set PLATFORM=x64
|
| 11 |
+
set VC_PATH=x64
|
| 12 |
+
set BUILD_PATH=amd64
|
| 13 |
+
) else (
|
| 14 |
+
set PLATFORM=Win32
|
| 15 |
+
set VC_PATH=x86
|
| 16 |
+
set BUILD_PATH=win32
|
| 17 |
+
)
|
| 18 |
+
|
| 19 |
+
for /F "tokens=1,2 delims=." %%i in ("%PKG_VERSION%") do (
|
| 20 |
+
set "VERNODOTS=%%i%%j"
|
| 21 |
+
)
|
| 22 |
+
|
| 23 |
+
:: Make sure the "python" value in conda_build_config.yaml is up to date.
|
| 24 |
+
for /F "tokens=1,2 delims=." %%i in ("%PKG_VERSION%") do (
|
| 25 |
+
if NOT "%PY_VER%"=="%%i.%%j" exit 1
|
| 26 |
+
)
|
| 27 |
+
|
| 28 |
+
for /f "usebackq delims=" %%i in (`conda list -p %PREFIX% sqlite --no-show-channel-urls --json ^| findstr "version"`) do set SQLITE3_VERSION_LINE=%%i
|
| 29 |
+
for /f "tokens=2 delims==/ " %%i IN ('echo %SQLITE3_VERSION_LINE%') do (set SQLITE3_VERSION=%%~i)
|
| 30 |
+
echo SQLITE3_VERSION detected as %SQLITE3_VERSION%
|
| 31 |
+
|
| 32 |
+
if "%PY_INTERP_DEBUG%"=="yes" (
|
| 33 |
+
set CONFIG=-d
|
| 34 |
+
set _D=_d
|
| 35 |
+
) else (
|
| 36 |
+
set CONFIG=
|
| 37 |
+
set _D=
|
| 38 |
+
)
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
if "%DEBUG_C%"=="yes" (
|
| 42 |
+
set PGO=
|
| 43 |
+
) else (
|
| 44 |
+
set PGO=--pgo
|
| 45 |
+
)
|
| 46 |
+
|
| 47 |
+
:: AP doesn't support PGO atm?
|
| 48 |
+
set PGO=
|
| 49 |
+
|
| 50 |
+
cd PCbuild
|
| 51 |
+
|
| 52 |
+
:: Twice because:
|
| 53 |
+
:: error : importlib_zipimport.h updated. You will need to rebuild pythoncore to see the changes.
|
| 54 |
+
call build.bat %PGO% %CONFIG% -m -e -v -p %PLATFORM%
|
| 55 |
+
call build.bat %PGO% %CONFIG% -m -e -v -p %PLATFORM%
|
| 56 |
+
if errorlevel 1 exit 1
|
| 57 |
+
cd ..
|
| 58 |
+
|
| 59 |
+
:: Populate the root package directory
|
| 60 |
+
for %%x in (python%VERNODOTS%%_D%.dll python3%_D%.dll python%_D%.exe pythonw%_D%.exe) do (
|
| 61 |
+
if exist %SRC_DIR%\PCbuild\%BUILD_PATH%\%%x (
|
| 62 |
+
copy /Y %SRC_DIR%\PCbuild\%BUILD_PATH%\%%x %PREFIX%
|
| 63 |
+
) else (
|
| 64 |
+
echo "WARNING :: %SRC_DIR%\PCbuild\%BUILD_PATH%\%%x does not exist"
|
| 65 |
+
)
|
| 66 |
+
)
|
| 67 |
+
|
| 68 |
+
for %%x in (python%_D%.pdb python%VERNODOTS%%_D%.pdb pythonw%_D%.pdb) do (
|
| 69 |
+
if exist %SRC_DIR%\PCbuild\%BUILD_PATH%\%%x (
|
| 70 |
+
copy /Y %SRC_DIR%\PCbuild\%BUILD_PATH%\%%x %PREFIX%
|
| 71 |
+
) else (
|
| 72 |
+
echo "WARNING :: %SRC_DIR%\PCbuild\%BUILD_PATH%\%%x does not exist"
|
| 73 |
+
)
|
| 74 |
+
)
|
| 75 |
+
|
| 76 |
+
copy %SRC_DIR%\LICENSE %PREFIX%\LICENSE_PYTHON.txt
|
| 77 |
+
if errorlevel 1 exit 1
|
| 78 |
+
|
| 79 |
+
:: Populate the DLLs directory
|
| 80 |
+
mkdir %PREFIX%\DLLs
|
| 81 |
+
xcopy /s /y %SRC_DIR%\PCBuild\%BUILD_PATH%\*.pyd %PREFIX%\DLLs\
|
| 82 |
+
if errorlevel 1 exit 1
|
| 83 |
+
|
| 84 |
+
copy /Y %SRC_DIR%\PC\icons\py.ico %PREFIX%\DLLs\
|
| 85 |
+
if errorlevel 1 exit 1
|
| 86 |
+
copy /Y %SRC_DIR%\PC\icons\pyc.ico %PREFIX%\DLLs\
|
| 87 |
+
if errorlevel 1 exit 1
|
| 88 |
+
|
| 89 |
+
|
| 90 |
+
:: Populate the Tools directory
|
| 91 |
+
mkdir %PREFIX%\Tools
|
| 92 |
+
xcopy /s /y /i %SRC_DIR%\Tools\demo %PREFIX%\Tools\demo
|
| 93 |
+
if errorlevel 1 exit 1
|
| 94 |
+
xcopy /s /y /i %SRC_DIR%\Tools\i18n %PREFIX%\Tools\i18n
|
| 95 |
+
if errorlevel 1 exit 1
|
| 96 |
+
xcopy /s /y /i %SRC_DIR%\Tools\scripts %PREFIX%\Tools\scripts
|
| 97 |
+
if errorlevel 1 exit 1
|
| 98 |
+
|
| 99 |
+
del %PREFIX%\Tools\demo\README
|
| 100 |
+
if errorlevel 1 exit 1
|
| 101 |
+
del %PREFIX%\Tools\scripts\README
|
| 102 |
+
if errorlevel 1 exit 1
|
| 103 |
+
del %PREFIX%\Tools\scripts\dutree.doc
|
| 104 |
+
if errorlevel 1 exit 1
|
| 105 |
+
del %PREFIX%\Tools\scripts\idle3
|
| 106 |
+
if errorlevel 1 exit 1
|
| 107 |
+
|
| 108 |
+
move /y %PREFIX%\Tools\scripts\2to3 %PREFIX%\Tools\scripts\2to3.py
|
| 109 |
+
if errorlevel 1 exit 1
|
| 110 |
+
move /y %PREFIX%\Tools\scripts\pydoc3 %PREFIX%\Tools\scripts\pydoc3.py
|
| 111 |
+
if errorlevel 1 exit 1
|
| 112 |
+
|
| 113 |
+
:: Populate the include directory
|
| 114 |
+
xcopy /s /y %SRC_DIR%\Include %PREFIX%\include\
|
| 115 |
+
if errorlevel 1 exit 1
|
| 116 |
+
|
| 117 |
+
copy /Y %SRC_DIR%\PC\pyconfig.h %PREFIX%\include\
|
| 118 |
+
if errorlevel 1 exit 1
|
| 119 |
+
|
| 120 |
+
:: Populate the Scripts directory
|
| 121 |
+
if not exist %SCRIPTS% (mkdir %SCRIPTS%)
|
| 122 |
+
if errorlevel 1 exit 1
|
| 123 |
+
|
| 124 |
+
for %%x in (idle pydoc) do (
|
| 125 |
+
copy /Y %SRC_DIR%\Tools\scripts\%%x3 %SCRIPTS%\%%x
|
| 126 |
+
if errorlevel 1 exit 1
|
| 127 |
+
)
|
| 128 |
+
|
| 129 |
+
copy /Y %SRC_DIR%\Tools\scripts\2to3 %SCRIPTS%
|
| 130 |
+
if errorlevel 1 exit 1
|
| 131 |
+
|
| 132 |
+
:: Populate the libs directory
|
| 133 |
+
if not exist %PREFIX%\libs mkdir %PREFIX%\libs
|
| 134 |
+
if exist %SRC_DIR%\PCbuild\%BUILD_PATH%\python%VERNODOTS%%_D%.lib copy /Y %SRC_DIR%\PCbuild\%BUILD_PATH%\python%VERNODOTS%%_D%.lib %PREFIX%\libs\
|
| 135 |
+
if errorlevel 1 exit 1
|
| 136 |
+
if exist %SRC_DIR%\PCbuild\%BUILD_PATH%\python3%_D%.lib copy /Y %SRC_DIR%\PCbuild\%BUILD_PATH%\python3%_D%.lib %PREFIX%\libs\
|
| 137 |
+
if errorlevel 1 exit 1
|
| 138 |
+
if exist %SRC_DIR%\PCbuild\%BUILD_PATH%\_tkinter%_D%.lib copy /Y %SRC_DIR%\PCbuild\%BUILD_PATH%\_tkinter%_D%.lib %PREFIX%\libs\
|
| 139 |
+
if errorlevel 1 exit 1
|
| 140 |
+
|
| 141 |
+
|
| 142 |
+
:: Populate the Lib directory
|
| 143 |
+
del %PREFIX%\libs\libpython*.a
|
| 144 |
+
xcopy /s /y %SRC_DIR%\Lib %PREFIX%\Lib\
|
| 145 |
+
if errorlevel 1 exit 1
|
| 146 |
+
|
| 147 |
+
:: Copy venv[w]launcher scripts to venv\srcipts\nt
|
| 148 |
+
if exist %SRC_DIR%\PCbuild\%BUILD_PATH%\venvlauncher%_D%.exe (
|
| 149 |
+
copy /Y %SRC_DIR%\PCbuild\%BUILD_PATH%\venvlauncher%_D%.exe %PREFIX%\Lib\venv\scripts\nt\python.exe
|
| 150 |
+
) else (
|
| 151 |
+
echo "WARNING :: %SRC_DIR%\PCbuild\%BUILD_PATH%\venvlauncher%_D%.exe does not exist"
|
| 152 |
+
)
|
| 153 |
+
|
| 154 |
+
if exist %SRC_DIR%\PCbuild\%BUILD_PATH%\venvwlauncher%_D%.exe (
|
| 155 |
+
copy /Y %SRC_DIR%\PCbuild\%BUILD_PATH%\venvwlauncher%_D%.exe %PREFIX%\Lib\venv\scripts\nt\pythonw.exe
|
| 156 |
+
) else (
|
| 157 |
+
echo "WARNING :: %SRC_DIR%\PCbuild\%BUILD_PATH%\venvwlauncher%_D%.exe does not exist"
|
| 158 |
+
)
|
| 159 |
+
|
| 160 |
+
|
| 161 |
+
:: Remove test data to save space.
|
| 162 |
+
:: Though keep `support` as some things use that.
|
| 163 |
+
mkdir %PREFIX%\Lib\test_keep
|
| 164 |
+
if errorlevel 1 exit 1
|
| 165 |
+
move %PREFIX%\Lib\test\__init__.py %PREFIX%\Lib\test_keep\
|
| 166 |
+
if errorlevel 1 exit 1
|
| 167 |
+
move %PREFIX%\Lib\test\support %PREFIX%\Lib\test_keep\
|
| 168 |
+
if errorlevel 1 exit 1
|
| 169 |
+
rd /s /q %PREFIX%\Lib\test
|
| 170 |
+
if errorlevel 1 exit 1
|
| 171 |
+
move %PREFIX%\Lib\test_keep %PREFIX%\Lib\test
|
| 172 |
+
if errorlevel 1 exit 1
|
| 173 |
+
rd /s /q %PREFIX%\Lib\lib2to3\tests\
|
| 174 |
+
if errorlevel 1 exit 1
|
| 175 |
+
|
| 176 |
+
:: bytecode compile the standard library
|
| 177 |
+
|
| 178 |
+
rd /s /q %PREFIX%\Lib\lib2to3\tests\
|
| 179 |
+
if errorlevel 1 exit 1
|
| 180 |
+
|
| 181 |
+
:: We need our Python to be found!
|
| 182 |
+
if "%_D%" neq "" copy %PREFIX%\python%_D%.exe %PREFIX%\python.exe
|
| 183 |
+
|
| 184 |
+
%PREFIX%\python.exe -Wi %PREFIX%\Lib\compileall.py -f -q -x "bad_coding|badsyntax|py2_" %PREFIX%\Lib
|
| 185 |
+
if errorlevel 1 exit 1
|
| 186 |
+
|
| 187 |
+
:: Pickle lib2to3 Grammar
|
| 188 |
+
%PREFIX%\python.exe -m lib2to3 --help
|
| 189 |
+
|
| 190 |
+
:: Ensure that scripts are generated
|
| 191 |
+
:: https://github.com/conda-forge/python-feedstock/issues/384
|
| 192 |
+
%PREFIX%\python.exe %RECIPE_DIR%\fix_staged_scripts.py
|
| 193 |
+
if errorlevel 1 exit 1
|
| 194 |
+
|
| 195 |
+
:: Some quick tests for common failures
|
| 196 |
+
echo "Testing print() does not print: Hello"
|
| 197 |
+
%CONDA_EXE% run -p %PREFIX% cd %PREFIX% & %PREFIX%\python.exe -c "print()" 2>&1 | findstr /r /c:"Hello"
|
| 198 |
+
if %errorlevel% neq 1 exit /b 1
|
| 199 |
+
|
| 200 |
+
echo "Testing print('Hello') prints: Hello"
|
| 201 |
+
%CONDA_EXE% run -p %PREFIX% cd %PREFIX% & %PREFIX%\python.exe "print('Hello')" 2>&1 | findstr /r /c:"Hello"
|
| 202 |
+
if %errorlevel% neq 0 exit /b 1
|
| 203 |
+
|
| 204 |
+
echo "Testing import of os (no DLL needed) does not print: The specified module could not be found"
|
| 205 |
+
%CONDA_EXE% run -p %PREFIX% cd %PREFIX% & %PREFIX%\python.exe -v -c "import os" 2>&1
|
| 206 |
+
%CONDA_EXE% run -p %PREFIX% cd %PREFIX% & %PREFIX%\python.exe -v -c "import os" 2>&1 | findstr /r /c:"The specified module could not be found"
|
| 207 |
+
if %errorlevel% neq 1 exit /b 1
|
| 208 |
+
|
| 209 |
+
echo "Testing import of _sqlite3 (DLL located via PATH needed) does not print: The specified module could not be found"
|
| 210 |
+
%CONDA_EXE% run -p %PREFIX% cd %PREFIX% & %PREFIX%\python.exe -v -c "import _sqlite3" 2>&1
|
| 211 |
+
%CONDA_EXE% run -p %PREFIX% cd %PREFIX% & %PREFIX%\python.exe -v -c "import _sqlite3" 2>&1 | findstr /r /c:"The specified module could not be found"
|
| 212 |
+
if %errorlevel% neq 1 exit /b 1
|
docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/build_base.sh
ADDED
|
@@ -0,0 +1,522 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
set -ex
|
| 3 |
+
|
| 4 |
+
# Get an updated config.sub and config.guess
|
| 5 |
+
cp $BUILD_PREFIX/share/libtool/build-aux/config.* .
|
| 6 |
+
|
| 7 |
+
# The LTO/PGO information was sourced from @pitrou and the Debian rules file in:
|
| 8 |
+
# http://http.debian.net/debian/pool/main/p/python3.6/python3.6_3.6.2-2.debian.tar.xz
|
| 9 |
+
# https://packages.debian.org/source/sid/python3.6
|
| 10 |
+
# or:
|
| 11 |
+
# http://bazaar.launchpad.net/~doko/python/pkg3.5-debian/view/head:/rules#L255
|
| 12 |
+
# .. but upstream regrtest.py now has --pgo (since >= 3.6) and skips tests that are:
|
| 13 |
+
# "not helpful for PGO".
|
| 14 |
+
|
| 15 |
+
VERFULL=${PKG_VERSION}
|
| 16 |
+
VER=${PKG_VERSION%.*}
|
| 17 |
+
VERNODOTS=${VER//./}
|
| 18 |
+
TCLTK_VER=${tk}
|
| 19 |
+
# Disables some PGO/LTO
|
| 20 |
+
QUICK_BUILD=no
|
| 21 |
+
|
| 22 |
+
_buildd_static=build-static
|
| 23 |
+
_buildd_shared=build-shared
|
| 24 |
+
_ENABLE_SHARED=--enable-shared
|
| 25 |
+
# We *still* build a shared lib here for non-static embedded use cases
|
| 26 |
+
_DISABLE_SHARED=--disable-shared
|
| 27 |
+
# Hack to allow easily comparing static vs shared interpreter performance
|
| 28 |
+
# .. hack because we just build it shared in both the build-static and
|
| 29 |
+
# build-shared directories.
|
| 30 |
+
# Yes this hack is a bit confusing, sorry about that.
|
| 31 |
+
if [[ ${PY_INTERP_LINKAGE_NATURE} == shared ]]; then
|
| 32 |
+
_DISABLE_SHARED=--enable-shared
|
| 33 |
+
_ENABLE_SHARED=--enable-shared
|
| 34 |
+
fi
|
| 35 |
+
|
| 36 |
+
# For debugging builds, set this to no to disable profile-guided optimization
|
| 37 |
+
if [[ ${DEBUG_C} == yes ]]; then
|
| 38 |
+
_OPTIMIZED=no
|
| 39 |
+
else
|
| 40 |
+
_OPTIMIZED=yes
|
| 41 |
+
fi
|
| 42 |
+
|
| 43 |
+
# Since these take very long to build in our emulated ci, disable for now
|
| 44 |
+
if [[ ${target_platform} == linux-aarch64 ]]; then
|
| 45 |
+
_OPTIMIZED=no
|
| 46 |
+
fi
|
| 47 |
+
|
| 48 |
+
if [[ ${target_platform} == linux-ppc64le ]]; then
|
| 49 |
+
_OPTIMIZED=no
|
| 50 |
+
# ppc64le cdt need to be rebuilt with files in powerpc64le-conda-linux-gnu instead of powerpc64le-conda_cos7-linux-gnu. In the mean time:
|
| 51 |
+
cp --force --archive --update --link $BUILD_PREFIX/powerpc64le-conda_cos7-linux-gnu/. $BUILD_PREFIX/powerpc64le-conda-linux-gnu
|
| 52 |
+
fi
|
| 53 |
+
|
| 54 |
+
declare -a _dbg_opts
|
| 55 |
+
if [[ ${DEBUG_PY} == yes ]]; then
|
| 56 |
+
# This Python will not be usable with non-debug Python modules.
|
| 57 |
+
_dbg_opts+=(--with-pydebug)
|
| 58 |
+
DBG=d
|
| 59 |
+
else
|
| 60 |
+
DBG=
|
| 61 |
+
fi
|
| 62 |
+
|
| 63 |
+
ABIFLAGS=${DBG}
|
| 64 |
+
VERABI=${VER}${DBG}
|
| 65 |
+
|
| 66 |
+
# Make sure the "python" value in conda_build_config.yaml is up to date.
|
| 67 |
+
test "${PY_VER}" = "${VER}"
|
| 68 |
+
|
| 69 |
+
# This is the mechanism by which we fall back to default gcc, but having it defined here
|
| 70 |
+
# would probably break the build by using incorrect settings and/or importing files that
|
| 71 |
+
# do not yet exist.
|
| 72 |
+
unset _PYTHON_SYSCONFIGDATA_NAME
|
| 73 |
+
unset _CONDA_PYTHON_SYSCONFIGDATA_NAME
|
| 74 |
+
|
| 75 |
+
# Prevent lib/python${VER}/_sysconfigdata_*.py from ending up with full paths to these things
|
| 76 |
+
# in _build_env because _build_env will not get found during prefix replacement, only _h_env_placeh ...
|
| 77 |
+
AR=$(basename "${AR}")
|
| 78 |
+
|
| 79 |
+
# CC must contain the string 'gcc' or else distutils thinks it is on macOS and uses '-R' to set rpaths.
|
| 80 |
+
if [[ ${target_platform} == osx-* ]]; then
|
| 81 |
+
CC=$(basename "${CC}")
|
| 82 |
+
else
|
| 83 |
+
CC=$(basename "${GCC}")
|
| 84 |
+
fi
|
| 85 |
+
CXX=$(basename "${CXX}")
|
| 86 |
+
RANLIB=$(basename "${RANLIB}")
|
| 87 |
+
READELF=$(basename "${READELF}")
|
| 88 |
+
|
| 89 |
+
if [[ ${HOST} =~ .*darwin.* ]] && [[ -n ${CONDA_BUILD_SYSROOT} ]]; then
|
| 90 |
+
# Python's setup.py will figure out that this is a macOS sysroot.
|
| 91 |
+
CFLAGS="-isysroot ${CONDA_BUILD_SYSROOT} "${CFLAGS}
|
| 92 |
+
LDFLAGS="-isysroot ${CONDA_BUILD_SYSROOT} "${LDFLAGS}
|
| 93 |
+
CPPFLAGS="-isysroot ${CONDA_BUILD_SYSROOT} "${CPPFLAGS}
|
| 94 |
+
fi
|
| 95 |
+
|
| 96 |
+
# Debian uses -O3 then resets it at the end to -O2 in _sysconfigdata.py
|
| 97 |
+
if [[ ${_OPTIMIZED} = yes ]]; then
|
| 98 |
+
CPPFLAGS=$(echo "${CPPFLAGS}" | sed "s/-O2/-O3/g")
|
| 99 |
+
CFLAGS=$(echo "${CFLAGS}" | sed "s/-O2/-O3/g")
|
| 100 |
+
CXXFLAGS=$(echo "${CXXFLAGS}" | sed "s/-O2/-O3/g")
|
| 101 |
+
fi
|
| 102 |
+
|
| 103 |
+
if [[ ${CONDA_FORGE} == yes ]]; then
|
| 104 |
+
${SYS_PYTHON} ${RECIPE_DIR}/brand_python.py
|
| 105 |
+
fi
|
| 106 |
+
|
| 107 |
+
if [[ "$target_platform" == linux-* ]]; then
|
| 108 |
+
cp ${PREFIX}/include/uuid/uuid.h ${PREFIX}/include/uuid.h
|
| 109 |
+
fi
|
| 110 |
+
|
| 111 |
+
declare -a LTO_CFLAGS=()
|
| 112 |
+
|
| 113 |
+
# Following is needed for building extensions like zlib
|
| 114 |
+
CPPFLAGS=${CPPFLAGS}" -I${PREFIX}/include"
|
| 115 |
+
|
| 116 |
+
re='^(.*)(-I[^ ]*)(.*)$'
|
| 117 |
+
if [[ ${CFLAGS} =~ $re ]]; then
|
| 118 |
+
CFLAGS="${BASH_REMATCH[1]}${BASH_REMATCH[3]}"
|
| 119 |
+
fi
|
| 120 |
+
|
| 121 |
+
# Force rebuild to avoid:
|
| 122 |
+
# ../work/Modules/unicodename_db.h:24118:30: note: (near initialization for 'code_hash')
|
| 123 |
+
# ../work/Modules/unicodename_db.h:24118:33: warning: excess elements in scalar initializer
|
| 124 |
+
# 0, 0, 12018, 0, 0, 0, 0, 0, 4422, 4708, 3799, 119358, 119357, 0, 120510,
|
| 125 |
+
# ^~~~
|
| 126 |
+
# This should have been fixed by https://github.com/python/cpython/commit/7c69c1c0fba8c1c8ff3969bce4c1135736a4cc58
|
| 127 |
+
# .. but that appears incomplete. In particular, the generated files contain:
|
| 128 |
+
# /* this file was generated by Tools/unicode/makeunicodedata.py 3.2 */
|
| 129 |
+
# .. yet the PR updated to version of makeunicodedata.py to 3.3
|
| 130 |
+
# rm -f Modules/unicodedata_db.h Modules/unicodename_db.h
|
| 131 |
+
# ${SYS_PYTHON} ${SRC_DIR}/Tools/unicode/makeunicodedata.py
|
| 132 |
+
# .. instead we revert this commit for now.
|
| 133 |
+
|
| 134 |
+
export CPPFLAGS CFLAGS CXXFLAGS LDFLAGS
|
| 135 |
+
|
| 136 |
+
declare -a _common_configure_args
|
| 137 |
+
|
| 138 |
+
if [[ ${target_platform} == osx-* ]]; then
|
| 139 |
+
sed -i -e "s/@OSX_ARCH@/$ARCH/g" Lib/distutils/unixccompiler.py
|
| 140 |
+
fi
|
| 141 |
+
|
| 142 |
+
if [[ "${CONDA_BUILD_CROSS_COMPILATION}" == "1" ]]; then
|
| 143 |
+
# Build the exact same Python for the build machine. It would be nice (and might be
|
| 144 |
+
# possible already?) to be able to make this just an 'exact' pinned build dependency
|
| 145 |
+
# of a split-package?
|
| 146 |
+
BUILD_PYTHON_PREFIX=${PWD}/build-python-install
|
| 147 |
+
mkdir build-python-build
|
| 148 |
+
pushd build-python-build
|
| 149 |
+
(unset CPPFLAGS LDFLAGS;
|
| 150 |
+
export CC=${CC_FOR_BUILD} \
|
| 151 |
+
CXX=${CXX_FOR_BUILD} \
|
| 152 |
+
CPP="${CC_FOR_BUILD} -E" \
|
| 153 |
+
CFLAGS="-O2" \
|
| 154 |
+
AR="$(${CC_FOR_BUILD} --print-prog-name=ar)" \
|
| 155 |
+
RANLIB="$(${CC_FOR_BUILD} --print-prog-name=ranlib)" \
|
| 156 |
+
LD="$(${CC_FOR_BUILD} --print-prog-name=ld)" && \
|
| 157 |
+
${SRC_DIR}/configure --build=${BUILD} \
|
| 158 |
+
--host=${BUILD} \
|
| 159 |
+
--prefix=${BUILD_PYTHON_PREFIX} \
|
| 160 |
+
--with-ensurepip=no \
|
| 161 |
+
--with-tzpath=${PREFIX}/share/zoneinfo \
|
| 162 |
+
--with-platlibdir=lib && \
|
| 163 |
+
make -j${CPU_COUNT} && \
|
| 164 |
+
make install)
|
| 165 |
+
export PATH=${BUILD_PYTHON_PREFIX}/bin:${PATH}
|
| 166 |
+
ln -s ${BUILD_PYTHON_PREFIX}/bin/python${VER} ${BUILD_PYTHON_PREFIX}/bin/python
|
| 167 |
+
popd
|
| 168 |
+
echo "ac_cv_file__dev_ptmx=yes" > config.site
|
| 169 |
+
echo "ac_cv_file__dev_ptc=yes" >> config.site
|
| 170 |
+
echo "ac_cv_pthread=yes" >> config.site
|
| 171 |
+
echo "ac_cv_little_endian_double=yes" >> config.site
|
| 172 |
+
if [[ ${target_platform} == osx-arm64 ]]; then
|
| 173 |
+
echo "ac_cv_aligned_required=no" >> config.site
|
| 174 |
+
echo "ac_cv_file__dev_ptc=no" >> config.site
|
| 175 |
+
echo "ac_cv_pthread_is_default=yes" >> config.site
|
| 176 |
+
echo "ac_cv_working_tzset=yes" >> config.site
|
| 177 |
+
echo "ac_cv_pthread_system_supported=yes" >> config.site
|
| 178 |
+
fi
|
| 179 |
+
export CONFIG_SITE=${PWD}/config.site
|
| 180 |
+
# This is needed for libffi:
|
| 181 |
+
export PKG_CONFIG_PATH=${PREFIX}/lib/pkgconfig
|
| 182 |
+
_common_configure_args+=(--with-build-python=${BUILD_PYTHON_PREFIX}/bin/python)
|
| 183 |
+
fi
|
| 184 |
+
|
| 185 |
+
# This causes setup.py to query the sysroot directories from the compiler, something which
|
| 186 |
+
# IMHO should be done by default anyway with a flag to disable it to workaround broken ones.
|
| 187 |
+
# Technically, setting _PYTHON_HOST_PLATFORM causes setup.py to consider it cross_compiling
|
| 188 |
+
if [[ -n ${HOST} ]]; then
|
| 189 |
+
if [[ ${HOST} =~ .*darwin.* ]]; then
|
| 190 |
+
# Even if BUILD is .*darwin.* you get better isolation by cross_compiling (no /usr/local)
|
| 191 |
+
IFS='-' read -r host_arch host_os host_kernel <<<"${HOST}"
|
| 192 |
+
export _PYTHON_HOST_PLATFORM=darwin-${host_arch}
|
| 193 |
+
else
|
| 194 |
+
IFS='-' read -r host_arch host_vendor host_os host_libc <<<"${HOST}"
|
| 195 |
+
export _PYTHON_HOST_PLATFORM=${host_os}-${host_arch}
|
| 196 |
+
fi
|
| 197 |
+
fi
|
| 198 |
+
|
| 199 |
+
if [[ ${target_platform} == osx-64 ]]; then
|
| 200 |
+
export MACHDEP=darwin
|
| 201 |
+
export ac_sys_system=Darwin
|
| 202 |
+
export ac_sys_release=13.4.0
|
| 203 |
+
export MACOSX_DEFAULT_ARCH=x86_64
|
| 204 |
+
# TODO: check with LLVM 12 if the following hack is needed.
|
| 205 |
+
# https://reviews.llvm.org/D76461 may have fixed the need for the following hack.
|
| 206 |
+
echo '#!/bin/bash' > $BUILD_PREFIX/bin/$HOST-llvm-ar
|
| 207 |
+
echo "$BUILD_PREFIX/bin/llvm-ar --format=darwin" '"$@"' >> $BUILD_PREFIX/bin/$HOST-llvm-ar
|
| 208 |
+
chmod +x $BUILD_PREFIX/bin/$HOST-llvm-ar
|
| 209 |
+
export ARCHFLAGS="-arch x86_64"
|
| 210 |
+
elif [[ ${target_platform} == osx-arm64 ]]; then
|
| 211 |
+
export MACHDEP=darwin
|
| 212 |
+
export ac_sys_system=Darwin
|
| 213 |
+
export ac_sys_release=20.0.0
|
| 214 |
+
export MACOSX_DEFAULT_ARCH=arm64
|
| 215 |
+
echo '#!/bin/bash' > $BUILD_PREFIX/bin/$HOST-llvm-ar
|
| 216 |
+
echo "$BUILD_PREFIX/bin/llvm-ar --format=darwin" '"$@"' >> $BUILD_PREFIX/bin/$HOST-llvm-ar
|
| 217 |
+
chmod +x $BUILD_PREFIX/bin/$HOST-llvm-ar
|
| 218 |
+
export ARCHFLAGS="-arch arm64"
|
| 219 |
+
export CFLAGS="$CFLAGS $ARCHFLAGS"
|
| 220 |
+
elif [[ ${target_platform} == linux-* ]]; then
|
| 221 |
+
export MACHDEP=linux
|
| 222 |
+
export ac_sys_system=Linux
|
| 223 |
+
export ac_sys_release=
|
| 224 |
+
fi
|
| 225 |
+
|
| 226 |
+
# Not used at present but we should run 'make test' and finish up TESTOPTS (see debians rules).
|
| 227 |
+
declare -a TEST_EXCLUDES
|
| 228 |
+
TEST_EXCLUDES+=(test_ensurepip test_venv)
|
| 229 |
+
TEST_EXCLUDES+=(test_tcl test_codecmaps_cn test_codecmaps_hk
|
| 230 |
+
test_codecmaps_jp test_codecmaps_kr test_codecmaps_tw
|
| 231 |
+
test_normalization test_ossaudiodev test_socket)
|
| 232 |
+
if [[ ! -f /dev/dsp ]]; then
|
| 233 |
+
TEST_EXCLUDES+=(test_linuxaudiodev test_ossaudiodev)
|
| 234 |
+
fi
|
| 235 |
+
# hangs on Aarch64, see LP: #1264354
|
| 236 |
+
if [[ ${CC} =~ .*-aarch64.* ]]; then
|
| 237 |
+
TEST_EXCLUDES+=(test_faulthandler)
|
| 238 |
+
fi
|
| 239 |
+
if [[ ${CC} =~ .*-arm.* ]]; then
|
| 240 |
+
TEST_EXCLUDES+=(test_ctypes)
|
| 241 |
+
TEST_EXCLUDES+=(test_compiler)
|
| 242 |
+
fi
|
| 243 |
+
|
| 244 |
+
_common_configure_args+=(--prefix=${PREFIX})
|
| 245 |
+
_common_configure_args+=(--build=${BUILD})
|
| 246 |
+
_common_configure_args+=(--host=${HOST})
|
| 247 |
+
_common_configure_args+=(--enable-ipv6)
|
| 248 |
+
_common_configure_args+=(--with-ensurepip=no)
|
| 249 |
+
_common_configure_args+=(--with-tzpath=${PREFIX}/share/zoneinfo)
|
| 250 |
+
_common_configure_args+=(--with-computed-gotos)
|
| 251 |
+
_common_configure_args+=(--with-system-ffi)
|
| 252 |
+
_common_configure_args+=(--with-system-expat)
|
| 253 |
+
_common_configure_args+=(--enable-loadable-sqlite-extensions)
|
| 254 |
+
_common_configure_args+=(--with-tcltk-includes="-I${PREFIX}/include")
|
| 255 |
+
_common_configure_args+=("--with-tcltk-libs=-L${PREFIX}/lib -ltcl8.6 -ltk8.6")
|
| 256 |
+
_common_configure_args+=(--with-platlibdir=lib)
|
| 257 |
+
|
| 258 |
+
# Add more optimization flags for the static Python interpreter:
|
| 259 |
+
declare -a PROFILE_TASK=()
|
| 260 |
+
if [[ ${_OPTIMIZED} == yes ]]; then
|
| 261 |
+
_common_configure_args+=(--with-lto)
|
| 262 |
+
if [[ "$CONDA_BUILD_CROSS_COMPILATION" != "1" ]]; then
|
| 263 |
+
_common_configure_args+=(--enable-optimizations)
|
| 264 |
+
_MAKE_TARGET=profile-opt
|
| 265 |
+
# To speed up build times during testing (1):
|
| 266 |
+
if [[ ${QUICK_BUILD} == yes ]]; then
|
| 267 |
+
# TODO :: It seems this is just profiling everything, on Windows, only 40 odd tests are
|
| 268 |
+
# run while on Unix, all 400+ are run, making this slower and less well curated
|
| 269 |
+
_PROFILE_TASK+=(PROFILE_TASK="-m test --pgo")
|
| 270 |
+
else
|
| 271 |
+
# From talking to Steve Dower, who implemented pgo/pgo-extended, it is really not worth
|
| 272 |
+
# it to run pgo-extended (which runs the whole test-suite). The --pgo set of tests are
|
| 273 |
+
# curated specifically to be useful/appropriate for pgo instrumentation.
|
| 274 |
+
# _PROFILE_TASK+=(PROFILE_TASK="-m test --pgo-extended")
|
| 275 |
+
_PROFILE_TASK+=(PROFILE_TASK="-m test --pgo")
|
| 276 |
+
fi
|
| 277 |
+
fi
|
| 278 |
+
if [[ ${CC} =~ .*gcc.* ]]; then
|
| 279 |
+
LTO_CFLAGS+=(-fuse-linker-plugin)
|
| 280 |
+
LTO_CFLAGS+=(-ffat-lto-objects)
|
| 281 |
+
# -flto must come after -flto-partition due to the replacement code
|
| 282 |
+
# TODO :: Replace the replacement code using conda-build's in-build regex replacement.
|
| 283 |
+
LTO_CFLAGS+=(-flto-partition=none)
|
| 284 |
+
LTO_CFLAGS+=(-flto)
|
| 285 |
+
else
|
| 286 |
+
# TODO :: Check if -flto=thin gives better results. It is about faster
|
| 287 |
+
# compilation rather than faster execution so probably not:
|
| 288 |
+
# http://clang.llvm.org/docs/ThinLTO.html
|
| 289 |
+
# http://blog.llvm.org/2016/06/thinlto-scalable-and-incremental-lto.html
|
| 290 |
+
LTO_CFLAGS+=(-flto)
|
| 291 |
+
# -flto breaks the check to determine whether float word ordering is bigendian
|
| 292 |
+
# see:
|
| 293 |
+
# https://bugs.python.org/issue28015
|
| 294 |
+
# https://bugs.python.org/issue38527
|
| 295 |
+
# manually specify this setting
|
| 296 |
+
export ax_cv_c_float_words_bigendian=no
|
| 297 |
+
fi
|
| 298 |
+
export CFLAGS="${CFLAGS} ${LTO_CFLAGS[@]}"
|
| 299 |
+
else
|
| 300 |
+
_MAKE_TARGET=
|
| 301 |
+
fi
|
| 302 |
+
|
| 303 |
+
mkdir -p ${_buildd_shared}
|
| 304 |
+
pushd ${_buildd_shared}
|
| 305 |
+
${SRC_DIR}/configure "${_common_configure_args[@]}" \
|
| 306 |
+
"${_dbg_opts[@]}" \
|
| 307 |
+
--oldincludedir=${BUILD_PREFIX}/${HOST}/sysroot/usr/include \
|
| 308 |
+
--enable-shared
|
| 309 |
+
popd
|
| 310 |
+
|
| 311 |
+
mkdir -p ${_buildd_static}
|
| 312 |
+
pushd ${_buildd_static}
|
| 313 |
+
${SRC_DIR}/configure "${_common_configure_args[@]}" \
|
| 314 |
+
"${_dbg_opts[@]}" \
|
| 315 |
+
-oldincludedir=${BUILD_PREFIX}/${HOST}/sysroot/usr/include \
|
| 316 |
+
${_DISABLE_SHARED} "${_PROFILE_TASK[@]}"
|
| 317 |
+
popd
|
| 318 |
+
|
| 319 |
+
if [[ "${CI}" == "travis" ]]; then
|
| 320 |
+
# Travis has issues with long logs
|
| 321 |
+
make -j${CPU_COUNT} -C ${_buildd_static} \
|
| 322 |
+
EXTRA_CFLAGS="${EXTRA_CFLAGS}" \
|
| 323 |
+
${_MAKE_TARGET} "${_PROFILE_TASK[@]}" 2>&1 >make-static.log
|
| 324 |
+
else
|
| 325 |
+
make -j${CPU_COUNT} -C ${_buildd_static} \
|
| 326 |
+
EXTRA_CFLAGS="${EXTRA_CFLAGS}" \
|
| 327 |
+
${_MAKE_TARGET} "${_PROFILE_TASK[@]}" 2>&1 | tee make-static.log
|
| 328 |
+
fi
|
| 329 |
+
if rg "Failed to build these modules" make-static.log; then
|
| 330 |
+
echo "(static) :: Failed to build some modules, check the log"
|
| 331 |
+
exit 1
|
| 332 |
+
fi
|
| 333 |
+
|
| 334 |
+
if [[ "${CI}" == "travis" ]]; then
|
| 335 |
+
# Travis has issues with long logs
|
| 336 |
+
make -j${CPU_COUNT} -C ${_buildd_shared} \
|
| 337 |
+
EXTRA_CFLAGS="${EXTRA_CFLAGS}" 2>&1 >make-shared.log
|
| 338 |
+
else
|
| 339 |
+
make -j${CPU_COUNT} -C ${_buildd_shared} \
|
| 340 |
+
EXTRA_CFLAGS="${EXTRA_CFLAGS}" 2>&1 | tee make-shared.log
|
| 341 |
+
fi
|
| 342 |
+
if rg "Failed to build these modules" make-shared.log; then
|
| 343 |
+
echo "(shared) :: Failed to build some modules, check the log"
|
| 344 |
+
exit 1
|
| 345 |
+
fi
|
| 346 |
+
|
| 347 |
+
# build a static library with PIC objects and without LTO/PGO
|
| 348 |
+
make -j${CPU_COUNT} -C ${_buildd_shared} \
|
| 349 |
+
EXTRA_CFLAGS="${EXTRA_CFLAGS}" \
|
| 350 |
+
LIBRARY=libpython${VERABI}-pic.a libpython${VERABI}-pic.a
|
| 351 |
+
|
| 352 |
+
make -C ${_buildd_static} install
|
| 353 |
+
|
| 354 |
+
declare -a _FLAGS_REPLACE=()
|
| 355 |
+
if [[ ${_OPTIMIZED} == yes ]]; then
|
| 356 |
+
_FLAGS_REPLACE+=(-O3)
|
| 357 |
+
_FLAGS_REPLACE+=(-O2)
|
| 358 |
+
_FLAGS_REPLACE+=("-fprofile-use")
|
| 359 |
+
_FLAGS_REPLACE+=("")
|
| 360 |
+
_FLAGS_REPLACE+=("-fprofile-correction")
|
| 361 |
+
_FLAGS_REPLACE+=("")
|
| 362 |
+
_FLAGS_REPLACE+=("-L.")
|
| 363 |
+
_FLAGS_REPLACE+=("")
|
| 364 |
+
for _LTO_CFLAG in "${LTO_CFLAGS[@]}"; do
|
| 365 |
+
_FLAGS_REPLACE+=(${_LTO_CFLAG})
|
| 366 |
+
_FLAGS_REPLACE+=("")
|
| 367 |
+
done
|
| 368 |
+
fi
|
| 369 |
+
# Install the shared library (for people who embed Python only, e.g. GDB).
|
| 370 |
+
# Linking module extensions to this on Linux is redundant (but harmless).
|
| 371 |
+
# Linking module extensions to this on Darwin is harmful (multiply defined symbols).
|
| 372 |
+
cp -pf ${_buildd_shared}/libpython*${SHLIB_EXT}* ${PREFIX}/lib/
|
| 373 |
+
if [[ ${target_platform} =~ .*linux.* ]]; then
|
| 374 |
+
ln -sf ${PREFIX}/lib/libpython${VERABI}${SHLIB_EXT}.1.0 ${PREFIX}/lib/libpython${VERABI}${SHLIB_EXT}
|
| 375 |
+
fi
|
| 376 |
+
|
| 377 |
+
SYSCONFIG=$(find ${_buildd_static}/$(cat ${_buildd_static}/pybuilddir.txt) -name "_sysconfigdata*.py" -print0)
|
| 378 |
+
cat ${SYSCONFIG} | ${SYS_PYTHON} "${RECIPE_DIR}"/replace-word-pairs.py \
|
| 379 |
+
"${_FLAGS_REPLACE[@]}" \
|
| 380 |
+
> ${PREFIX}/lib/python${VER}/$(basename ${SYSCONFIG})
|
| 381 |
+
MAKEFILE=$(find ${PREFIX}/lib/python${VER}/ -path "*config-*/Makefile" -print0)
|
| 382 |
+
cp ${MAKEFILE} /tmp/Makefile-$$
|
| 383 |
+
cat /tmp/Makefile-$$ | ${SYS_PYTHON} "${RECIPE_DIR}"/replace-word-pairs.py \
|
| 384 |
+
"${_FLAGS_REPLACE[@]}" \
|
| 385 |
+
> ${MAKEFILE}
|
| 386 |
+
# Check to see that our differences took.
|
| 387 |
+
# echo diff -urN ${SYSCONFIG} ${PREFIX}/lib/python${VER}/$(basename ${SYSCONFIG})
|
| 388 |
+
# diff -urN ${SYSCONFIG} ${PREFIX}/lib/python${VER}/$(basename ${SYSCONFIG})
|
| 389 |
+
|
| 390 |
+
# Python installs python${VER}m and python${VER}, one as a hardlink to the other. conda-build breaks these
|
| 391 |
+
# by copying. Since the executable may be static it may be very large so change one to be a symlink
|
| 392 |
+
# of the other. In this case, python${VER}m will be the symlink.
|
| 393 |
+
if [[ -f ${PREFIX}/bin/python${VER}m ]]; then
|
| 394 |
+
rm -f ${PREFIX}/bin/python${VER}m
|
| 395 |
+
ln -s ${PREFIX}/bin/python${VER} ${PREFIX}/bin/python${VER}m
|
| 396 |
+
fi
|
| 397 |
+
ln -s ${PREFIX}/bin/python${VER} ${PREFIX}/bin/python
|
| 398 |
+
ln -s ${PREFIX}/bin/pydoc${VER} ${PREFIX}/bin/pydoc
|
| 399 |
+
# Workaround for https://github.com/conda/conda/issues/10969
|
| 400 |
+
ln -s ${PREFIX}/bin/python3.11 ${PREFIX}/bin/python3.1
|
| 401 |
+
|
| 402 |
+
# Remove test data to save space
|
| 403 |
+
# Though keep `support` as some things use that.
|
| 404 |
+
# TODO :: Make a subpackage for this once we implement multi-level testing.
|
| 405 |
+
pushd ${PREFIX}/lib/python${VER}
|
| 406 |
+
mkdir test_keep
|
| 407 |
+
mv test/__init__.py test/support test/test_support* test/test_script_helper* test_keep/
|
| 408 |
+
rm -rf test */test
|
| 409 |
+
mv test_keep test
|
| 410 |
+
popd
|
| 411 |
+
|
| 412 |
+
# Size reductions:
|
| 413 |
+
pushd ${PREFIX}
|
| 414 |
+
if [[ -f lib/libpython${VERABI}.a ]]; then
|
| 415 |
+
chmod +w lib/libpython${VERABI}.a
|
| 416 |
+
${STRIP} -S lib/libpython${VERABI}.a
|
| 417 |
+
fi
|
| 418 |
+
CONFIG_LIBPYTHON=$(find lib/python${VER}/config-${VERABI}* -name "libpython${VERABI}.a")
|
| 419 |
+
if [[ -f lib/libpython${VERABI}.a ]] && [[ -f ${CONFIG_LIBPYTHON} ]]; then
|
| 420 |
+
chmod +w ${CONFIG_LIBPYTHON}
|
| 421 |
+
rm ${CONFIG_LIBPYTHON}
|
| 422 |
+
fi
|
| 423 |
+
popd
|
| 424 |
+
|
| 425 |
+
# OLD_HOST is with CentOS version in them. When building this recipe
|
| 426 |
+
# with the compilers from conda-forge OLD_HOST != HOST, but when building
|
| 427 |
+
# with the compilers from defaults OLD_HOST == HOST. Both cases are handled in the
|
| 428 |
+
# code below
|
| 429 |
+
case "$target_platform" in
|
| 430 |
+
linux-64)
|
| 431 |
+
OLD_HOST=$(echo ${HOST} | sed -e 's/-conda-/-conda_cos6-/g')
|
| 432 |
+
;;
|
| 433 |
+
linux-*)
|
| 434 |
+
OLD_HOST=$(echo ${HOST} | sed -e 's/-conda-/-conda_cos7-/g')
|
| 435 |
+
;;
|
| 436 |
+
*)
|
| 437 |
+
OLD_HOST=$HOST
|
| 438 |
+
;;
|
| 439 |
+
esac
|
| 440 |
+
|
| 441 |
+
# Copy sysconfig that gets recorded to a non-default name
|
| 442 |
+
# using the new compilers with python will require setting _PYTHON_SYSCONFIGDATA_NAME
|
| 443 |
+
# to the name of this file (minus the .py extension)
|
| 444 |
+
pushd "${PREFIX}"/lib/python${VER}
|
| 445 |
+
# On Python 3.5 _sysconfigdata.py was getting copied in here and compiled for some reason.
|
| 446 |
+
# This breaks our attempt to find the right one as recorded_name.
|
| 447 |
+
find lib-dynload -name "_sysconfigdata*.py*" -exec rm {} \;
|
| 448 |
+
recorded_name=$(find . -name "_sysconfigdata*.py")
|
| 449 |
+
our_compilers_name=_sysconfigdata_$(echo ${HOST} | sed -e 's/[.-]/_/g').py
|
| 450 |
+
# So we can see if anything has significantly diverged by looking in a built package.
|
| 451 |
+
cp ${recorded_name} ${recorded_name}.orig
|
| 452 |
+
cp ${recorded_name} sysconfigfile
|
| 453 |
+
# fdebug-prefix-map for python work dir is useless for extensions
|
| 454 |
+
sed -i.bak "s@-fdebug-prefix-map=$SRC_DIR=/usr/local/src/conda/python-$PKG_VERSION@@g" sysconfigfile
|
| 455 |
+
sed -i.bak "s@-fdebug-prefix-map=$PREFIX=/usr/local/src/conda-prefix@@g" sysconfigfile
|
| 456 |
+
# Append the conda-forge zoneinfo to the end
|
| 457 |
+
sed -i.bak "s@zoneinfo'@zoneinfo:$PREFIX/share/tzinfo'@g" sysconfigfile
|
| 458 |
+
# Remove osx sysroot as it depends on the build machine
|
| 459 |
+
sed -i.bak "s@-isysroot @@g" sysconfigfile
|
| 460 |
+
# make sure $CONDA_BUILD_SYSROOT is not empty ...
|
| 461 |
+
if [[ ${HOST} =~ .*darwin.* ]] && [[ -n ${CONDA_BUILD_SYSROOT} ]]; then
|
| 462 |
+
sed -i.bak "s@$CONDA_BUILD_SYSROOT @@g" sysconfigfile
|
| 463 |
+
fi
|
| 464 |
+
# Remove unfilled config option
|
| 465 |
+
sed -i.bak "s/@SGI_ABI@//g" sysconfigfile
|
| 466 |
+
sed -i.bak "s@$BUILD_PREFIX/bin/${HOST}-llvm-ar@${HOST}-ar@g" sysconfigfile
|
| 467 |
+
# Remove GNULD=yes to make sure new-dtags are not used
|
| 468 |
+
sed -i.bak "s/'GNULD': 'yes'/'GNULD': 'no'/g" sysconfigfile
|
| 469 |
+
cp sysconfigfile ${our_compilers_name}
|
| 470 |
+
|
| 471 |
+
sed -i.bak "s@${HOST}@${OLD_HOST}@g" sysconfigfile
|
| 472 |
+
old_compiler_name=_sysconfigdata_$(echo ${OLD_HOST} | sed -e 's/[.-]/_/g').py
|
| 473 |
+
cp sysconfigfile ${old_compiler_name}
|
| 474 |
+
|
| 475 |
+
# For system gcc remove the triple
|
| 476 |
+
sed -i.bak "s@$OLD_HOST-c++@g++@g" sysconfigfile
|
| 477 |
+
sed -i.bak "s@$OLD_HOST-@@g" sysconfigfile
|
| 478 |
+
if [[ "$target_platform" == linux* ]]; then
|
| 479 |
+
# For linux, make sure the system gcc uses our linker
|
| 480 |
+
sed -i.bak "s@-pthread@-pthread -B $PREFIX/compiler_compat@g" sysconfigfile
|
| 481 |
+
fi
|
| 482 |
+
# Don't set -march and -mtune for system gcc
|
| 483 |
+
sed -i.bak "s@-march=[^( |\\\"|\\\')]*@@g" sysconfigfile
|
| 484 |
+
sed -i.bak "s@-mtune=[^( |\\\"|\\\')]*@@g" sysconfigfile
|
| 485 |
+
# Remove these flags that older compilers and linkers may not know
|
| 486 |
+
for flag in "-fstack-protector-strong" "-ffunction-sections" "-pipe" "-fno-plt" \
|
| 487 |
+
"-ftree-vectorize" "-Wl,--sort-common" "-Wl,--as-needed" "-Wl,-z,relro" \
|
| 488 |
+
"-Wl,-z,now" "-Wl,--disable-new-dtags" "-Wl,--gc-sections" "-Wl,-O2" \
|
| 489 |
+
"-fPIE" "-ftree-vectorize" "-mssse3" "-Wl,-pie" "-Wl,-dead_strip_dylibs" \
|
| 490 |
+
"-Wl,-headerpad_max_install_names"; do
|
| 491 |
+
sed -i.bak "s@$flag@@g" sysconfigfile
|
| 492 |
+
done
|
| 493 |
+
# Cleanup some extra spaces from above
|
| 494 |
+
sed -i.bak "s@' [ ]*@'@g" sysconfigfile
|
| 495 |
+
cp sysconfigfile $recorded_name
|
| 496 |
+
echo "========================sysconfig==========================="
|
| 497 |
+
cat $recorded_name
|
| 498 |
+
echo "============================================================"
|
| 499 |
+
|
| 500 |
+
rm sysconfigfile
|
| 501 |
+
rm sysconfigfile.bak
|
| 502 |
+
popd
|
| 503 |
+
|
| 504 |
+
if [[ ${HOST} =~ .*linux.* ]]; then
|
| 505 |
+
mkdir -p ${PREFIX}/compiler_compat
|
| 506 |
+
ln -s ${PREFIX}/bin/${HOST}-ld ${PREFIX}/compiler_compat/ld
|
| 507 |
+
echo "Files in this folder are to enhance backwards compatibility of anaconda software with older compilers." > ${PREFIX}/compiler_compat/README
|
| 508 |
+
echo "See: https://github.com/conda/conda/issues/6030 for more information." >> ${PREFIX}/compiler_compat/README
|
| 509 |
+
fi
|
| 510 |
+
|
| 511 |
+
# There are some strange distutils files around. Delete them
|
| 512 |
+
rm -rf ${PREFIX}/lib/python${VER}/distutils/command/*.exe
|
| 513 |
+
|
| 514 |
+
python -c "import compileall,os;compileall.compile_dir(os.environ['PREFIX'])"
|
| 515 |
+
rm ${PREFIX}/lib/libpython${VER}.a
|
| 516 |
+
if [[ "$target_platform" == linux-* ]]; then
|
| 517 |
+
rm ${PREFIX}/include/uuid.h
|
| 518 |
+
fi
|
| 519 |
+
|
| 520 |
+
# Workaround for old conda versions which fail to install noarch packages for Python 3.10+
|
| 521 |
+
# https://github.com/conda/conda/issues/10969
|
| 522 |
+
ln -s "${PREFIX}/lib/python3.11" "${PREFIX}/lib/python3.1"
|
docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/build_static.bat
ADDED
|
File without changes
|
docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/build_static.sh
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
set -ex
|
| 3 |
+
|
| 4 |
+
_buildd_static=build-static
|
| 5 |
+
_buildd_shared=build-shared
|
| 6 |
+
if [[ ${DEBUG_PY} == yes ]]; then
|
| 7 |
+
DBG=d
|
| 8 |
+
else
|
| 9 |
+
DBG=
|
| 10 |
+
fi
|
| 11 |
+
VER=${PKG_VERSION%.*}
|
| 12 |
+
VERABI=${VER}${DBG}
|
| 13 |
+
|
| 14 |
+
case "$target_platform" in
|
| 15 |
+
linux-64)
|
| 16 |
+
OLD_HOST=$(echo ${HOST} | sed -e 's/-conda_cos6//g')
|
| 17 |
+
OLD_HOST=$(echo ${OLD_HOST} | sed -e 's/-conda_cos7//g')
|
| 18 |
+
OLD_HOST=$(echo ${OLD_HOST} | sed -e 's/-conda//g')
|
| 19 |
+
;;
|
| 20 |
+
linux-*)
|
| 21 |
+
OLD_HOST=$(echo ${HOST} | sed -e 's/-conda_cos7//g')
|
| 22 |
+
OLD_HOST=$(echo ${OLD_HOST} | sed -e 's/-conda//g')
|
| 23 |
+
;;
|
| 24 |
+
*)
|
| 25 |
+
OLD_HOST=$HOST
|
| 26 |
+
;;
|
| 27 |
+
esac
|
| 28 |
+
|
| 29 |
+
cp -pf ${_buildd_static}/libpython${VERABI}.a ${PREFIX}/lib/libpython${VERABI}.a
|
| 30 |
+
if [[ ${HOST} =~ .*linux.* ]]; then
|
| 31 |
+
pushd ${PREFIX}/lib/python${VERABI}/config-${VERABI}-${OLD_HOST}
|
| 32 |
+
elif [[ ${HOST} =~ .*darwin.* ]]; then
|
| 33 |
+
pushd ${PREFIX}/lib/python${VERABI}/config-${VERABI}-darwin
|
| 34 |
+
fi
|
| 35 |
+
ln -s ../../libpython${VERABI}.a libpython${VERABI}.a
|
| 36 |
+
popd
|
| 37 |
+
# If the LTO info in the normal lib is problematic (using different compilers for example
|
| 38 |
+
# we also provide a 'nolto' version).
|
| 39 |
+
cp -pf ${_buildd_shared}/libpython${VERABI}-pic.a ${PREFIX}/lib/libpython${VERABI}.nolto.a
|
docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/conda_build_config.yaml
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
python:
|
| 2 |
+
- 3.11
|
| 3 |
+
python_impl:
|
| 4 |
+
- cpython
|
| 5 |
+
libffi: # [win]
|
| 6 |
+
- 3.4 # [win]
|
| 7 |
+
numpy:
|
| 8 |
+
- 1.21
|
| 9 |
+
MACOSX_SDK_VERSION: # [osx and x86_64]
|
| 10 |
+
- 10.14 # [osx and x86_64]
|
| 11 |
+
CONDA_BUILD_SYSROOT: # [osx and x86_64]
|
| 12 |
+
- /opt/MacOSX10.14.sdk # [osx and x86_64]
|
| 13 |
+
|
docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/fix_staged_scripts.py
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from os.path import isdir, isfile, dirname, join
|
| 2 |
+
|
| 3 |
+
import os
|
| 4 |
+
import shutil
|
| 5 |
+
|
| 6 |
+
|
| 7 |
+
# Taken and adapted from conda_build/windows.py
|
| 8 |
+
def fix_staged_scripts(scripts_dir):
|
| 9 |
+
"""
|
| 10 |
+
Fixes scripts which have been installed unix-style to have a .bat
|
| 11 |
+
helper
|
| 12 |
+
"""
|
| 13 |
+
if not isdir(scripts_dir):
|
| 14 |
+
return
|
| 15 |
+
for fn in os.listdir(scripts_dir):
|
| 16 |
+
# process all the extensionless files
|
| 17 |
+
if not isfile(join(scripts_dir, fn)) or '.' in fn:
|
| 18 |
+
continue
|
| 19 |
+
|
| 20 |
+
# read as binary file to ensure we don't run into encoding errors, see #1632
|
| 21 |
+
with open(join(scripts_dir, fn), 'rb') as f:
|
| 22 |
+
line = f.readline()
|
| 23 |
+
# If it's a #!python script
|
| 24 |
+
if not (line.startswith(b'#!') and b'python' in line.lower()):
|
| 25 |
+
continue
|
| 26 |
+
print('Adjusting unix-style #! script %s, '
|
| 27 |
+
'and adding a .bat file for it' % fn)
|
| 28 |
+
# copy it with a .py extension (skipping that first #! line)
|
| 29 |
+
with open(join(scripts_dir, fn + '-script.py'), 'wb') as fo:
|
| 30 |
+
fo.write(f.read())
|
| 31 |
+
# now create the .exe file
|
| 32 |
+
# This is hardcoded that conda and conda-build are in the same environment
|
| 33 |
+
base_env = dirname(dirname(os.environ['CONDA_EXE']))
|
| 34 |
+
exe = join(base_env, 'lib', 'site-packages', 'conda_build', 'cli-64.exe')
|
| 35 |
+
shutil.copyfile(exe, join(scripts_dir, fn + '.exe'))
|
| 36 |
+
|
| 37 |
+
# remove the original script
|
| 38 |
+
os.remove(join(scripts_dir, fn))
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
fix_staged_scripts(os.environ['SCRIPTS'])
|
docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/meta.yaml
ADDED
|
@@ -0,0 +1,371 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{% set version = "3.11.14" %}
|
| 2 |
+
{% set dev = "" %}
|
| 3 |
+
{% set dev_ = "" %}
|
| 4 |
+
{% set ver2 = '.'.join(version.split('.')[0:2]) %}
|
| 5 |
+
{% set ver2nd = ''.join(version.split('.')[0:2]) %}
|
| 6 |
+
{% set ver3nd = ''.join(version.split('.')[0:3]) %}
|
| 7 |
+
{% set build_number = "0" %}
|
| 8 |
+
{% set channel_targets = ('abc', 'def') %}
|
| 9 |
+
# this is just for the initial build, to break dependencies with python -> pip -> libpython-static
|
| 10 |
+
{% set bootstrap = "false" %}
|
| 11 |
+
|
| 12 |
+
# this makes the linter happy
|
| 13 |
+
{% set channel_targets = channel_targets or 'conda-forge main' %}
|
| 14 |
+
|
| 15 |
+
# Sanitize build system env. var tweak parameters
|
| 16 |
+
# (passed to the build scripts via script_env).
|
| 17 |
+
{% set from_source_control = os.environ.get('CONDA_BUILD_FROM_SOURCE_CONTROL', '') %}
|
| 18 |
+
{% if from_source_control == '' or from_source_control == 'no' %}
|
| 19 |
+
{% set from_source_control = 'no' %}
|
| 20 |
+
{% else %}
|
| 21 |
+
{% set from_source_control = 'yes' %}
|
| 22 |
+
{% endif %}
|
| 23 |
+
{% set linkage_nature = os.environ.get('PY_INTERP_LINKAGE_NATURE', '') %}
|
| 24 |
+
{% if linkage_nature != '' %}
|
| 25 |
+
{% set linkage_nature = "_" ~ linkage_nature %}
|
| 26 |
+
{% endif %}
|
| 27 |
+
{% if linkage_nature == 'shared' %}
|
| 28 |
+
{% set linkage_nature_env = 'shared' %}
|
| 29 |
+
{% else %}
|
| 30 |
+
{% set linkage_nature_env = 'static' %}
|
| 31 |
+
{% endif %}
|
| 32 |
+
{% set dbg_abi = "" %}
|
| 33 |
+
{% set debug = os.environ.get('PY_INTERP_DEBUG', '') %}
|
| 34 |
+
{% if debug != '' and debug != 'no' %}
|
| 35 |
+
{% set py_interp_debug = "yes" %}
|
| 36 |
+
{% set debug = "_dbg" %}
|
| 37 |
+
{% set dbg_abi = "d" %} # [win]
|
| 38 |
+
{% else %}
|
| 39 |
+
{% set py_interp_debug = "no" %}
|
| 40 |
+
{% endif %}
|
| 41 |
+
|
| 42 |
+
package:
|
| 43 |
+
name: python-split
|
| 44 |
+
version: {{ version }}{{ dev }}
|
| 45 |
+
|
| 46 |
+
source:
|
| 47 |
+
{% if from_source_control == 'yes' %}
|
| 48 |
+
- git_url: https://github.com/python/CPython.git
|
| 49 |
+
git_tag: v{{ version }}{{ dev }}
|
| 50 |
+
{% else %}
|
| 51 |
+
- url: https://www.python.org/ftp/python/{{ version }}/Python-{{ version }}{{ dev }}.tar.xz
|
| 52 |
+
# md5 from: https://www.python.org/downloads/release/python-{{ ver3nd }}/
|
| 53 |
+
sha256: 8d3ed8ec5c88c1c95f5e558612a725450d2452813ddad5e58fdb1a53b1209b78
|
| 54 |
+
{% endif %}
|
| 55 |
+
patches:
|
| 56 |
+
- patches/0001-Win32-Change-FD_SETSIZE-from-512-to-2048.patch
|
| 57 |
+
- patches/0002-Win32-distutils-Add-support-to-cygwinccompiler-for-V.patch
|
| 58 |
+
# https://github.com/python/cpython/pull/28501
|
| 59 |
+
- patches/0004-bpo-45258-search-for-isysroot-in-addition-to-sysroot.patch
|
| 60 |
+
# https://github.com/pypa/distutils/pull/54
|
| 61 |
+
- patches/0005-runtime_library_dir_option-Use-1st-word-of-CC-as-com.patch
|
| 62 |
+
- patches/0006-Win32-Do-not-download-externals.patch
|
| 63 |
+
- patches/0007-Fix-find_library-so-that-it-looks-in-sys.prefix-lib-.patch
|
| 64 |
+
# https://github.com/python/cpython/pull/28397
|
| 65 |
+
# Patch doesn't apply, but is Debian-specific anyway.
|
| 66 |
+
# - patches/0008-bpo-22699-Allow-compiling-on-debian-ubuntu-with-a-di.patch
|
| 67 |
+
- patches/0009-Disable-registry-lookup-unless-CONDA_PY_ALLOW_REG_PA.patch
|
| 68 |
+
- patches/0010-Unvendor-openssl.patch
|
| 69 |
+
- patches/0011-Unvendor-sqlite3.patch
|
| 70 |
+
# https://github.com/pypa/distutils/pull/53
|
| 71 |
+
- patches/0012-Use-ranlib-from-env-if-env-variable-is-set.patch
|
| 72 |
+
- patches/0013-Add-CondaEcosystemModifyDllSearchPath.patch
|
| 73 |
+
- patches/0014-Add-d1trimfile-SRC_DIR-to-make-pdbs-more-relocatable.patch
|
| 74 |
+
- patches/0015-Doing-d1trimfile.patch
|
| 75 |
+
# https://github.com/python/cpython/pull/23523
|
| 76 |
+
- patches/0016-cross-compile-darwin.patch
|
| 77 |
+
- patches/0017-Fix-TZPATH-on-windows.patch
|
| 78 |
+
# https://github.com/python/cpython/pull/24324
|
| 79 |
+
- patches/0018-Make-dyld-search-work-with-SYSTEM_VERSION_COMPAT-1.patch
|
| 80 |
+
# https://github.com/pypa/distutils/pull/53
|
| 81 |
+
- patches/0019-Fix-LDSHARED-when-CC-is-overriden-on-Linux-too.patch
|
| 82 |
+
- patches/0020-Unvendor-bzip2.patch
|
| 83 |
+
- patches/0021-Unvendor-libffi.patch
|
| 84 |
+
- patches/0022-Unvendor-tcltk.patch
|
| 85 |
+
- patches/0023-unvendor-xz.patch
|
| 86 |
+
- patches/0024-unvendor-zlib.patch
|
| 87 |
+
- patches/0025-Do-not-pass-g-to-GCC-when-not-Py_DEBUG.patch
|
| 88 |
+
{% if (openssl | string).startswith('1.1.1') %}
|
| 89 |
+
- patches/0026-Use-OpenSSL-1_1-instead-of-3.patch
|
| 90 |
+
{% endif %}
|
| 91 |
+
- patches/0027-Unvendor-expat.patch
|
| 92 |
+
|
| 93 |
+
build:
|
| 94 |
+
number: {{ build_number }}
|
| 95 |
+
|
| 96 |
+
requirements:
|
| 97 |
+
build:
|
| 98 |
+
{% if from_source_control == 'yes' %}
|
| 99 |
+
- git
|
| 100 |
+
{% else %}
|
| 101 |
+
- patch # [not win]
|
| 102 |
+
- m2-patch # [win]
|
| 103 |
+
- m2-gcc-libs # [win]
|
| 104 |
+
{% endif %}
|
| 105 |
+
|
| 106 |
+
outputs:
|
| 107 |
+
- name: python
|
| 108 |
+
script: build_base.sh # [unix]
|
| 109 |
+
script: build_base.bat # [win]
|
| 110 |
+
build:
|
| 111 |
+
number: {{ build_number }}
|
| 112 |
+
activate_in_script: true
|
| 113 |
+
# Windows has issues updating python if conda is using files itself.
|
| 114 |
+
# Copy rather than link.
|
| 115 |
+
no_link:
|
| 116 |
+
- DLLs/_ctypes.pyd # [win]
|
| 117 |
+
ignore_run_exports_from: # [unix]
|
| 118 |
+
# C++ only installed so CXX is defined for distutils/sysconfig.
|
| 119 |
+
- {{ compiler('cxx') }} # [unix]
|
| 120 |
+
# These two are just to get the headers needed for tk.h, but is unused
|
| 121 |
+
- xorg-libx11 # [linux]
|
| 122 |
+
- xorg-xorgproto # [linux]
|
| 123 |
+
# Disabled until verified to work correctly
|
| 124 |
+
detect_binary_files_with_prefix: true
|
| 125 |
+
# detect_binary_files_with_prefix: False
|
| 126 |
+
# binary_has_prefix_files:
|
| 127 |
+
# - lib/libpython{{ ver2 }}.*.1.0
|
| 128 |
+
# - bin/python{{ ver2 }} # [linux]
|
| 129 |
+
# - lib/libpython{{ ver2 }}.a # [linux]
|
| 130 |
+
# - lib/libpython{{ ver2 }}.nolto.a # [linux]
|
| 131 |
+
# - lib/libpython3.so # [linux]
|
| 132 |
+
# - lib/python{{ ver2 }}/lib-dynload/_hashlib.cpython-{{ ver2nd }}-x86_64-linux-gnu.so # [linux]
|
| 133 |
+
# - lib/libpython3.dylib # [osx]
|
| 134 |
+
# match python.org compiler standard
|
| 135 |
+
skip: true # [win and int(float(vc)) < 14]
|
| 136 |
+
{% if 'conda-forge' in channel_targets %}
|
| 137 |
+
skip_compile_pyc:
|
| 138 |
+
- '*.py' # [build_platform != target_platform]
|
| 139 |
+
{% endif %}
|
| 140 |
+
string: {{ dev_ }}h{{ PKG_HASH }}_{{ PKG_BUILDNUM }}{{ linkage_nature }}{{ debug }}_cpython # ["conda-forge" in (channel_targets or "")]
|
| 141 |
+
string: h{{ PKG_HASH }}_{{ PKG_BUILDNUM }}{{ linkage_nature }}{{ debug }} # ["conda-forge" not in (channel_targets or "")]
|
| 142 |
+
{% if 'conda-forge' in channel_targets %}
|
| 143 |
+
run_exports:
|
| 144 |
+
noarch:
|
| 145 |
+
- python
|
| 146 |
+
weak:
|
| 147 |
+
- python_abi {{ ver2 }}.* *_cp{{ ver2nd }}
|
| 148 |
+
{% endif %}
|
| 149 |
+
script_env:
|
| 150 |
+
- PY_INTERP_LINKAGE_NATURE={{ linkage_nature_env }}
|
| 151 |
+
- PY_INTERP_DEBUG={{ py_interp_debug }}
|
| 152 |
+
# Putting these here means they get emitted to build_env_setup.{sh,bat} meaning we can launch IDEs
|
| 153 |
+
# after sourcing or calling that script without examine the contents of conda_build.{sh,bat} for
|
| 154 |
+
# important env. vars.
|
| 155 |
+
{% if 'conda-forge' in channel_targets %}
|
| 156 |
+
- CONDA_FORGE=yes
|
| 157 |
+
{% else %}
|
| 158 |
+
- CONDA_FORGE=no
|
| 159 |
+
{% endif %}
|
| 160 |
+
missing_dso_whitelist: # [win or linux]
|
| 161 |
+
- '**/MSVCR71.dll' # [win]
|
| 162 |
+
- '**/MSVCR80.dll' # [win]
|
| 163 |
+
# I have no idea why this is not in C:\Windows\System32\downlevel
|
| 164 |
+
- '**/api-ms-win-core-path-l1-1-0.dll' # [win]
|
| 165 |
+
# -=- libs that come from the sysroot.
|
| 166 |
+
- '$RPATH/libc.so.6' # [linux]
|
| 167 |
+
- '$RPATH/libcrypt.so.1' # [linux]
|
| 168 |
+
- '$RPATH/libdl.so.2' # [linux]
|
| 169 |
+
- '$RPATH/libm.so.6' # [linux]
|
| 170 |
+
- '$RPATH/libnsl.so.1' # [linux]
|
| 171 |
+
- '$RPATH/libpthread.so.0' # [linux]
|
| 172 |
+
- '$RPATH/librt.so.1' # [linux]
|
| 173 |
+
- '$RPATH/libutil.so.1' # [linux]
|
| 174 |
+
|
| 175 |
+
requirements:
|
| 176 |
+
build:
|
| 177 |
+
- {{ compiler('c') }}
|
| 178 |
+
- {{ compiler('cxx') }}
|
| 179 |
+
- sed # [unix]
|
| 180 |
+
- make # [not win]
|
| 181 |
+
- libtool # [unix]
|
| 182 |
+
- pkg-config # [not win]
|
| 183 |
+
# configure script looks for llvm-ar for lto
|
| 184 |
+
- llvm-tools # [osx]
|
| 185 |
+
- ld_impl_{{ target_platform }} # [linux]
|
| 186 |
+
# called in build_base.sh
|
| 187 |
+
- ripgrep # [linux]
|
| 188 |
+
{% if 'conda-forge' in channel_targets %}
|
| 189 |
+
- binutils_impl_{{ target_platform }} # [linux]
|
| 190 |
+
{% endif %}
|
| 191 |
+
host:
|
| 192 |
+
- bzip2
|
| 193 |
+
- sqlite
|
| 194 |
+
- xz
|
| 195 |
+
- zlib
|
| 196 |
+
- openssl
|
| 197 |
+
- readline # [not win]
|
| 198 |
+
- tk
|
| 199 |
+
# These two are just to get the headers needed for tk.h, but is unused
|
| 200 |
+
- xorg-libx11 # [linux]
|
| 201 |
+
- xorg-xorgproto # [linux]
|
| 202 |
+
- ncurses # [unix]
|
| 203 |
+
- libffi 3.4
|
| 204 |
+
- ld_impl_{{ target_platform }} >=2.35.1 # [linux]
|
| 205 |
+
- libuuid # [linux]
|
| 206 |
+
- expat {{ expat }}
|
| 207 |
+
- libnsl {{ libnsl }} # [linux]
|
| 208 |
+
run:
|
| 209 |
+
- libffi >=3.4,<3.5
|
| 210 |
+
- ld_impl_{{ target_platform }} >=2.35.1 # [linux]
|
| 211 |
+
- tzdata
|
| 212 |
+
{% if 'conda-forge' in channel_targets %}
|
| 213 |
+
- ncurses # [unix]
|
| 214 |
+
run_constrained:
|
| 215 |
+
- python_abi {{ ver2 }}.* *_cp{{ ver2nd }}
|
| 216 |
+
{% endif %}
|
| 217 |
+
test:
|
| 218 |
+
{% if 'conda-forge' in channel_targets %}
|
| 219 |
+
downstreams:
|
| 220 |
+
- cython
|
| 221 |
+
- setuptools
|
| 222 |
+
{% endif %}
|
| 223 |
+
requires:
|
| 224 |
+
- ripgrep
|
| 225 |
+
- cmake-no-system # changed from cmake to support OpenSSL 3 bootstrap build CHANGE BACK next build!
|
| 226 |
+
- make # [unix]
|
| 227 |
+
- ninja-base # changed from ninja to support OpenSSL 3 bootstrap build CHANGE BACK!
|
| 228 |
+
- {{ compiler('c') }}
|
| 229 |
+
# Tried to use enable_language(C) to avoid needing this. It does not work.
|
| 230 |
+
- {{ compiler('cxx') }}
|
| 231 |
+
files:
|
| 232 |
+
- tests/distutils/*
|
| 233 |
+
- tests/cmake/*
|
| 234 |
+
- tests/cython/*
|
| 235 |
+
- tests/prefix-replacement/*
|
| 236 |
+
- run_test.py
|
| 237 |
+
commands:
|
| 238 |
+
- echo on # [win]
|
| 239 |
+
- set # [win]
|
| 240 |
+
- python -V
|
| 241 |
+
- python3 -V # [not win]
|
| 242 |
+
- 2to3 -h
|
| 243 |
+
- pydoc -h
|
| 244 |
+
- python3-config --help # [not win]
|
| 245 |
+
- set "PIP_NO_BUILD_ISOLATION=False" # [win]
|
| 246 |
+
- set "PIP_NO_DEPENDENCIES=True" # [win]
|
| 247 |
+
- set "PIP_IGNORE_INSTALLED=True" # [win]
|
| 248 |
+
- set "PIP_NO_INDEX=True" # [win]
|
| 249 |
+
- set "PIP_CACHE_DIR=%CONDA_PREFIX%/pip_cache" # [win]
|
| 250 |
+
- set "TEMP=%CONDA_PREFIX%/tmp" # [win]
|
| 251 |
+
- mkdir "%TEMP%" # [win]
|
| 252 |
+
- python -Im ensurepip --upgrade --default-pip # [win]
|
| 253 |
+
# tzdata/zoneinfo test that will need the tzdata package to pass
|
| 254 |
+
- python -c "from zoneinfo import ZoneInfo; from datetime import datetime; dt = datetime(2020, 10, 31, 12, tzinfo=ZoneInfo('America/Los_Angeles')); print(dt.tzname())"
|
| 255 |
+
- python -m venv test-venv
|
| 256 |
+
- test-venv\\Scripts\\python.exe -c "import ctypes" # [win]
|
| 257 |
+
- test-venv/bin/python -c "import ctypes" # [unix]
|
| 258 |
+
- python -c "import sysconfig; print(sysconfig.get_config_var('CC'))" # [not win]
|
| 259 |
+
- _CONDA_PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata_x86_64_conda_cos6_linux_gnu python -c "import sysconfig; print(sysconfig.get_config_var('CC'))" # [linux64]
|
| 260 |
+
# check for unreplaced @ symbols in sysconfig files
|
| 261 |
+
- for f in ${CONDA_PREFIX}/lib/python*/_sysconfig*.py; do echo "Checking $f:"; if [[ `rg @ $f` ]]; then echo "FAILED ON $f"; cat $f; exit 1; fi; done # [linux64 or osx]
|
| 262 |
+
- test ! -f ${PREFIX}/lib/libpython${PKG_VERSION%.*}.a # [unix]
|
| 263 |
+
- test ! -f ${PREFIX}/lib/libpython${PKG_VERSION%.*}.nolto.a # [unix]
|
| 264 |
+
# https://github.com/conda-forge/python-feedstock/issues/384
|
| 265 |
+
- if exist %PREFIX%\\Scripts\\pydoc exit 1 # [win]
|
| 266 |
+
- if exist %PREFIX%\\Scripts\\idle exit 1 # [win]
|
| 267 |
+
- if exist %PREFIX%\\Scripts\\2to3 exit 1 # [win]
|
| 268 |
+
- if not exist %PREFIX%\\Scripts\\pydoc-script.py exit 1 # [win]
|
| 269 |
+
- if not exist %PREFIX%\\Scripts\\idle-script.py exit 1 # [win]
|
| 270 |
+
- if not exist %PREFIX%\\Scripts\\2to3-script.py exit 1 # [win]
|
| 271 |
+
- if not exist %PREFIX%\\Scripts\\idle.exe exit 1 # [win]
|
| 272 |
+
- if not exist %PREFIX%\\Scripts\\2to3.exe exit 1 # [win]
|
| 273 |
+
- if not exist %PREFIX%\\Scripts\\pydoc.exe exit 1 # [win]
|
| 274 |
+
- if not exist %PREFIX%\\libs\\python{{ ver2nd }}.lib exit 1 # [win]
|
| 275 |
+
- pushd tests
|
| 276 |
+
- pushd distutils
|
| 277 |
+
- python setup.py install -v -v
|
| 278 |
+
- python -c "import foobar"
|
| 279 |
+
- popd
|
| 280 |
+
- pushd prefix-replacement # [unix]
|
| 281 |
+
- bash build-and-test.sh # [unix]
|
| 282 |
+
- popd # [unix]
|
| 283 |
+
- pushd cmake
|
| 284 |
+
- cmake -GNinja -DPY_VER={{ version }}
|
| 285 |
+
# --trace --debug-output --debug-trycompile .
|
| 286 |
+
- popd
|
| 287 |
+
- popd
|
| 288 |
+
- python run_test.py
|
| 289 |
+
- test ! -f default.profraw # [osx]
|
| 290 |
+
# Test workaround for https://github.com/conda/conda/issues/10969
|
| 291 |
+
- test -d "$PREFIX/lib/python3.1/site-packages" # [unix]
|
| 292 |
+
- python3.1 --version # [unix]
|
| 293 |
+
# Test for segfault on osx-64 with libffi=3.4, see https://bugs.python.org/issue44556
|
| 294 |
+
- python -c "from ctypes import CFUNCTYPE; CFUNCTYPE(None)(id)"
|
| 295 |
+
|
| 296 |
+
{% if bootstrap != "true" %}
|
| 297 |
+
- name: libpython-static
|
| 298 |
+
script: build_static.sh # [unix]
|
| 299 |
+
script: build_static.bat # [win]
|
| 300 |
+
build:
|
| 301 |
+
number: {{ build_number }}
|
| 302 |
+
activate_in_script: true
|
| 303 |
+
{% if 'conda-forge' in channel_targets %}
|
| 304 |
+
ignore_run_exports:
|
| 305 |
+
- python_abi
|
| 306 |
+
string: h{{ PKG_HASH }}_{{ PKG_BUILDNUM }}{{ linkage_nature }}{{ debug }}_cpython
|
| 307 |
+
{% else %}
|
| 308 |
+
string: h{{ PKG_HASH }}_{{ PKG_BUILDNUM }}{{ linkage_nature }}{{ debug }}
|
| 309 |
+
{% endif %}
|
| 310 |
+
requirements:
|
| 311 |
+
build:
|
| 312 |
+
- {{ compiler('c') }}
|
| 313 |
+
- {{ compiler('cxx') }}
|
| 314 |
+
{% if from_source_control == 'yes' %}
|
| 315 |
+
- git
|
| 316 |
+
{% endif %}
|
| 317 |
+
host:
|
| 318 |
+
- {{ pin_subpackage('python', exact=True) }}
|
| 319 |
+
run:
|
| 320 |
+
- {{ pin_subpackage('python', exact=True) }}
|
| 321 |
+
test:
|
| 322 |
+
files:
|
| 323 |
+
- tests/prefix-replacement/*
|
| 324 |
+
requires:
|
| 325 |
+
- {{ compiler('c') }}
|
| 326 |
+
# Tried to use enable_language(C) to avoid needing this. It does not work.
|
| 327 |
+
- {{ compiler('cxx') }}
|
| 328 |
+
- ripgrep
|
| 329 |
+
|
| 330 |
+
commands:
|
| 331 |
+
- pushd tests # [unix]
|
| 332 |
+
- pushd prefix-replacement # [unix]
|
| 333 |
+
- test -f ${PREFIX}/lib/libpython${PKG_VERSION%.*}.a # [unix]
|
| 334 |
+
- test -f ${PREFIX}/lib/libpython${PKG_VERSION%.*}.nolto.a # [unix]
|
| 335 |
+
- test -f ${PREFIX}/lib/python${PKG_VERSION%.*}/config-${PKG_VERSION%.*}-darwin/libpython${PKG_VERSION%.*}.a # [osx]
|
| 336 |
+
- bash build-and-test.sh # [unix]
|
| 337 |
+
- popd # [unix]
|
| 338 |
+
- popd # [unix]
|
| 339 |
+
{% endif %}
|
| 340 |
+
|
| 341 |
+
about:
|
| 342 |
+
home: https://www.python.org/
|
| 343 |
+
license: PSF-2.0
|
| 344 |
+
license_family: PSF
|
| 345 |
+
license_url: https://docs.python.org/3/license.html
|
| 346 |
+
license_file: LICENSE
|
| 347 |
+
license_url: https://spdx.org/licenses/PSF-2.0.html
|
| 348 |
+
summary: General purpose programming language
|
| 349 |
+
description: |
|
| 350 |
+
Python is a widely used high-level, general-purpose, interpreted, dynamic
|
| 351 |
+
programming language. Its design philosophy emphasizes code
|
| 352 |
+
readability, and its syntax allows programmers to express concepts in
|
| 353 |
+
fewer lines of code than would be possible in languages such as C++ or
|
| 354 |
+
Java. The language provides constructs intended to enable clear programs
|
| 355 |
+
on both a small and large scale.
|
| 356 |
+
doc_url: https://www.python.org/doc/versions/
|
| 357 |
+
dev_url: https://devguide.python.org/
|
| 358 |
+
|
| 359 |
+
extra:
|
| 360 |
+
feedstock-name: python
|
| 361 |
+
recipe-maintainers:
|
| 362 |
+
- isuruf
|
| 363 |
+
- jakirkham
|
| 364 |
+
- mbargull
|
| 365 |
+
- mingwandroid
|
| 366 |
+
- msarahan
|
| 367 |
+
- pelson
|
| 368 |
+
- ocefpaf
|
| 369 |
+
- scopatz
|
| 370 |
+
- katietz
|
| 371 |
+
- xhochy
|
docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/meta.yaml.orig
ADDED
|
@@ -0,0 +1,327 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{% set version = "3.10.0" %}
|
| 2 |
+
{% set dev = "rc2" %}
|
| 3 |
+
{% set dev_ = "" %}
|
| 4 |
+
{% set ver2 = '.'.join(version.split('.')[0:2]) %}
|
| 5 |
+
{% set ver2nd = ''.join(version.split('.')[0:2]) %}
|
| 6 |
+
{% set ver3nd = ''.join(version.split('.')[0:3]) %}
|
| 7 |
+
{% set build_number = 0 %}
|
| 8 |
+
{% set channel_targets = ('abc', 'def') %}
|
| 9 |
+
|
| 10 |
+
# this makes the linter happy
|
| 11 |
+
{% set channel_targets = channel_targets or 'conda-forge main' %}
|
| 12 |
+
|
| 13 |
+
# Sanitize build system env. var tweak parameters
|
| 14 |
+
# (passed to the build scripts via script_env).
|
| 15 |
+
{% set from_source_control = os.environ.get('CONDA_BUILD_FROM_SOURCE_CONTROL', '') %}
|
| 16 |
+
{% if from_source_control == '' or from_source_control == 'no' %}
|
| 17 |
+
{% set from_source_control = 'no' %}
|
| 18 |
+
{% else %}
|
| 19 |
+
{% set from_source_control = 'yes' %}
|
| 20 |
+
{% endif %}
|
| 21 |
+
{% set linkage_nature = os.environ.get('PY_INTERP_LINKAGE_NATURE', '') %}
|
| 22 |
+
{% if linkage_nature != '' %}
|
| 23 |
+
{% set linkage_nature = "_" ~ linkage_nature %}
|
| 24 |
+
{% endif %}
|
| 25 |
+
{% if linkage_nature == 'shared' %}
|
| 26 |
+
{% set linkage_nature_env = 'shared' %}
|
| 27 |
+
{% else %}
|
| 28 |
+
{% set linkage_nature_env = 'static' %}
|
| 29 |
+
{% endif %}
|
| 30 |
+
{% set dbg_abi = "" %}
|
| 31 |
+
{% set debug = os.environ.get('PY_INTERP_DEBUG', '') %}
|
| 32 |
+
{% if debug != '' and debug != 'no' %}
|
| 33 |
+
{% set py_interp_debug = "yes" %}
|
| 34 |
+
{% set debug = "_dbg" %}
|
| 35 |
+
{% set dbg_abi = "d" %} # [win]
|
| 36 |
+
{% else %}
|
| 37 |
+
{% set py_interp_debug = "no" %}
|
| 38 |
+
{% endif %}
|
| 39 |
+
|
| 40 |
+
package:
|
| 41 |
+
name: python-split
|
| 42 |
+
version: {{ version }}{{ dev }}
|
| 43 |
+
|
| 44 |
+
source:
|
| 45 |
+
{% if from_source_control == 'yes' %}
|
| 46 |
+
- git_url: https://github.com/python/CPython.git
|
| 47 |
+
git_tag: v{{ version }}{{ dev }}
|
| 48 |
+
{% else %}
|
| 49 |
+
- url: https://www.python.org/ftp/python/{{ version }}/Python-{{ version }}{{ dev }}.tar.xz
|
| 50 |
+
# md5 from: https://www.python.org/downloads/release/python-{{ ver3nd }}/
|
| 51 |
+
md5: d3bfe8004516dd5b2afc649ff94be965
|
| 52 |
+
{% endif %}
|
| 53 |
+
patches:
|
| 54 |
+
- patches/0001-Win32-Change-FD_SETSIZE-from-512-to-2048.patch
|
| 55 |
+
- patches/0002-Win32-distutils-Add-support-to-cygwinccompiler-for-V.patch
|
| 56 |
+
- patches/0003-Support-cross-compiling-byte-code.patch
|
| 57 |
+
# https://github.com/python/cpython/pull/28501
|
| 58 |
+
- patches/0004-bpo-45258-search-for-isysroot-in-addition-to-sysroot.patch
|
| 59 |
+
# https://github.com/pypa/distutils/pull/54
|
| 60 |
+
- patches/0005-runtime_library_dir_option-Use-1st-word-of-CC-as-com.patch
|
| 61 |
+
- patches/0006-Win32-Do-not-download-externals.patch
|
| 62 |
+
- patches/0007-Fix-find_library-so-that-it-looks-in-sys.prefix-lib-.patch
|
| 63 |
+
# https://github.com/python/cpython/pull/28397
|
| 64 |
+
- patches/0008-bpo-22699-Allow-compiling-on-debian-ubuntu-with-a-di.patch
|
| 65 |
+
- patches/0009-Disable-registry-lookup-unless-CONDA_PY_ALLOW_REG_PA.patch
|
| 66 |
+
- patches/0010-Unvendor-openssl.patch
|
| 67 |
+
- patches/0011-Unvendor-sqlite3.patch
|
| 68 |
+
- patches/0012-venv-Revert-a-change-from-https-github.com-python-cp.patch
|
| 69 |
+
- patches/0013-Win-Add-back-the-DLLSuffix-used-to-find-the-openssl-.patch
|
| 70 |
+
# https://github.com/pypa/distutils/pull/53
|
| 71 |
+
- patches/0014-Use-ranlib-from-env-if-env-variable-is-set.patch
|
| 72 |
+
- patches/0015-Add-CondaEcosystemModifyDllSearchPath.patch
|
| 73 |
+
- patches/0016-Add-d1trimfile-SRC_DIR-to-make-pdbs-more-relocatable.patch
|
| 74 |
+
- patches/0017-Doing-d1trimfile.patch
|
| 75 |
+
# https://github.com/python/cpython/pull/23523
|
| 76 |
+
- patches/0018-cross-compile-darwin.patch
|
| 77 |
+
- patches/0019-Fix-TZPATH-on-windows.patch
|
| 78 |
+
# https://github.com/python/cpython/pull/24324
|
| 79 |
+
- patches/0020-Make-dyld-search-work-with-SYSTEM_VERSION_COMPAT-1.patch
|
| 80 |
+
# https://github.com/pypa/distutils/pull/53
|
| 81 |
+
- patches/0021-Fix-LDSHARED-when-CC-is-overriden-on-Linux-too.patch
|
| 82 |
+
- patches/0022-Unvendor-bzip2.patch
|
| 83 |
+
- patches/0023-Unvendor-libffi.patch
|
| 84 |
+
- patches/0024-Unvendor-tcltk.patch
|
| 85 |
+
- patches/0025-unvendor-xz.patch
|
| 86 |
+
- patches/0026-unvendor-zlib.patch
|
| 87 |
+
|
| 88 |
+
build:
|
| 89 |
+
number: {{ build_number }}
|
| 90 |
+
|
| 91 |
+
requirements:
|
| 92 |
+
build:
|
| 93 |
+
{% if from_source_control == 'yes' %}
|
| 94 |
+
- git
|
| 95 |
+
{% else %}
|
| 96 |
+
- patch # [not win]
|
| 97 |
+
- m2-patch # [win]
|
| 98 |
+
- m2-gcc-libs # [win]
|
| 99 |
+
{% endif %}
|
| 100 |
+
|
| 101 |
+
outputs:
|
| 102 |
+
- name: python
|
| 103 |
+
script: build_base.sh # [unix]
|
| 104 |
+
script: build_base.bat # [win]
|
| 105 |
+
build:
|
| 106 |
+
number: {{ build_number }}
|
| 107 |
+
activate_in_script: true
|
| 108 |
+
# Windows has issues updating python if conda is using files itself.
|
| 109 |
+
# Copy rather than link.
|
| 110 |
+
no_link:
|
| 111 |
+
- DLLs/_ctypes.pyd # [win]
|
| 112 |
+
ignore_run_exports_from: # [unix]
|
| 113 |
+
# C++ only installed so CXX is defined for distutils/sysconfig.
|
| 114 |
+
- {{ compiler('cxx') }} # [unix]
|
| 115 |
+
# Disabled until verified to work correctly
|
| 116 |
+
detect_binary_files_with_prefix: true
|
| 117 |
+
# detect_binary_files_with_prefix: False
|
| 118 |
+
# binary_has_prefix_files:
|
| 119 |
+
# - lib/libpython{{ ver2 }}.*.1.0
|
| 120 |
+
# - bin/python{{ ver2 }} # [linux]
|
| 121 |
+
# - lib/libpython{{ ver2 }}.a # [linux]
|
| 122 |
+
# - lib/libpython{{ ver2 }}.nolto.a # [linux]
|
| 123 |
+
# - lib/libpython3.so # [linux]
|
| 124 |
+
# - lib/python{{ ver2 }}/lib-dynload/_hashlib.cpython-{{ ver2nd }}-x86_64-linux-gnu.so # [linux]
|
| 125 |
+
# - lib/libpython3.dylib # [osx]
|
| 126 |
+
# match python.org compiler standard
|
| 127 |
+
skip: true # [win and int(float(vc)) < 14]
|
| 128 |
+
skip_compile_pyc:
|
| 129 |
+
- '*.py' # [build_platform != target_platform]
|
| 130 |
+
string: {{ dev_ }}h{{ PKG_HASH }}_{{ PKG_BUILDNUM }}{{ linkage_nature }}{{ debug }}_cpython # ["conda-forge" in (channel_targets or "")]
|
| 131 |
+
string: h{{ PKG_HASH }}_{{ PKG_BUILDNUM }}{{ linkage_nature }}{{ debug }} # ["conda-forge" not in (channel_targets or "")]
|
| 132 |
+
{% if 'conda-forge' in channel_targets %}
|
| 133 |
+
run_exports:
|
| 134 |
+
noarch:
|
| 135 |
+
- python
|
| 136 |
+
weak:
|
| 137 |
+
- python_abi {{ ver2 }}.* *_cp{{ ver2nd }}
|
| 138 |
+
{% endif %}
|
| 139 |
+
script_env:
|
| 140 |
+
- PY_INTERP_LINKAGE_NATURE={{ linkage_nature_env }}
|
| 141 |
+
- PY_INTERP_DEBUG={{ py_interp_debug }}
|
| 142 |
+
# Putting these here means they get emitted to build_env_setup.{sh,bat} meaning we can launch IDEs
|
| 143 |
+
# after sourcing or calling that script without examine the contents of conda_build.{sh,bat} for
|
| 144 |
+
# important env. vars.
|
| 145 |
+
- OPENSSL_DIR=%PREFIX%\Library # [win]
|
| 146 |
+
- SQLITE3_DIR=%PREFIX%\Library # [win]
|
| 147 |
+
{% if 'conda-forge' in channel_targets %}
|
| 148 |
+
- CONDA_FORGE=yes
|
| 149 |
+
{% else %}
|
| 150 |
+
- CONDA_FORGE=no
|
| 151 |
+
{% endif %}
|
| 152 |
+
missing_dso_whitelist: # [win or linux64]
|
| 153 |
+
- '**/MSVCR71.dll' # [win]
|
| 154 |
+
- '**/MSVCR80.dll' # [win]
|
| 155 |
+
# I have no idea why this is not in C:\Windows\System32\downlevel
|
| 156 |
+
- '**/api-ms-win-core-path-l1-1-0.dll' # [win]
|
| 157 |
+
# -=- libs that come from the sysroot.
|
| 158 |
+
- '$RPATH/libc.so.6' # [linux64]
|
| 159 |
+
- '$RPATH/libcrypt.so.1' # [linux64]
|
| 160 |
+
- '$RPATH/libdl.so.2' # [linux64]
|
| 161 |
+
- '$RPATH/libm.so.6' # [linux64]
|
| 162 |
+
- '$RPATH/libnsl.so.1' # [linux64]
|
| 163 |
+
- '$RPATH/libpthread.so.0' # [linux64]
|
| 164 |
+
- '$RPATH/librt.so.1' # [linux64]
|
| 165 |
+
- '$RPATH/libutil.so.1' # [linux64]
|
| 166 |
+
|
| 167 |
+
requirements:
|
| 168 |
+
build:
|
| 169 |
+
- {{ compiler('c') }}
|
| 170 |
+
- {{ compiler('cxx') }}
|
| 171 |
+
- sed # [unix]
|
| 172 |
+
- {{ cdt('xorg-x11-proto-devel') }} # [linux]
|
| 173 |
+
- {{ cdt('libx11-devel') }} # [linux]
|
| 174 |
+
- make # [not win]
|
| 175 |
+
- libtool # [unix]
|
| 176 |
+
- pkg-config # [not win]
|
| 177 |
+
# configure script looks for llvm-ar for lto
|
| 178 |
+
- llvm-tools # [osx]
|
| 179 |
+
- ld_impl_{{ target_platform }} # [linux]
|
| 180 |
+
{% if 'conda-forge' in channel_targets %}
|
| 181 |
+
- binutils_impl_{{ target_platform }} # [linux]
|
| 182 |
+
{% endif %}
|
| 183 |
+
host:
|
| 184 |
+
- bzip2
|
| 185 |
+
- sqlite
|
| 186 |
+
- xz
|
| 187 |
+
- zlib
|
| 188 |
+
- openssl
|
| 189 |
+
- readline # [not win]
|
| 190 |
+
- tk
|
| 191 |
+
- ncurses # [unix]
|
| 192 |
+
- libffi
|
| 193 |
+
- ld_impl_{{ target_platform }} # [linux]
|
| 194 |
+
- libuuid # [linux]
|
| 195 |
+
run:
|
| 196 |
+
- ld_impl_{{ target_platform }} # [linux]
|
| 197 |
+
- tzdata
|
| 198 |
+
{% if 'conda-forge' in channel_targets %}
|
| 199 |
+
- ncurses # [unix]
|
| 200 |
+
run_constrained:
|
| 201 |
+
- python_abi {{ ver2 }}.* *_cp{{ ver2nd }}
|
| 202 |
+
{% endif %}
|
| 203 |
+
test:
|
| 204 |
+
{% if 'conda-forge' in channel_targets %}
|
| 205 |
+
downstreams:
|
| 206 |
+
- cython
|
| 207 |
+
- setuptools
|
| 208 |
+
{% endif %}
|
| 209 |
+
requires:
|
| 210 |
+
- ripgrep
|
| 211 |
+
- cmake # [not (linux and ppc64le)]
|
| 212 |
+
- make # [unix]
|
| 213 |
+
- ninja
|
| 214 |
+
- {{ compiler('c') }}
|
| 215 |
+
# Tried to use enable_language(C) to avoid needing this. It does not work.
|
| 216 |
+
- {{ compiler('cxx') }}
|
| 217 |
+
files:
|
| 218 |
+
- tests/distutils/*
|
| 219 |
+
- tests/cmake/*
|
| 220 |
+
- tests/cython/*
|
| 221 |
+
- tests/prefix-replacement/*
|
| 222 |
+
- run_test.py
|
| 223 |
+
commands:
|
| 224 |
+
- echo on # [win]
|
| 225 |
+
- set # [win]
|
| 226 |
+
- python -V
|
| 227 |
+
- python3 -V # [not win]
|
| 228 |
+
- 2to3 -h
|
| 229 |
+
- pydoc -h
|
| 230 |
+
- python3-config --help # [not win]
|
| 231 |
+
- set "PIP_NO_BUILD_ISOLATION=False" # [win]
|
| 232 |
+
- set "PIP_NO_DEPENDENCIES=True" # [win]
|
| 233 |
+
- set "PIP_IGNORE_INSTALLED=True" # [win]
|
| 234 |
+
- set "PIP_NO_INDEX=True" # [win]
|
| 235 |
+
- set "PIP_CACHE_DIR=%CONDA_PREFIX%/pip_cache" # [win]
|
| 236 |
+
- set "TEMP=%CONDA_PREFIX%/tmp" # [win]
|
| 237 |
+
- mkdir "%TEMP%" # [win]
|
| 238 |
+
- python -Im ensurepip --upgrade --default-pip # [win]
|
| 239 |
+
# tzdata/zoneinfo test that will need the tzdata package to pass
|
| 240 |
+
- python -c "from zoneinfo import ZoneInfo; from datetime import datetime; dt = datetime(2020, 10, 31, 12, tzinfo=ZoneInfo('America/Los_Angeles')); print(dt.tzname())"
|
| 241 |
+
- python -m venv test-venv
|
| 242 |
+
- python -c "import sysconfig; print(sysconfig.get_config_var('CC'))" # [not win]
|
| 243 |
+
- _CONDA_PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata_x86_64_conda_cos6_linux_gnu python -c "import sysconfig; print(sysconfig.get_config_var('CC'))" # [linux64]
|
| 244 |
+
# check for unreplaced @ symbols in sysconfig files
|
| 245 |
+
- for f in ${CONDA_PREFIX}/lib/python*/_sysconfig*.py; do echo "Checking $f:"; if [[ `rg @ $f` ]]; then echo "FAILED ON $f"; cat $f; exit 1; fi; done # [linux64 or osx]
|
| 246 |
+
- test ! -f ${PREFIX}/lib/libpython${PKG_VERSION%.*}.a # [unix]
|
| 247 |
+
- test ! -f ${PREFIX}/lib/libpython${PKG_VERSION%.*}.nolto.a # [unix]
|
| 248 |
+
# https://github.com/conda-forge/python-feedstock/issues/384
|
| 249 |
+
- if exist %PREFIX%\\Scripts\\pydoc exit 1 # [win]
|
| 250 |
+
- if exist %PREFIX%\\Scripts\\idle exit 1 # [win]
|
| 251 |
+
- if exist %PREFIX%\\Scripts\\2to3 exit 1 # [win]
|
| 252 |
+
- if not exist %PREFIX%\\Scripts\\pydoc-script.py exit 1 # [win]
|
| 253 |
+
- if not exist %PREFIX%\\Scripts\\idle-script.py exit 1 # [win]
|
| 254 |
+
- if not exist %PREFIX%\\Scripts\\2to3-script.py exit 1 # [win]
|
| 255 |
+
- if not exist %PREFIX%\\Scripts\\idle.exe exit 1 # [win]
|
| 256 |
+
- if not exist %PREFIX%\\Scripts\\2to3.exe exit 1 # [win]
|
| 257 |
+
- if not exist %PREFIX%\\Scripts\\pydoc.exe exit 1 # [win]
|
| 258 |
+
- pushd tests
|
| 259 |
+
- pushd distutils
|
| 260 |
+
- python setup.py install -v -v
|
| 261 |
+
- python -c "import foobar"
|
| 262 |
+
- popd
|
| 263 |
+
- pushd prefix-replacement # [unix]
|
| 264 |
+
- bash build-and-test.sh # [unix]
|
| 265 |
+
- popd # [unix]
|
| 266 |
+
- pushd cmake
|
| 267 |
+
- cmake -GNinja -DPY_VER={{ version }}
|
| 268 |
+
# --trace --debug-output --debug-trycompile .
|
| 269 |
+
- popd
|
| 270 |
+
- popd
|
| 271 |
+
- python run_test.py
|
| 272 |
+
- test ! -f default.profraw # [osx]
|
| 273 |
+
|
| 274 |
+
- name: libpython-static
|
| 275 |
+
script: build_static.sh # [unix]
|
| 276 |
+
script: build_static.bat # [win]
|
| 277 |
+
build:
|
| 278 |
+
number: {{ build_number }}
|
| 279 |
+
activate_in_script: true
|
| 280 |
+
ignore_run_exports:
|
| 281 |
+
- python_abi
|
| 282 |
+
string: h{{ PKG_HASH }}_{{ PKG_BUILDNUM }}{{ linkage_nature }}{{ debug }}_cpython # ["conda-forge" in (channel_targets or "")]
|
| 283 |
+
string: h{{ PKG_HASH }}_{{ PKG_BUILDNUM }}{{ linkage_nature }}{{ debug }} # ["conda-forge" not in (channel_targets or "")]
|
| 284 |
+
requirements:
|
| 285 |
+
build:
|
| 286 |
+
- {{ compiler('c') }}
|
| 287 |
+
- {{ compiler('cxx') }}
|
| 288 |
+
{% if from_source_control == 'yes' %}
|
| 289 |
+
- git
|
| 290 |
+
{% endif %}
|
| 291 |
+
host:
|
| 292 |
+
- {{ pin_subpackage('python', exact=True) }}
|
| 293 |
+
run:
|
| 294 |
+
- {{ pin_subpackage('python', exact=True) }}
|
| 295 |
+
test:
|
| 296 |
+
commands:
|
| 297 |
+
- test -f ${PREFIX}/lib/libpython${PKG_VERSION%.*}.a # [unix]
|
| 298 |
+
- test -f ${PREFIX}/lib/libpython${PKG_VERSION%.*}.nolto.a # [unix]
|
| 299 |
+
- test -f ${PREFIX}/lib/python${PKG_VERSION%.*}/config-${PKG_VERSION%.*}-darwin/libpython${PKG_VERSION%.*}.a # [osx]
|
| 300 |
+
|
| 301 |
+
about:
|
| 302 |
+
home: https://www.python.org/
|
| 303 |
+
license: Python-2.0
|
| 304 |
+
license_file: LICENSE
|
| 305 |
+
summary: General purpose programming language
|
| 306 |
+
description: |
|
| 307 |
+
Python is a widely used high-level, general-purpose, interpreted, dynamic
|
| 308 |
+
programming language. Its design philosophy emphasizes code
|
| 309 |
+
readability, and its syntax allows programmers to express concepts in
|
| 310 |
+
fewer lines of code than would be possible in languages such as C++ or
|
| 311 |
+
Java. The language provides constructs intended to enable clear programs
|
| 312 |
+
on both a small and large scale.
|
| 313 |
+
doc_url: https://www.python.org/doc/versions/
|
| 314 |
+
doc_source_url: https://github.com/python/pythondotorg/blob/master/docs/source/index.rst
|
| 315 |
+
dev_url: https://docs.python.org/devguide/
|
| 316 |
+
|
| 317 |
+
extra:
|
| 318 |
+
feedstock-name: python
|
| 319 |
+
recipe-maintainers:
|
| 320 |
+
- isuruf
|
| 321 |
+
- jakirkham
|
| 322 |
+
- mbargull
|
| 323 |
+
- mingwandroid
|
| 324 |
+
- msarahan
|
| 325 |
+
- pelson
|
| 326 |
+
- ocefpaf
|
| 327 |
+
- scopatz
|
docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/meta.yaml.rej
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
***************
|
| 2 |
+
*** 192,198 ****
|
| 3 |
+
- ncurses # [unix]
|
| 4 |
+
- libffi
|
| 5 |
+
- ld_impl_{{ target_platform }} >=2.36.1 # [linux]
|
| 6 |
+
- - libuuid # [unix]
|
| 7 |
+
run:
|
| 8 |
+
- ld_impl_{{ target_platform }} >=2.36.1 # [linux]
|
| 9 |
+
- tzdata
|
| 10 |
+
--- 191,197 ----
|
| 11 |
+
- ncurses # [unix]
|
| 12 |
+
- libffi
|
| 13 |
+
- ld_impl_{{ target_platform }} >=2.36.1 # [linux]
|
| 14 |
+
+ - libuuid # [linux]
|
| 15 |
+
run:
|
| 16 |
+
- ld_impl_{{ target_platform }} >=2.36.1 # [linux]
|
| 17 |
+
- tzdata
|
docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/patches/0001-Win32-Change-FD_SETSIZE-from-512-to-2048.patch
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
From eea5d6141bd04ecee4c69e1c824832eaaaa868e7 Mon Sep 17 00:00:00 2001
|
| 2 |
+
From: Ray Donnelly <mingw.android@gmail.com>
|
| 3 |
+
Date: Wed, 16 Aug 2017 11:53:55 +0100
|
| 4 |
+
Subject: [PATCH 01/25] Win32: Change FD_SETSIZE from 512 to 2048
|
| 5 |
+
|
| 6 |
+
https://github.com/ContinuumIO/anaconda-issues/issues/1241
|
| 7 |
+
---
|
| 8 |
+
Modules/selectmodule.c | 2 +-
|
| 9 |
+
1 file changed, 1 insertion(+), 1 deletion(-)
|
| 10 |
+
|
| 11 |
+
diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c
|
| 12 |
+
index 4eea928a26..e3c5d82722 100644
|
| 13 |
+
--- a/Modules/selectmodule.c
|
| 14 |
+
+++ b/Modules/selectmodule.c
|
| 15 |
+
@@ -38,7 +38,7 @@
|
| 16 |
+
FD_SETSIZE higher before this; e.g., via compiler /D switch.
|
| 17 |
+
*/
|
| 18 |
+
#if defined(MS_WINDOWS) && !defined(FD_SETSIZE)
|
| 19 |
+
-#define FD_SETSIZE 512
|
| 20 |
+
+#define FD_SETSIZE 2048
|
| 21 |
+
#endif
|
| 22 |
+
|
| 23 |
+
#if defined(HAVE_POLL_H)
|
| 24 |
+
--
|
| 25 |
+
2.32.1 (Apple Git-133)
|
| 26 |
+
|
docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/patches/0002-Win32-distutils-Add-support-to-cygwinccompiler-for-V.patch
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
From d8bf2f38eaca64e43db278f35a108a911705df5a Mon Sep 17 00:00:00 2001
|
| 2 |
+
From: Ray Donnelly <mingw.android@gmail.com>
|
| 3 |
+
Date: Wed, 16 Aug 2017 11:59:00 +0100
|
| 4 |
+
Subject: [PATCH 02/25] Win32: distutils: Add support to cygwinccompiler for
|
| 5 |
+
VS>=2015
|
| 6 |
+
|
| 7 |
+
Really this is for mingw-w64 though
|
| 8 |
+
---
|
| 9 |
+
Lib/distutils/cygwinccompiler.py | 3 +++
|
| 10 |
+
1 file changed, 3 insertions(+)
|
| 11 |
+
|
| 12 |
+
diff --git a/Lib/distutils/cygwinccompiler.py b/Lib/distutils/cygwinccompiler.py
|
| 13 |
+
index 66c12dd358..e6c790118b 100644
|
| 14 |
+
--- a/Lib/distutils/cygwinccompiler.py
|
| 15 |
+
+++ b/Lib/distutils/cygwinccompiler.py
|
| 16 |
+
@@ -80,6 +80,9 @@ def get_msvcr():
|
| 17 |
+
elif msc_ver == '1600':
|
| 18 |
+
# VS2010 / MSVC 10.0
|
| 19 |
+
return ['msvcr100']
|
| 20 |
+
+ elif int(msc_ver) >= 1900:
|
| 21 |
+
+ # VS2015 / MSVC 14.0
|
| 22 |
+
+ return ['msvcr140']
|
| 23 |
+
else:
|
| 24 |
+
raise ValueError("Unknown MS Compiler version %s " % msc_ver)
|
| 25 |
+
|
| 26 |
+
--
|
| 27 |
+
2.32.1 (Apple Git-133)
|
| 28 |
+
|
docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/patches/0004-bpo-45258-search-for-isysroot-in-addition-to-sysroot.patch
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
From ee8295653f5fe6b1bb8556e8e8fa33b73c2f633b Mon Sep 17 00:00:00 2001
|
| 2 |
+
From: Isuru Fernando <isuruf@gmail.com>
|
| 3 |
+
Date: Tue, 21 Sep 2021 13:05:20 -0500
|
| 4 |
+
Subject: [PATCH 03/25] bpo-45258: search for -isysroot in addition to
|
| 5 |
+
--sysroot
|
| 6 |
+
|
| 7 |
+
-isysroot is for macOS, while --sysroot is for gcc/linux
|
| 8 |
+
---
|
| 9 |
+
setup.py | 2 +-
|
| 10 |
+
1 file changed, 1 insertion(+), 1 deletion(-)
|
| 11 |
+
|
| 12 |
+
diff --git a/setup.py b/setup.py
|
| 13 |
+
index 15d0d4576a..a15a7a46e0 100644
|
| 14 |
+
--- a/setup.py
|
| 15 |
+
+++ b/setup.py
|
| 16 |
+
@@ -166,7 +166,7 @@ def sysroot_paths(make_vars, subdirs):
|
| 17 |
+
for var_name in make_vars:
|
| 18 |
+
var = sysconfig.get_config_var(var_name)
|
| 19 |
+
if var is not None:
|
| 20 |
+
- m = re.search(r'--sysroot=([^"]\S*|"[^"]+")', var)
|
| 21 |
+
+ m = re.search(r'(?:--sysroot|-isysroot)=([^"]\S*|"[^"]+")', var)
|
| 22 |
+
if m is not None:
|
| 23 |
+
sysroot = m.group(1).strip('"')
|
| 24 |
+
for subdir in subdirs:
|
| 25 |
+
--
|
| 26 |
+
2.32.1 (Apple Git-133)
|
| 27 |
+
|
docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/patches/0005-runtime_library_dir_option-Use-1st-word-of-CC-as-com.patch
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
From 5e8e82052a141f24c89acc56c275ade16ce21a4c Mon Sep 17 00:00:00 2001
|
| 2 |
+
From: Ray Donnelly <mingw.android@gmail.com>
|
| 3 |
+
Date: Thu, 5 Oct 2017 02:00:41 +0100
|
| 4 |
+
Subject: [PATCH 04/25] runtime_library_dir_option: Use 1st word of CC as
|
| 5 |
+
compiler
|
| 6 |
+
|
| 7 |
+
Previous, 'CC' got passed to os.path.basename, so any paths in it after
|
| 8 |
+
the executable name would get returned as the executable and it would
|
| 9 |
+
not get detected as gcc (or whatever it actually is).
|
| 10 |
+
---
|
| 11 |
+
Lib/distutils/unixccompiler.py | 3 ++-
|
| 12 |
+
1 file changed, 2 insertions(+), 1 deletion(-)
|
| 13 |
+
|
| 14 |
+
diff --git a/Lib/distutils/unixccompiler.py b/Lib/distutils/unixccompiler.py
|
| 15 |
+
index d00c48981e..54dd556fe5 100644
|
| 16 |
+
--- a/Lib/distutils/unixccompiler.py
|
| 17 |
+
+++ b/Lib/distutils/unixccompiler.py
|
| 18 |
+
@@ -232,7 +232,8 @@ def runtime_library_dir_option(self, dir):
|
| 19 |
+
# this time, there's no way to determine this information from
|
| 20 |
+
# the configuration data stored in the Python installation, so
|
| 21 |
+
# we use this hack.
|
| 22 |
+
- compiler = os.path.basename(sysconfig.get_config_var("CC"))
|
| 23 |
+
+ import shlex
|
| 24 |
+
+ compiler = os.path.basename(shlex.split(sysconfig.get_config_var("CC"))[0])
|
| 25 |
+
if sys.platform[:6] == "darwin":
|
| 26 |
+
# MacOSX's linker doesn't understand the -R flag at all
|
| 27 |
+
return "-L" + dir
|
| 28 |
+
--
|
| 29 |
+
2.32.1 (Apple Git-133)
|
| 30 |
+
|
docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/patches/0006-Win32-Do-not-download-externals.patch
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
From 3aa0eec087878034251f770c7bab51823c8bdcfa Mon Sep 17 00:00:00 2001
|
| 2 |
+
From: Ray Donnelly <mingw.android@gmail.com>
|
| 3 |
+
Date: Thu, 7 Sep 2017 11:35:47 +0100
|
| 4 |
+
Subject: [PATCH 05/25] Win32: Do not download externals
|
| 5 |
+
|
| 6 |
+
---
|
| 7 |
+
PCbuild/build.bat | 2 +-
|
| 8 |
+
1 file changed, 1 insertion(+), 1 deletion(-)
|
| 9 |
+
|
| 10 |
+
diff --git a/PCbuild/build.bat b/PCbuild/build.bat
|
| 11 |
+
index d333ceabd2..11e3d16a4f 100644
|
| 12 |
+
--- a/PCbuild/build.bat
|
| 13 |
+
+++ b/PCbuild/build.bat
|
| 14 |
+
@@ -97,7 +97,7 @@ if "%IncludeCTypes%"=="" set IncludeCTypes=true
|
| 15 |
+
if "%IncludeSSL%"=="" set IncludeSSL=true
|
| 16 |
+
if "%IncludeTkinter%"=="" set IncludeTkinter=true
|
| 17 |
+
|
| 18 |
+
-if "%IncludeExternals%"=="true" call "%dir%get_externals.bat"
|
| 19 |
+
+rem if "%IncludeExternals%"=="true" call "%dir%get_externals.bat"
|
| 20 |
+
|
| 21 |
+
if "%do_pgo%" EQU "true" if "%platf%" EQU "x64" (
|
| 22 |
+
if "%PROCESSOR_ARCHITEW6432%" NEQ "AMD64" if "%PROCESSOR_ARCHITECTURE%" NEQ "AMD64" (
|
| 23 |
+
--
|
| 24 |
+
2.32.1 (Apple Git-133)
|
| 25 |
+
|
docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/patches/0007-Fix-find_library-so-that-it-looks-in-sys.prefix-lib-.patch
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
From 82f08c684edcdddad3842c81cb19e5504157e808 Mon Sep 17 00:00:00 2001
|
| 2 |
+
From: Ray Donnelly <mingw.android@gmail.com>
|
| 3 |
+
Date: Tue, 5 Dec 2017 22:47:59 +0000
|
| 4 |
+
Subject: [PATCH 06/25] Fix find_library so that it looks in sys.prefix/lib
|
| 5 |
+
first
|
| 6 |
+
|
| 7 |
+
---
|
| 8 |
+
Lib/ctypes/macholib/dyld.py | 4 ++++
|
| 9 |
+
Lib/ctypes/util.py | 27 ++++++++++++++++++++++++---
|
| 10 |
+
2 files changed, 28 insertions(+), 3 deletions(-)
|
| 11 |
+
|
| 12 |
+
diff --git a/Lib/ctypes/macholib/dyld.py b/Lib/ctypes/macholib/dyld.py
|
| 13 |
+
index 583c47daff..ab9b01c87e 100644
|
| 14 |
+
--- a/Lib/ctypes/macholib/dyld.py
|
| 15 |
+
+++ b/Lib/ctypes/macholib/dyld.py
|
| 16 |
+
@@ -93,6 +93,10 @@ def dyld_executable_path_search(name, executable_path=None):
|
| 17 |
+
# If we haven't done any searching and found a library and the
|
| 18 |
+
# dylib_name starts with "@executable_path/" then construct the
|
| 19 |
+
# library name.
|
| 20 |
+
+ if not executable_path:
|
| 21 |
+
+ import sys
|
| 22 |
+
+ if sys.prefix:
|
| 23 |
+
+ executable_path = os.path.join(sys.prefix, 'bin')
|
| 24 |
+
if name.startswith('@executable_path/') and executable_path is not None:
|
| 25 |
+
yield os.path.join(executable_path, name[len('@executable_path/'):])
|
| 26 |
+
|
| 27 |
+
diff --git a/Lib/ctypes/util.py b/Lib/ctypes/util.py
|
| 28 |
+
index 0c2510e161..72b46cc481 100644
|
| 29 |
+
--- a/Lib/ctypes/util.py
|
| 30 |
+
+++ b/Lib/ctypes/util.py
|
| 31 |
+
@@ -70,7 +70,8 @@ def find_library(name):
|
| 32 |
+
elif os.name == "posix" and sys.platform == "darwin":
|
| 33 |
+
from ctypes.macholib.dyld import dyld_find as _dyld_find
|
| 34 |
+
def find_library(name):
|
| 35 |
+
- possible = ['lib%s.dylib' % name,
|
| 36 |
+
+ possible = ['@executable_path/../lib/lib%s.dylib' % name,
|
| 37 |
+
+ 'lib%s.dylib' % name,
|
| 38 |
+
'%s.dylib' % name,
|
| 39 |
+
'%s.framework/%s' % (name, name)]
|
| 40 |
+
for name in possible:
|
| 41 |
+
@@ -324,10 +325,30 @@ def _findLib_ld(name):
|
| 42 |
+
pass # result will be None
|
| 43 |
+
return result
|
| 44 |
+
|
| 45 |
+
+ def _findLib_prefix(name):
|
| 46 |
+
+ if not name:
|
| 47 |
+
+ return None
|
| 48 |
+
+ for fullname in (name, "lib%s.so" % (name)):
|
| 49 |
+
+ path = os.path.join(sys.prefix, 'lib', fullname)
|
| 50 |
+
+ if os.path.exists(path):
|
| 51 |
+
+ return path
|
| 52 |
+
+ return None
|
| 53 |
+
+
|
| 54 |
+
def find_library(name):
|
| 55 |
+
# See issue #9998
|
| 56 |
+
- return _findSoname_ldconfig(name) or \
|
| 57 |
+
- _get_soname(_findLib_gcc(name)) or _get_soname(_findLib_ld(name))
|
| 58 |
+
+ # Yes calling _findLib_prefix twice is deliberate, because _get_soname ditches
|
| 59 |
+
+ # the full path.
|
| 60 |
+
+ # When objdump is unavailable this returns None
|
| 61 |
+
+ so_name = _get_soname(_findLib_prefix(name)) or name
|
| 62 |
+
+ if so_name != name:
|
| 63 |
+
+ return _findLib_prefix(so_name) or \
|
| 64 |
+
+ _findLib_prefix(name) or \
|
| 65 |
+
+ _findSoname_ldconfig(name) or \
|
| 66 |
+
+ _get_soname(_findLib_gcc(name)) or _get_soname(_findLib_ld(name))
|
| 67 |
+
+ else:
|
| 68 |
+
+ return _findLib_prefix(name) or \
|
| 69 |
+
+ _findSoname_ldconfig(name) or \
|
| 70 |
+
+ _get_soname(_findLib_gcc(name)) or _get_soname(_findLib_ld(name))
|
| 71 |
+
|
| 72 |
+
################################################################
|
| 73 |
+
# test code
|
| 74 |
+
--
|
| 75 |
+
2.32.1 (Apple Git-133)
|
| 76 |
+
|
docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/patches/0008-bpo-22699-Allow-compiling-on-debian-ubuntu-with-a-di.patch
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
From 35e5c744b2db5f1e87036d6e24758f5f99db535e Mon Sep 17 00:00:00 2001
|
| 2 |
+
From: Isuru Fernando <isuruf@gmail.com>
|
| 3 |
+
Date: Thu, 16 Sep 2021 15:46:09 -0500
|
| 4 |
+
Subject: [PATCH 07/25] bpo-22699: Allow compiling on debian/ubuntu with a
|
| 5 |
+
different compiler
|
| 6 |
+
|
| 7 |
+
This PR fixes one issue mentioned in the bpo
|
| 8 |
+
https://bugs.python.org/issue22699#msg364685 with a slightly better
|
| 9 |
+
patch than given
|
| 10 |
+
---
|
| 11 |
+
setup.py | 20 +++++++++++++++++++-
|
| 12 |
+
1 file changed, 19 insertions(+), 1 deletion(-)
|
| 13 |
+
|
| 14 |
+
diff --git a/setup.py b/setup.py
|
| 15 |
+
index a15a7a46e0..1bb48591c6 100644
|
| 16 |
+
--- a/setup.py
|
| 17 |
+
+++ b/setup.py
|
| 18 |
+
@@ -687,9 +687,27 @@ def check_extension_import(self, ext):
|
| 19 |
+
def add_multiarch_paths(self):
|
| 20 |
+
# Debian/Ubuntu multiarch support.
|
| 21 |
+
# https://wiki.ubuntu.com/MultiarchSpec
|
| 22 |
+
- tmpfile = os.path.join(self.build_temp, 'multiarch')
|
| 23 |
+
+ cc = sysconfig.get_config_var('CC')
|
| 24 |
+
if not os.path.exists(self.build_temp):
|
| 25 |
+
os.makedirs(self.build_temp)
|
| 26 |
+
+
|
| 27 |
+
+ tmpfile_sysroot = os.path.join(self.build_temp, 'sysroot')
|
| 28 |
+
+ ret_sysroot = run_command(
|
| 29 |
+
+ '%s -print-sysroot > %s 2> /dev/null' % (cc, tmpfile_sysroot))
|
| 30 |
+
+
|
| 31 |
+
+ try:
|
| 32 |
+
+ if ret_sysroot == 0:
|
| 33 |
+
+ with open(tmpfile_sysroot) as fp:
|
| 34 |
+
+ sysroot = fp.readline().strip()
|
| 35 |
+
+ # if the sysroot is not /, then we are not using
|
| 36 |
+
+ # the compiler from debian/ubuntu
|
| 37 |
+
+ if sysroot not in ['', '/']:
|
| 38 |
+
+ return
|
| 39 |
+
+ finally:
|
| 40 |
+
+ os.unlink(tmpfile_sysroot)
|
| 41 |
+
+
|
| 42 |
+
+ tmpfile = os.path.join(self.build_temp, 'multiarch')
|
| 43 |
+
+
|
| 44 |
+
ret = run_command(
|
| 45 |
+
'%s -print-multiarch > %s 2> /dev/null' % (CC, tmpfile))
|
| 46 |
+
multiarch_path_component = ''
|
| 47 |
+
--
|
| 48 |
+
2.32.1 (Apple Git-133)
|
| 49 |
+
|
docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/patches/0009-Disable-registry-lookup-unless-CONDA_PY_ALLOW_REG_PA.patch
ADDED
|
@@ -0,0 +1,1197 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
From ed5794ebec725f9c9c32bd8f4da80eb9b6eb9fea Mon Sep 17 00:00:00 2001
|
| 2 |
+
From: Ray Donnelly <mingw.android@gmail.com>
|
| 3 |
+
Date: Sat, 27 Oct 2018 18:48:30 +0100
|
| 4 |
+
Subject: [PATCH 08/25] Disable registry lookup unless CONDA_PY_ALLOW_REG_PATHS
|
| 5 |
+
is not 0
|
| 6 |
+
|
| 7 |
+
Co-authored-by: Isuru Fernando<isuruf@gmail.com>
|
| 8 |
+
---
|
| 9 |
+
Modules/getpath.c | 1 +
|
| 10 |
+
Modules/getpath.py | 3 +-
|
| 11 |
+
PC/getpathp.c | 1145 ++++++++++++++++++++++++++++++++++++++++++++
|
| 12 |
+
3 files changed, 1148 insertions(+), 1 deletion(-)
|
| 13 |
+
create mode 100644 PC/getpathp.c
|
| 14 |
+
|
| 15 |
+
Index: CPython/Modules/getpath.c
|
| 16 |
+
===================================================================
|
| 17 |
+
--- CPython.orig/Modules/getpath.c 2023-12-14 17:26:29.166336000 -0600
|
| 18 |
+
+++ CPython/Modules/getpath.c 2023-12-14 17:26:55.751864098 -0600
|
| 19 |
+
@@ -903,6 +903,7 @@
|
| 20 |
+
!env_to_dict(dict, "ENV_PATH", 0) ||
|
| 21 |
+
!env_to_dict(dict, "ENV_PYTHONHOME", 0) ||
|
| 22 |
+
!env_to_dict(dict, "ENV_PYTHONEXECUTABLE", 0) ||
|
| 23 |
+
+ !env_to_dict(dict, "ENV_CONDA_PY_ALLOW_REG_PATHS", 0) ||
|
| 24 |
+
!env_to_dict(dict, "ENV___PYVENV_LAUNCHER__", 1) ||
|
| 25 |
+
!progname_to_dict(dict, "real_executable") ||
|
| 26 |
+
!library_to_dict(dict, "library") ||
|
| 27 |
+
Index: CPython/Modules/getpath.py
|
| 28 |
+
===================================================================
|
| 29 |
+
--- CPython.orig/Modules/getpath.py 2023-12-14 17:26:29.166444000 -0600
|
| 30 |
+
+++ CPython/Modules/getpath.py 2023-12-14 17:26:55.752181931 -0600
|
| 31 |
+
@@ -51,6 +51,7 @@
|
| 32 |
+
# ENV_PYTHONHOME -- [in] getenv(...)
|
| 33 |
+
# ENV_PYTHONEXECUTABLE -- [in] getenv(...)
|
| 34 |
+
# ENV___PYVENV_LAUNCHER__ -- [in] getenv(...)
|
| 35 |
+
+# ENV_CONDA_PY_ALLOW_REG_PATHS -- [in] getenv(...)
|
| 36 |
+
|
| 37 |
+
# ** Values calculated at runtime **
|
| 38 |
+
# config -- [in/out] dict of the PyConfig structure
|
| 39 |
+
@@ -673,7 +674,7 @@
|
| 40 |
+
else:
|
| 41 |
+
pythonpath.append(joinpath(prefix, ZIP_LANDMARK))
|
| 42 |
+
|
| 43 |
+
- if os_name == 'nt' and use_environment and winreg:
|
| 44 |
+
+ if os_name == 'nt' and use_environment and winreg and ENV_CONDA_PY_ALLOW_REG_PATHS and ENV_CONDA_PY_ALLOW_REG_PATHS != '0':
|
| 45 |
+
# QUIRK: Windows also lists paths in the registry. Paths are stored
|
| 46 |
+
# as the default value of each subkey of
|
| 47 |
+
# {HKCU,HKLM}\Software\Python\PythonCore\{winver}\PythonPath
|
| 48 |
+
Index: CPython/PC/getpathp.c
|
| 49 |
+
===================================================================
|
| 50 |
+
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
|
| 51 |
+
+++ CPython/PC/getpathp.c 2023-12-14 17:26:55.753097597 -0600
|
| 52 |
+
@@ -0,0 +1,1145 @@
|
| 53 |
+
+
|
| 54 |
+
+/* Return the initial module search path. */
|
| 55 |
+
+/* Used by DOS, Windows 3.1, Windows 95/98, Windows NT. */
|
| 56 |
+
+
|
| 57 |
+
+/* ----------------------------------------------------------------
|
| 58 |
+
+ PATH RULES FOR WINDOWS:
|
| 59 |
+
+ This describes how sys.path is formed on Windows. It describes the
|
| 60 |
+
+ functionality, not the implementation (ie, the order in which these
|
| 61 |
+
+ are actually fetched is different). The presence of a python._pth or
|
| 62 |
+
+ pythonXY._pth file alongside the program overrides these rules - see
|
| 63 |
+
+ below.
|
| 64 |
+
+
|
| 65 |
+
+ * Python always adds an empty entry at the start, which corresponds
|
| 66 |
+
+ to the current directory.
|
| 67 |
+
+
|
| 68 |
+
+ * If the PYTHONPATH env. var. exists, its entries are added next.
|
| 69 |
+
+
|
| 70 |
+
+ * We look in the registry for "application paths" - that is, sub-keys
|
| 71 |
+
+ under the main PythonPath registry key. These are added next (the
|
| 72 |
+
+ order of sub-key processing is undefined).
|
| 73 |
+
+ HKEY_CURRENT_USER is searched and added first.
|
| 74 |
+
+ HKEY_LOCAL_MACHINE is searched and added next.
|
| 75 |
+
+ (Note that all known installers only use HKLM, so HKCU is typically
|
| 76 |
+
+ empty)
|
| 77 |
+
+
|
| 78 |
+
+ * We attempt to locate the "Python Home" - if the PYTHONHOME env var
|
| 79 |
+
+ is set, we believe it. Otherwise, we use the path of our host .EXE's
|
| 80 |
+
+ to try and locate one of our "landmarks" and deduce our home.
|
| 81 |
+
+ - If we DO have a Python Home: The relevant sub-directories (Lib,
|
| 82 |
+
+ DLLs, etc) are based on the Python Home
|
| 83 |
+
+ - If we DO NOT have a Python Home, the core Python Path is
|
| 84 |
+
+ loaded from the registry. (This is the main PythonPath key,
|
| 85 |
+
+ and both HKLM and HKCU are combined to form the path)
|
| 86 |
+
+
|
| 87 |
+
+ * Iff - we can not locate the Python Home, have not had a PYTHONPATH
|
| 88 |
+
+ specified, and can't locate any Registry entries (ie, we have _nothing_
|
| 89 |
+
+ we can assume is a good path), a default path with relative entries is
|
| 90 |
+
+ used (eg. .\Lib;.\DLLs, etc)
|
| 91 |
+
+
|
| 92 |
+
+
|
| 93 |
+
+ If a '._pth' file exists adjacent to the executable with the same base name
|
| 94 |
+
+ (e.g. python._pth adjacent to python.exe) or adjacent to the shared library
|
| 95 |
+
+ (e.g. python36._pth adjacent to python36.dll), it is used in preference to
|
| 96 |
+
+ the above process. The shared library file takes precedence over the
|
| 97 |
+
+ executable. The path file must contain a list of paths to add to sys.path,
|
| 98 |
+
+ one per line. Each path is relative to the directory containing the file.
|
| 99 |
+
+ Blank lines and comments beginning with '#' are permitted.
|
| 100 |
+
+
|
| 101 |
+
+ In the presence of this ._pth file, no other paths are added to the search
|
| 102 |
+
+ path, the registry finder is not enabled, site.py is not imported and
|
| 103 |
+
+ isolated mode is enabled. The site package can be enabled by including a
|
| 104 |
+
+ line reading "import site"; no other imports are recognized. Any invalid
|
| 105 |
+
+ entry (other than directories that do not exist) will result in immediate
|
| 106 |
+
+ termination of the program.
|
| 107 |
+
+
|
| 108 |
+
+
|
| 109 |
+
+ The end result of all this is:
|
| 110 |
+
+ * When running python.exe, or any other .exe in the main Python directory
|
| 111 |
+
+ (either an installed version, or directly from the PCbuild directory),
|
| 112 |
+
+ the core path is deduced, and the core paths in the registry are
|
| 113 |
+
+ ignored. Other "application paths" in the registry are always read.
|
| 114 |
+
+
|
| 115 |
+
+ * When Python is hosted in another exe (different directory, embedded via
|
| 116 |
+
+ COM, etc), the Python Home will not be deduced, so the core path from
|
| 117 |
+
+ the registry is used. Other "application paths" in the registry are
|
| 118 |
+
+ always read.
|
| 119 |
+
+
|
| 120 |
+
+ * If Python can't find its home and there is no registry (eg, frozen
|
| 121 |
+
+ exe, some very strange installation setup) you get a path with
|
| 122 |
+
+ some default, but relative, paths.
|
| 123 |
+
+
|
| 124 |
+
+ * An embedding application can use Py_SetPath() to override all of
|
| 125 |
+
+ these automatic path computations.
|
| 126 |
+
+
|
| 127 |
+
+ * An install of Python can fully specify the contents of sys.path using
|
| 128 |
+
+ either a 'EXENAME._pth' or 'DLLNAME._pth' file, optionally including
|
| 129 |
+
+ "import site" to enable the site module.
|
| 130 |
+
+
|
| 131 |
+
+ ---------------------------------------------------------------- */
|
| 132 |
+
+
|
| 133 |
+
+
|
| 134 |
+
+#include "Python.h"
|
| 135 |
+
+#include "pycore_initconfig.h" // PyStatus
|
| 136 |
+
+#include "pycore_pathconfig.h" // _PyPathConfig
|
| 137 |
+
+#include "osdefs.h" // SEP, ALTSEP
|
| 138 |
+
+#include <wchar.h>
|
| 139 |
+
+
|
| 140 |
+
+#ifndef MS_WINDOWS
|
| 141 |
+
+#error getpathp.c should only be built on Windows
|
| 142 |
+
+#endif
|
| 143 |
+
+
|
| 144 |
+
+#include <windows.h>
|
| 145 |
+
+#include <pathcch.h>
|
| 146 |
+
+
|
| 147 |
+
+#ifdef HAVE_SYS_TYPES_H
|
| 148 |
+
+#include <sys/types.h>
|
| 149 |
+
+#endif /* HAVE_SYS_TYPES_H */
|
| 150 |
+
+
|
| 151 |
+
+#ifdef HAVE_SYS_STAT_H
|
| 152 |
+
+#include <sys/stat.h>
|
| 153 |
+
+#endif /* HAVE_SYS_STAT_H */
|
| 154 |
+
+
|
| 155 |
+
+#include <string.h>
|
| 156 |
+
+
|
| 157 |
+
+/* Search in some common locations for the associated Python libraries.
|
| 158 |
+
+ *
|
| 159 |
+
+ * Py_GetPath() tries to return a sensible Python module search path.
|
| 160 |
+
+ *
|
| 161 |
+
+ * The approach is an adaptation for Windows of the strategy used in
|
| 162 |
+
+ * ../Modules/getpath.c; it uses the Windows Registry as one of its
|
| 163 |
+
+ * information sources.
|
| 164 |
+
+ *
|
| 165 |
+
+ * Py_SetPath() can be used to override this mechanism. Call Py_SetPath
|
| 166 |
+
+ * with a semicolon separated path prior to calling Py_Initialize.
|
| 167 |
+
+ */
|
| 168 |
+
+
|
| 169 |
+
+#ifndef LANDMARK
|
| 170 |
+
+# define LANDMARK L"lib\\os.py"
|
| 171 |
+
+#endif
|
| 172 |
+
+
|
| 173 |
+
+#define INIT_ERR_BUFFER_OVERFLOW() _PyStatus_ERR("buffer overflow")
|
| 174 |
+
+
|
| 175 |
+
+
|
| 176 |
+
+typedef struct {
|
| 177 |
+
+ const wchar_t *path_env; /* PATH environment variable */
|
| 178 |
+
+ const wchar_t *home; /* PYTHONHOME environment variable */
|
| 179 |
+
+
|
| 180 |
+
+ /* Registry key "Software\Python\PythonCore\X.Y\PythonPath"
|
| 181 |
+
+ where X.Y is the Python version (major.minor) */
|
| 182 |
+
+ wchar_t *machine_path; /* from HKEY_LOCAL_MACHINE */
|
| 183 |
+
+ wchar_t *user_path; /* from HKEY_CURRENT_USER */
|
| 184 |
+
+
|
| 185 |
+
+ const wchar_t *pythonpath_env;
|
| 186 |
+
+} PyCalculatePath;
|
| 187 |
+
+
|
| 188 |
+
+
|
| 189 |
+
+/* determine if "ch" is a separator character */
|
| 190 |
+
+static int
|
| 191 |
+
+is_sep(wchar_t ch)
|
| 192 |
+
+{
|
| 193 |
+
+#ifdef ALTSEP
|
| 194 |
+
+ return ch == SEP || ch == ALTSEP;
|
| 195 |
+
+#else
|
| 196 |
+
+ return ch == SEP;
|
| 197 |
+
+#endif
|
| 198 |
+
+}
|
| 199 |
+
+
|
| 200 |
+
+
|
| 201 |
+
+/* assumes 'dir' null terminated in bounds. Never writes
|
| 202 |
+
+ beyond existing terminator. */
|
| 203 |
+
+static void
|
| 204 |
+
+reduce(wchar_t *dir)
|
| 205 |
+
+{
|
| 206 |
+
+ size_t i = wcsnlen_s(dir, MAXPATHLEN+1);
|
| 207 |
+
+ if (i >= MAXPATHLEN+1) {
|
| 208 |
+
+ Py_FatalError("buffer overflow in getpathp.c's reduce()");
|
| 209 |
+
+ }
|
| 210 |
+
+
|
| 211 |
+
+ while (i > 0 && !is_sep(dir[i]))
|
| 212 |
+
+ --i;
|
| 213 |
+
+ dir[i] = '\0';
|
| 214 |
+
+}
|
| 215 |
+
+
|
| 216 |
+
+
|
| 217 |
+
+static int
|
| 218 |
+
+change_ext(wchar_t *dest, const wchar_t *src, const wchar_t *ext)
|
| 219 |
+
+{
|
| 220 |
+
+ if (src && src != dest) {
|
| 221 |
+
+ size_t src_len = wcsnlen_s(src, MAXPATHLEN+1);
|
| 222 |
+
+ size_t i = src_len;
|
| 223 |
+
+ if (i >= MAXPATHLEN+1) {
|
| 224 |
+
+ Py_FatalError("buffer overflow in getpathp.c's reduce()");
|
| 225 |
+
+ }
|
| 226 |
+
+
|
| 227 |
+
+ while (i > 0 && src[i] != '.' && !is_sep(src[i]))
|
| 228 |
+
+ --i;
|
| 229 |
+
+
|
| 230 |
+
+ if (i == 0) {
|
| 231 |
+
+ dest[0] = '\0';
|
| 232 |
+
+ return -1;
|
| 233 |
+
+ }
|
| 234 |
+
+
|
| 235 |
+
+ if (is_sep(src[i])) {
|
| 236 |
+
+ i = src_len;
|
| 237 |
+
+ }
|
| 238 |
+
+
|
| 239 |
+
+ if (wcsncpy_s(dest, MAXPATHLEN+1, src, i)) {
|
| 240 |
+
+ dest[0] = '\0';
|
| 241 |
+
+ return -1;
|
| 242 |
+
+ }
|
| 243 |
+
+ } else {
|
| 244 |
+
+ wchar_t *s = wcsrchr(dest, L'.');
|
| 245 |
+
+ if (s) {
|
| 246 |
+
+ s[0] = '\0';
|
| 247 |
+
+ }
|
| 248 |
+
+ }
|
| 249 |
+
+
|
| 250 |
+
+ if (wcscat_s(dest, MAXPATHLEN+1, ext)) {
|
| 251 |
+
+ dest[0] = '\0';
|
| 252 |
+
+ return -1;
|
| 253 |
+
+ }
|
| 254 |
+
+
|
| 255 |
+
+ return 0;
|
| 256 |
+
+}
|
| 257 |
+
+
|
| 258 |
+
+
|
| 259 |
+
+static int
|
| 260 |
+
+exists(const wchar_t *filename)
|
| 261 |
+
+{
|
| 262 |
+
+ return GetFileAttributesW(filename) != 0xFFFFFFFF;
|
| 263 |
+
+}
|
| 264 |
+
+
|
| 265 |
+
+
|
| 266 |
+
+/* Is module -- check for .pyc too.
|
| 267 |
+
+ Assumes 'filename' MAXPATHLEN+1 bytes long -
|
| 268 |
+
+ may extend 'filename' by one character. */
|
| 269 |
+
+static int
|
| 270 |
+
+ismodule(wchar_t *filename, int update_filename)
|
| 271 |
+
+{
|
| 272 |
+
+ size_t n;
|
| 273 |
+
+
|
| 274 |
+
+ if (exists(filename)) {
|
| 275 |
+
+ return 1;
|
| 276 |
+
+ }
|
| 277 |
+
+
|
| 278 |
+
+ /* Check for the compiled version of prefix. */
|
| 279 |
+
+ n = wcsnlen_s(filename, MAXPATHLEN+1);
|
| 280 |
+
+ if (n < MAXPATHLEN) {
|
| 281 |
+
+ int exist = 0;
|
| 282 |
+
+ filename[n] = L'c';
|
| 283 |
+
+ filename[n + 1] = L'\0';
|
| 284 |
+
+ exist = exists(filename);
|
| 285 |
+
+ if (!update_filename) {
|
| 286 |
+
+ filename[n] = L'\0';
|
| 287 |
+
+ }
|
| 288 |
+
+ return exist;
|
| 289 |
+
+ }
|
| 290 |
+
+ return 0;
|
| 291 |
+
+}
|
| 292 |
+
+
|
| 293 |
+
+
|
| 294 |
+
+/* Add a path component, by appending stuff to buffer.
|
| 295 |
+
+ buffer must have at least MAXPATHLEN + 1 bytes allocated, and contain a
|
| 296 |
+
+ NUL-terminated string with no more than MAXPATHLEN characters (not counting
|
| 297 |
+
+ the trailing NUL). It's a fatal error if it contains a string longer than
|
| 298 |
+
+ that (callers must be careful!). If these requirements are met, it's
|
| 299 |
+
+ guaranteed that buffer will still be a NUL-terminated string with no more
|
| 300 |
+
+ than MAXPATHLEN characters at exit. If stuff is too long, only as much of
|
| 301 |
+
+ stuff as fits will be appended.
|
| 302 |
+
+*/
|
| 303 |
+
+
|
| 304 |
+
+static void
|
| 305 |
+
+join(wchar_t *buffer, const wchar_t *stuff)
|
| 306 |
+
+{
|
| 307 |
+
+ if (FAILED(PathCchCombineEx(buffer, MAXPATHLEN+1, buffer, stuff, 0))) {
|
| 308 |
+
+ Py_FatalError("buffer overflow in getpathp.c's join()");
|
| 309 |
+
+ }
|
| 310 |
+
+}
|
| 311 |
+
+
|
| 312 |
+
+/* Call PathCchCanonicalizeEx(path): remove navigation elements such as "."
|
| 313 |
+
+ and ".." to produce a direct, well-formed path. */
|
| 314 |
+
+static PyStatus
|
| 315 |
+
+canonicalize(wchar_t *buffer, const wchar_t *path)
|
| 316 |
+
+{
|
| 317 |
+
+ if (buffer == NULL) {
|
| 318 |
+
+ return _PyStatus_NO_MEMORY();
|
| 319 |
+
+ }
|
| 320 |
+
+
|
| 321 |
+
+ if (FAILED(PathCchCanonicalizeEx(buffer, MAXPATHLEN + 1, path, 0))) {
|
| 322 |
+
+ return INIT_ERR_BUFFER_OVERFLOW();
|
| 323 |
+
+ }
|
| 324 |
+
+ return _PyStatus_OK();
|
| 325 |
+
+}
|
| 326 |
+
+
|
| 327 |
+
+
|
| 328 |
+
+/* gotlandmark only called by search_for_prefix, which ensures
|
| 329 |
+
+ 'prefix' is null terminated in bounds. join() ensures
|
| 330 |
+
+ 'landmark' can not overflow prefix if too long. */
|
| 331 |
+
+static int
|
| 332 |
+
+gotlandmark(const wchar_t *prefix, const wchar_t *landmark)
|
| 333 |
+
+{
|
| 334 |
+
+ wchar_t filename[MAXPATHLEN+1];
|
| 335 |
+
+ memset(filename, 0, sizeof(filename));
|
| 336 |
+
+ wcscpy_s(filename, Py_ARRAY_LENGTH(filename), prefix);
|
| 337 |
+
+ join(filename, landmark);
|
| 338 |
+
+ return ismodule(filename, FALSE);
|
| 339 |
+
+}
|
| 340 |
+
+
|
| 341 |
+
+
|
| 342 |
+
+/* assumes argv0_path is MAXPATHLEN+1 bytes long, already \0 term'd.
|
| 343 |
+
+ assumption provided by only caller, calculate_path() */
|
| 344 |
+
+static int
|
| 345 |
+
+search_for_prefix(wchar_t *prefix, const wchar_t *argv0_path, const wchar_t *landmark)
|
| 346 |
+
+{
|
| 347 |
+
+ /* Search from argv0_path, until landmark is found */
|
| 348 |
+
+ wcscpy_s(prefix, MAXPATHLEN + 1, argv0_path);
|
| 349 |
+
+ do {
|
| 350 |
+
+ if (gotlandmark(prefix, landmark)) {
|
| 351 |
+
+ return 1;
|
| 352 |
+
+ }
|
| 353 |
+
+ reduce(prefix);
|
| 354 |
+
+ } while (prefix[0]);
|
| 355 |
+
+ return 0;
|
| 356 |
+
+}
|
| 357 |
+
+
|
| 358 |
+
+
|
| 359 |
+
+static int
|
| 360 |
+
+get_dllpath(wchar_t *dllpath)
|
| 361 |
+
+{
|
| 362 |
+
+#ifdef Py_ENABLE_SHARED
|
| 363 |
+
+ extern HANDLE PyWin_DLLhModule;
|
| 364 |
+
+ if (PyWin_DLLhModule && GetModuleFileNameW(PyWin_DLLhModule, dllpath, MAXPATHLEN)) {
|
| 365 |
+
+ return 0;
|
| 366 |
+
+ }
|
| 367 |
+
+#endif
|
| 368 |
+
+ return -1;
|
| 369 |
+
+}
|
| 370 |
+
+
|
| 371 |
+
+
|
| 372 |
+
+#ifdef Py_ENABLE_SHARED
|
| 373 |
+
+
|
| 374 |
+
+/* a string loaded from the DLL at startup.*/
|
| 375 |
+
+extern const char *PyWin_DLLVersionString;
|
| 376 |
+
+
|
| 377 |
+
+/* Load a PYTHONPATH value from the registry.
|
| 378 |
+
+ Load from either HKEY_LOCAL_MACHINE or HKEY_CURRENT_USER.
|
| 379 |
+
+
|
| 380 |
+
+ Works in both Unicode and 8bit environments. Only uses the
|
| 381 |
+
+ Ex family of functions so it also works with Windows CE.
|
| 382 |
+
+
|
| 383 |
+
+ Returns NULL, or a pointer that should be freed.
|
| 384 |
+
+
|
| 385 |
+
+ XXX - this code is pretty strange, as it used to also
|
| 386 |
+
+ work on Win16, where the buffer sizes were not available
|
| 387 |
+
+ in advance. It could be simplied now Win16/Win32s is dead!
|
| 388 |
+
+*/
|
| 389 |
+
+static wchar_t *
|
| 390 |
+
+getpythonregpath(HKEY keyBase, int skipcore)
|
| 391 |
+
+{
|
| 392 |
+
+ HKEY newKey = 0;
|
| 393 |
+
+ DWORD dataSize = 0;
|
| 394 |
+
+ DWORD numKeys = 0;
|
| 395 |
+
+ LONG rc;
|
| 396 |
+
+ wchar_t *retval = NULL;
|
| 397 |
+
+ WCHAR *dataBuf = NULL;
|
| 398 |
+
+ static const WCHAR keyPrefix[] = L"Software\\Python\\PythonCore\\";
|
| 399 |
+
+ static const WCHAR keySuffix[] = L"\\PythonPath";
|
| 400 |
+
+ size_t versionLen, keyBufLen;
|
| 401 |
+
+ DWORD index;
|
| 402 |
+
+ WCHAR *keyBuf = NULL;
|
| 403 |
+
+ WCHAR *keyBufPtr;
|
| 404 |
+
+ WCHAR **ppPaths = NULL;
|
| 405 |
+
+
|
| 406 |
+
+ /* Tried to use sysget("winver") but here is too early :-( */
|
| 407 |
+
+ versionLen = strlen(PyWin_DLLVersionString);
|
| 408 |
+
+ /* Space for all the chars, plus one \0 */
|
| 409 |
+
+ keyBufLen = sizeof(keyPrefix) +
|
| 410 |
+
+ sizeof(WCHAR)*(versionLen-1) +
|
| 411 |
+
+ sizeof(keySuffix);
|
| 412 |
+
+ keyBuf = keyBufPtr = PyMem_RawMalloc(keyBufLen);
|
| 413 |
+
+ if (keyBuf==NULL) {
|
| 414 |
+
+ goto done;
|
| 415 |
+
+ }
|
| 416 |
+
+
|
| 417 |
+
+ memcpy_s(keyBufPtr, keyBufLen, keyPrefix, sizeof(keyPrefix)-sizeof(WCHAR));
|
| 418 |
+
+ keyBufPtr += Py_ARRAY_LENGTH(keyPrefix) - 1;
|
| 419 |
+
+ mbstowcs(keyBufPtr, PyWin_DLLVersionString, versionLen);
|
| 420 |
+
+ keyBufPtr += versionLen;
|
| 421 |
+
+ /* NULL comes with this one! */
|
| 422 |
+
+ memcpy(keyBufPtr, keySuffix, sizeof(keySuffix));
|
| 423 |
+
+ /* Open the root Python key */
|
| 424 |
+
+ rc=RegOpenKeyExW(keyBase,
|
| 425 |
+
+ keyBuf, /* subkey */
|
| 426 |
+
+ 0, /* reserved */
|
| 427 |
+
+ KEY_READ,
|
| 428 |
+
+ &newKey);
|
| 429 |
+
+ if (rc!=ERROR_SUCCESS) {
|
| 430 |
+
+ goto done;
|
| 431 |
+
+ }
|
| 432 |
+
+ /* Find out how big our core buffer is, and how many subkeys we have */
|
| 433 |
+
+ rc = RegQueryInfoKeyW(newKey, NULL, NULL, NULL, &numKeys, NULL, NULL,
|
| 434 |
+
+ NULL, NULL, &dataSize, NULL, NULL);
|
| 435 |
+
+ if (rc!=ERROR_SUCCESS) {
|
| 436 |
+
+ goto done;
|
| 437 |
+
+ }
|
| 438 |
+
+ if (skipcore) {
|
| 439 |
+
+ dataSize = 0; /* Only count core ones if we want them! */
|
| 440 |
+
+ }
|
| 441 |
+
+ /* Allocate a temp array of char buffers, so we only need to loop
|
| 442 |
+
+ reading the registry once
|
| 443 |
+
+ */
|
| 444 |
+
+ ppPaths = PyMem_RawCalloc(numKeys, sizeof(WCHAR *));
|
| 445 |
+
+ if (ppPaths==NULL) {
|
| 446 |
+
+ goto done;
|
| 447 |
+
+ }
|
| 448 |
+
+ /* Loop over all subkeys, allocating a temp sub-buffer. */
|
| 449 |
+
+ for(index=0;index<numKeys;index++) {
|
| 450 |
+
+ WCHAR keyBuf[MAX_PATH+1];
|
| 451 |
+
+ HKEY subKey = 0;
|
| 452 |
+
+ DWORD reqdSize = MAX_PATH+1;
|
| 453 |
+
+ /* Get the sub-key name */
|
| 454 |
+
+ DWORD rc = RegEnumKeyExW(newKey, index, keyBuf, &reqdSize,
|
| 455 |
+
+ NULL, NULL, NULL, NULL );
|
| 456 |
+
+ if (rc!=ERROR_SUCCESS) {
|
| 457 |
+
+ goto done;
|
| 458 |
+
+ }
|
| 459 |
+
+ /* Open the sub-key */
|
| 460 |
+
+ rc=RegOpenKeyExW(newKey,
|
| 461 |
+
+ keyBuf, /* subkey */
|
| 462 |
+
+ 0, /* reserved */
|
| 463 |
+
+ KEY_READ,
|
| 464 |
+
+ &subKey);
|
| 465 |
+
+ if (rc!=ERROR_SUCCESS) {
|
| 466 |
+
+ goto done;
|
| 467 |
+
+ }
|
| 468 |
+
+ /* Find the value of the buffer size, malloc, then read it */
|
| 469 |
+
+ RegQueryValueExW(subKey, NULL, 0, NULL, NULL, &reqdSize);
|
| 470 |
+
+ if (reqdSize) {
|
| 471 |
+
+ ppPaths[index] = PyMem_RawMalloc(reqdSize);
|
| 472 |
+
+ if (ppPaths[index]) {
|
| 473 |
+
+ RegQueryValueExW(subKey, NULL, 0, NULL,
|
| 474 |
+
+ (LPBYTE)ppPaths[index],
|
| 475 |
+
+ &reqdSize);
|
| 476 |
+
+ dataSize += reqdSize + 1; /* 1 for the ";" */
|
| 477 |
+
+ }
|
| 478 |
+
+ }
|
| 479 |
+
+ RegCloseKey(subKey);
|
| 480 |
+
+ }
|
| 481 |
+
+
|
| 482 |
+
+ /* return null if no path to return */
|
| 483 |
+
+ if (dataSize == 0) {
|
| 484 |
+
+ goto done;
|
| 485 |
+
+ }
|
| 486 |
+
+
|
| 487 |
+
+ /* original datasize from RegQueryInfo doesn't include the \0 */
|
| 488 |
+
+ dataBuf = PyMem_RawMalloc((dataSize+1) * sizeof(WCHAR));
|
| 489 |
+
+ if (dataBuf) {
|
| 490 |
+
+ WCHAR *szCur = dataBuf;
|
| 491 |
+
+ /* Copy our collected strings */
|
| 492 |
+
+ for (index=0;index<numKeys;index++) {
|
| 493 |
+
+ if (index > 0) {
|
| 494 |
+
+ *(szCur++) = L';';
|
| 495 |
+
+ dataSize--;
|
| 496 |
+
+ }
|
| 497 |
+
+ if (ppPaths[index]) {
|
| 498 |
+
+ Py_ssize_t len = wcslen(ppPaths[index]);
|
| 499 |
+
+ wcsncpy(szCur, ppPaths[index], len);
|
| 500 |
+
+ szCur += len;
|
| 501 |
+
+ assert(dataSize > (DWORD)len);
|
| 502 |
+
+ dataSize -= (DWORD)len;
|
| 503 |
+
+ }
|
| 504 |
+
+ }
|
| 505 |
+
+ if (skipcore) {
|
| 506 |
+
+ *szCur = '\0';
|
| 507 |
+
+ }
|
| 508 |
+
+ else {
|
| 509 |
+
+ /* If we have no values, we don't need a ';' */
|
| 510 |
+
+ if (numKeys) {
|
| 511 |
+
+ *(szCur++) = L';';
|
| 512 |
+
+ dataSize--;
|
| 513 |
+
+ }
|
| 514 |
+
+ /* Now append the core path entries -
|
| 515 |
+
+ this will include the NULL
|
| 516 |
+
+ */
|
| 517 |
+
+ rc = RegQueryValueExW(newKey, NULL, 0, NULL,
|
| 518 |
+
+ (LPBYTE)szCur, &dataSize);
|
| 519 |
+
+ if (rc != ERROR_SUCCESS) {
|
| 520 |
+
+ PyMem_RawFree(dataBuf);
|
| 521 |
+
+ goto done;
|
| 522 |
+
+ }
|
| 523 |
+
+ }
|
| 524 |
+
+ /* And set the result - caller must free */
|
| 525 |
+
+ retval = dataBuf;
|
| 526 |
+
+ }
|
| 527 |
+
+done:
|
| 528 |
+
+ /* Loop freeing my temp buffers */
|
| 529 |
+
+ if (ppPaths) {
|
| 530 |
+
+ for(index=0; index<numKeys; index++)
|
| 531 |
+
+ PyMem_RawFree(ppPaths[index]);
|
| 532 |
+
+ PyMem_RawFree(ppPaths);
|
| 533 |
+
+ }
|
| 534 |
+
+ if (newKey) {
|
| 535 |
+
+ RegCloseKey(newKey);
|
| 536 |
+
+ }
|
| 537 |
+
+ PyMem_RawFree(keyBuf);
|
| 538 |
+
+ return retval;
|
| 539 |
+
+}
|
| 540 |
+
+#endif /* Py_ENABLE_SHARED */
|
| 541 |
+
+
|
| 542 |
+
+
|
| 543 |
+
+static PyStatus
|
| 544 |
+
+get_program_full_path(_PyPathConfig *pathconfig)
|
| 545 |
+
+{
|
| 546 |
+
+ PyStatus status;
|
| 547 |
+
+ const wchar_t *pyvenv_launcher;
|
| 548 |
+
+ wchar_t program_full_path[MAXPATHLEN+1];
|
| 549 |
+
+ memset(program_full_path, 0, sizeof(program_full_path));
|
| 550 |
+
+
|
| 551 |
+
+ if (!GetModuleFileNameW(NULL, program_full_path, MAXPATHLEN)) {
|
| 552 |
+
+ /* GetModuleFileName should never fail when passed NULL */
|
| 553 |
+
+ return _PyStatus_ERR("Cannot determine program path");
|
| 554 |
+
+ }
|
| 555 |
+
+
|
| 556 |
+
+ /* The launcher may need to force the executable path to a
|
| 557 |
+
+ * different environment, so override it here. */
|
| 558 |
+
+ pyvenv_launcher = _wgetenv(L"__PYVENV_LAUNCHER__");
|
| 559 |
+
+ if (pyvenv_launcher && pyvenv_launcher[0]) {
|
| 560 |
+
+ /* If overridden, preserve the original full path */
|
| 561 |
+
+ if (pathconfig->base_executable == NULL) {
|
| 562 |
+
+ pathconfig->base_executable = PyMem_RawMalloc(
|
| 563 |
+
+ sizeof(wchar_t) * (MAXPATHLEN + 1));
|
| 564 |
+
+ if (pathconfig->base_executable == NULL) {
|
| 565 |
+
+ return _PyStatus_NO_MEMORY();
|
| 566 |
+
+ }
|
| 567 |
+
+
|
| 568 |
+
+ status = canonicalize(pathconfig->base_executable,
|
| 569 |
+
+ program_full_path);
|
| 570 |
+
+ if (_PyStatus_EXCEPTION(status)) {
|
| 571 |
+
+ return status;
|
| 572 |
+
+ }
|
| 573 |
+
+ }
|
| 574 |
+
+
|
| 575 |
+
+ wcscpy_s(program_full_path, MAXPATHLEN+1, pyvenv_launcher);
|
| 576 |
+
+ /* bpo-35873: Clear the environment variable to avoid it being
|
| 577 |
+
+ * inherited by child processes. */
|
| 578 |
+
+ _wputenv_s(L"__PYVENV_LAUNCHER__", L"");
|
| 579 |
+
+ }
|
| 580 |
+
+
|
| 581 |
+
+ if (pathconfig->program_full_path == NULL) {
|
| 582 |
+
+ pathconfig->program_full_path = PyMem_RawMalloc(
|
| 583 |
+
+ sizeof(wchar_t) * (MAXPATHLEN + 1));
|
| 584 |
+
+ if (pathconfig->program_full_path == NULL) {
|
| 585 |
+
+ return _PyStatus_NO_MEMORY();
|
| 586 |
+
+ }
|
| 587 |
+
+
|
| 588 |
+
+ status = canonicalize(pathconfig->program_full_path,
|
| 589 |
+
+ program_full_path);
|
| 590 |
+
+ if (_PyStatus_EXCEPTION(status)) {
|
| 591 |
+
+ return status;
|
| 592 |
+
+ }
|
| 593 |
+
+ }
|
| 594 |
+
+ return _PyStatus_OK();
|
| 595 |
+
+}
|
| 596 |
+
+
|
| 597 |
+
+
|
| 598 |
+
+static PyStatus
|
| 599 |
+
+read_pth_file(_PyPathConfig *pathconfig, wchar_t *prefix, const wchar_t *path,
|
| 600 |
+
+ int *found)
|
| 601 |
+
+{
|
| 602 |
+
+ PyStatus status;
|
| 603 |
+
+ wchar_t *buf = NULL;
|
| 604 |
+
+ wchar_t *wline = NULL;
|
| 605 |
+
+ FILE *sp_file;
|
| 606 |
+
+
|
| 607 |
+
+ sp_file = _Py_wfopen(path, L"r");
|
| 608 |
+
+ if (sp_file == NULL) {
|
| 609 |
+
+ return _PyStatus_OK();
|
| 610 |
+
+ }
|
| 611 |
+
+
|
| 612 |
+
+ wcscpy_s(prefix, MAXPATHLEN+1, path);
|
| 613 |
+
+ reduce(prefix);
|
| 614 |
+
+ pathconfig->isolated = 1;
|
| 615 |
+
+ pathconfig->site_import = 0;
|
| 616 |
+
+
|
| 617 |
+
+ size_t bufsiz = MAXPATHLEN;
|
| 618 |
+
+ size_t prefixlen = wcslen(prefix);
|
| 619 |
+
+
|
| 620 |
+
+ buf = (wchar_t*)PyMem_RawMalloc(bufsiz * sizeof(wchar_t));
|
| 621 |
+
+ if (buf == NULL) {
|
| 622 |
+
+ status = _PyStatus_NO_MEMORY();
|
| 623 |
+
+ goto done;
|
| 624 |
+
+ }
|
| 625 |
+
+ buf[0] = '\0';
|
| 626 |
+
+
|
| 627 |
+
+ while (!feof(sp_file)) {
|
| 628 |
+
+ char line[MAXPATHLEN + 1];
|
| 629 |
+
+ char *p = fgets(line, Py_ARRAY_LENGTH(line), sp_file);
|
| 630 |
+
+ if (!p) {
|
| 631 |
+
+ break;
|
| 632 |
+
+ }
|
| 633 |
+
+ if (*p == '\0' || *p == '\r' || *p == '\n' || *p == '#') {
|
| 634 |
+
+ continue;
|
| 635 |
+
+ }
|
| 636 |
+
+ while (*++p) {
|
| 637 |
+
+ if (*p == '\r' || *p == '\n') {
|
| 638 |
+
+ *p = '\0';
|
| 639 |
+
+ break;
|
| 640 |
+
+ }
|
| 641 |
+
+ }
|
| 642 |
+
+
|
| 643 |
+
+ if (strcmp(line, "import site") == 0) {
|
| 644 |
+
+ pathconfig->site_import = 1;
|
| 645 |
+
+ continue;
|
| 646 |
+
+ }
|
| 647 |
+
+ else if (strncmp(line, "import ", 7) == 0) {
|
| 648 |
+
+ status = _PyStatus_ERR("only 'import site' is supported "
|
| 649 |
+
+ "in ._pth file");
|
| 650 |
+
+ goto done;
|
| 651 |
+
+ }
|
| 652 |
+
+
|
| 653 |
+
+ DWORD wn = MultiByteToWideChar(CP_UTF8, 0, line, -1, NULL, 0);
|
| 654 |
+
+ wchar_t *wline = (wchar_t*)PyMem_RawMalloc((wn + 1) * sizeof(wchar_t));
|
| 655 |
+
+ if (wline == NULL) {
|
| 656 |
+
+ status = _PyStatus_NO_MEMORY();
|
| 657 |
+
+ goto done;
|
| 658 |
+
+ }
|
| 659 |
+
+ wn = MultiByteToWideChar(CP_UTF8, 0, line, -1, wline, wn + 1);
|
| 660 |
+
+ wline[wn] = '\0';
|
| 661 |
+
+
|
| 662 |
+
+ size_t usedsiz = wcslen(buf);
|
| 663 |
+
+ while (usedsiz + wn + prefixlen + 4 > bufsiz) {
|
| 664 |
+
+ bufsiz += MAXPATHLEN;
|
| 665 |
+
+ wchar_t *tmp = (wchar_t*)PyMem_RawRealloc(buf, (bufsiz + 1) *
|
| 666 |
+
+ sizeof(wchar_t));
|
| 667 |
+
+ if (tmp == NULL) {
|
| 668 |
+
+ status = _PyStatus_NO_MEMORY();
|
| 669 |
+
+ goto done;
|
| 670 |
+
+ }
|
| 671 |
+
+ buf = tmp;
|
| 672 |
+
+ }
|
| 673 |
+
+
|
| 674 |
+
+ if (usedsiz) {
|
| 675 |
+
+ wcscat_s(buf, bufsiz, L";");
|
| 676 |
+
+ usedsiz += 1;
|
| 677 |
+
+ }
|
| 678 |
+
+
|
| 679 |
+
+ errno_t result;
|
| 680 |
+
+ _Py_BEGIN_SUPPRESS_IPH
|
| 681 |
+
+ result = wcscat_s(buf, bufsiz, prefix);
|
| 682 |
+
+ _Py_END_SUPPRESS_IPH
|
| 683 |
+
+
|
| 684 |
+
+ if (result == EINVAL) {
|
| 685 |
+
+ status = _PyStatus_ERR("invalid argument during ._pth processing");
|
| 686 |
+
+ goto done;
|
| 687 |
+
+ } else if (result == ERANGE) {
|
| 688 |
+
+ status = _PyStatus_ERR("buffer overflow during ._pth processing");
|
| 689 |
+
+ goto done;
|
| 690 |
+
+ }
|
| 691 |
+
+
|
| 692 |
+
+ wchar_t *b = &buf[usedsiz];
|
| 693 |
+
+ join(b, wline);
|
| 694 |
+
+
|
| 695 |
+
+ PyMem_RawFree(wline);
|
| 696 |
+
+ wline = NULL;
|
| 697 |
+
+ }
|
| 698 |
+
+
|
| 699 |
+
+ if (pathconfig->module_search_path == NULL) {
|
| 700 |
+
+ pathconfig->module_search_path = _PyMem_RawWcsdup(buf);
|
| 701 |
+
+ if (pathconfig->module_search_path == NULL) {
|
| 702 |
+
+ status = _PyStatus_NO_MEMORY();
|
| 703 |
+
+ goto done;
|
| 704 |
+
+ }
|
| 705 |
+
+ }
|
| 706 |
+
+
|
| 707 |
+
+ *found = 1;
|
| 708 |
+
+ status = _PyStatus_OK();
|
| 709 |
+
+ goto done;
|
| 710 |
+
+
|
| 711 |
+
+done:
|
| 712 |
+
+ PyMem_RawFree(buf);
|
| 713 |
+
+ PyMem_RawFree(wline);
|
| 714 |
+
+ fclose(sp_file);
|
| 715 |
+
+ return status;
|
| 716 |
+
+}
|
| 717 |
+
+
|
| 718 |
+
+
|
| 719 |
+
+static int
|
| 720 |
+
+get_pth_filename(PyCalculatePath *calculate, wchar_t *filename,
|
| 721 |
+
+ const _PyPathConfig *pathconfig)
|
| 722 |
+
+{
|
| 723 |
+
+ if (!get_dllpath(filename) &&
|
| 724 |
+
+ !change_ext(filename, filename, L"._pth") &&
|
| 725 |
+
+ exists(filename))
|
| 726 |
+
+ {
|
| 727 |
+
+ return 1;
|
| 728 |
+
+ }
|
| 729 |
+
+ if (pathconfig->program_full_path[0] &&
|
| 730 |
+
+ !change_ext(filename, pathconfig->program_full_path, L"._pth") &&
|
| 731 |
+
+ exists(filename))
|
| 732 |
+
+ {
|
| 733 |
+
+ return 1;
|
| 734 |
+
+ }
|
| 735 |
+
+ return 0;
|
| 736 |
+
+}
|
| 737 |
+
+
|
| 738 |
+
+
|
| 739 |
+
+static PyStatus
|
| 740 |
+
+calculate_pth_file(PyCalculatePath *calculate, _PyPathConfig *pathconfig,
|
| 741 |
+
+ wchar_t *prefix, int *found)
|
| 742 |
+
+{
|
| 743 |
+
+ wchar_t filename[MAXPATHLEN+1];
|
| 744 |
+
+
|
| 745 |
+
+ if (!get_pth_filename(calculate, filename, pathconfig)) {
|
| 746 |
+
+ return _PyStatus_OK();
|
| 747 |
+
+ }
|
| 748 |
+
+
|
| 749 |
+
+ return read_pth_file(pathconfig, prefix, filename, found);
|
| 750 |
+
+}
|
| 751 |
+
+
|
| 752 |
+
+
|
| 753 |
+
+/* Search for an environment configuration file, first in the
|
| 754 |
+
+ executable's directory and then in the parent directory.
|
| 755 |
+
+ If found, open it for use when searching for prefixes.
|
| 756 |
+
+*/
|
| 757 |
+
+static PyStatus
|
| 758 |
+
+calculate_pyvenv_file(PyCalculatePath *calculate,
|
| 759 |
+
+ wchar_t *argv0_path, size_t argv0_path_len)
|
| 760 |
+
+{
|
| 761 |
+
+ wchar_t filename[MAXPATHLEN+1];
|
| 762 |
+
+ const wchar_t *env_cfg = L"pyvenv.cfg";
|
| 763 |
+
+
|
| 764 |
+
+ /* Filename: <argv0_path_len> / "pyvenv.cfg" */
|
| 765 |
+
+ wcscpy_s(filename, MAXPATHLEN+1, argv0_path);
|
| 766 |
+
+ join(filename, env_cfg);
|
| 767 |
+
+
|
| 768 |
+
+ FILE *env_file = _Py_wfopen(filename, L"r");
|
| 769 |
+
+ if (env_file == NULL) {
|
| 770 |
+
+ errno = 0;
|
| 771 |
+
+
|
| 772 |
+
+ /* Filename: <basename(basename(argv0_path_len))> / "pyvenv.cfg" */
|
| 773 |
+
+ reduce(filename);
|
| 774 |
+
+ reduce(filename);
|
| 775 |
+
+ join(filename, env_cfg);
|
| 776 |
+
+
|
| 777 |
+
+ env_file = _Py_wfopen(filename, L"r");
|
| 778 |
+
+ if (env_file == NULL) {
|
| 779 |
+
+ errno = 0;
|
| 780 |
+
+ return _PyStatus_OK();
|
| 781 |
+
+ }
|
| 782 |
+
+ }
|
| 783 |
+
+
|
| 784 |
+
+ /* Look for a 'home' variable and set argv0_path to it, if found */
|
| 785 |
+
+ wchar_t *home = NULL;
|
| 786 |
+
+ PyStatus status = _Py_FindEnvConfigValue(env_file, L"home", &home);
|
| 787 |
+
+ if (_PyStatus_EXCEPTION(status)) {
|
| 788 |
+
+ fclose(env_file);
|
| 789 |
+
+ return status;
|
| 790 |
+
+ }
|
| 791 |
+
+ if (home) {
|
| 792 |
+
+ wcscpy_s(argv0_path, argv0_path_len, home);
|
| 793 |
+
+ PyMem_RawFree(home);
|
| 794 |
+
+ }
|
| 795 |
+
+ fclose(env_file);
|
| 796 |
+
+ return _PyStatus_OK();
|
| 797 |
+
+}
|
| 798 |
+
+
|
| 799 |
+
+
|
| 800 |
+
+static void
|
| 801 |
+
+calculate_home_prefix(PyCalculatePath *calculate,
|
| 802 |
+
+ const wchar_t *argv0_path,
|
| 803 |
+
+ const wchar_t *zip_path,
|
| 804 |
+
+ wchar_t *prefix)
|
| 805 |
+
+{
|
| 806 |
+
+ if (calculate->home == NULL || *calculate->home == '\0') {
|
| 807 |
+
+ if (zip_path[0] && exists(zip_path)) {
|
| 808 |
+
+ wcscpy_s(prefix, MAXPATHLEN+1, zip_path);
|
| 809 |
+
+ reduce(prefix);
|
| 810 |
+
+ calculate->home = prefix;
|
| 811 |
+
+ }
|
| 812 |
+
+ else if (search_for_prefix(prefix, argv0_path, LANDMARK)) {
|
| 813 |
+
+ calculate->home = prefix;
|
| 814 |
+
+ }
|
| 815 |
+
+ else {
|
| 816 |
+
+ calculate->home = NULL;
|
| 817 |
+
+ }
|
| 818 |
+
+ }
|
| 819 |
+
+ else {
|
| 820 |
+
+ wcscpy_s(prefix, MAXPATHLEN+1, calculate->home);
|
| 821 |
+
+ }
|
| 822 |
+
+}
|
| 823 |
+
+
|
| 824 |
+
+
|
| 825 |
+
+static PyStatus
|
| 826 |
+
+calculate_module_search_path(PyCalculatePath *calculate,
|
| 827 |
+
+ _PyPathConfig *pathconfig,
|
| 828 |
+
+ const wchar_t *argv0_path,
|
| 829 |
+
+ wchar_t *prefix,
|
| 830 |
+
+ const wchar_t *zip_path)
|
| 831 |
+
+{
|
| 832 |
+
+ int skiphome = calculate->home==NULL ? 0 : 1;
|
| 833 |
+
+ char * allow_registry_paths = getenv("CONDA_PY_ALLOW_REG_PATHS");
|
| 834 |
+
+ if (!Py_IgnoreEnvironmentFlag && allow_registry_paths && allow_registry_paths[0] != '0')
|
| 835 |
+
+ {
|
| 836 |
+
+ calculate->machine_path = getpythonregpath(HKEY_LOCAL_MACHINE, skiphome);
|
| 837 |
+
+ calculate->user_path = getpythonregpath(HKEY_CURRENT_USER, skiphome);
|
| 838 |
+
+ }
|
| 839 |
+
+ else
|
| 840 |
+
+ {
|
| 841 |
+
+ calculate->machine_path = NULL;
|
| 842 |
+
+ calculate->user_path = NULL;
|
| 843 |
+
+ }
|
| 844 |
+
+
|
| 845 |
+
+ /* We only use the default relative PYTHONPATH if we haven't
|
| 846 |
+
+ anything better to use! */
|
| 847 |
+
+ int skipdefault = (calculate->pythonpath_env != NULL ||
|
| 848 |
+
+ calculate->home != NULL ||
|
| 849 |
+
+ calculate->machine_path != NULL ||
|
| 850 |
+
+ calculate->user_path != NULL);
|
| 851 |
+
+
|
| 852 |
+
+ /* We need to construct a path from the following parts.
|
| 853 |
+
+ (1) the PYTHONPATH environment variable, if set;
|
| 854 |
+
+ (2) for Win32, the zip archive file path;
|
| 855 |
+
+ (3) for Win32, the machine_path and user_path, if set;
|
| 856 |
+
+ (4) the PYTHONPATH config macro, with the leading "."
|
| 857 |
+
+ of each component replaced with home, if set;
|
| 858 |
+
+ (5) the directory containing the executable (argv0_path).
|
| 859 |
+
+ The length calculation calculates #4 first.
|
| 860 |
+
+ Extra rules:
|
| 861 |
+
+ - If PYTHONHOME is set (in any way) item (3) is ignored.
|
| 862 |
+
+ - If registry values are used, (4) and (5) are ignored.
|
| 863 |
+
+ */
|
| 864 |
+
+
|
| 865 |
+
+ /* Calculate size of return buffer */
|
| 866 |
+
+ size_t bufsz = 0;
|
| 867 |
+
+ if (calculate->home != NULL) {
|
| 868 |
+
+ const wchar_t *p;
|
| 869 |
+
+ bufsz = 1;
|
| 870 |
+
+ for (p = PYTHONPATH; *p; p++) {
|
| 871 |
+
+ if (*p == DELIM) {
|
| 872 |
+
+ bufsz++; /* number of DELIM plus one */
|
| 873 |
+
+ }
|
| 874 |
+
+ }
|
| 875 |
+
+ bufsz *= wcslen(calculate->home);
|
| 876 |
+
+ }
|
| 877 |
+
+ bufsz += wcslen(PYTHONPATH) + 1;
|
| 878 |
+
+ bufsz += wcslen(argv0_path) + 1;
|
| 879 |
+
+ if (calculate->user_path) {
|
| 880 |
+
+ bufsz += wcslen(calculate->user_path) + 1;
|
| 881 |
+
+ }
|
| 882 |
+
+ if (calculate->machine_path) {
|
| 883 |
+
+ bufsz += wcslen(calculate->machine_path) + 1;
|
| 884 |
+
+ }
|
| 885 |
+
+ bufsz += wcslen(zip_path) + 1;
|
| 886 |
+
+ if (calculate->pythonpath_env != NULL) {
|
| 887 |
+
+ bufsz += wcslen(calculate->pythonpath_env) + 1;
|
| 888 |
+
+ }
|
| 889 |
+
+
|
| 890 |
+
+ wchar_t *buf, *start_buf;
|
| 891 |
+
+ buf = PyMem_RawMalloc(bufsz * sizeof(wchar_t));
|
| 892 |
+
+ if (buf == NULL) {
|
| 893 |
+
+ return _PyStatus_NO_MEMORY();
|
| 894 |
+
+ }
|
| 895 |
+
+ start_buf = buf;
|
| 896 |
+
+
|
| 897 |
+
+ if (calculate->pythonpath_env) {
|
| 898 |
+
+ if (wcscpy_s(buf, bufsz - (buf - start_buf),
|
| 899 |
+
+ calculate->pythonpath_env)) {
|
| 900 |
+
+ return INIT_ERR_BUFFER_OVERFLOW();
|
| 901 |
+
+ }
|
| 902 |
+
+ buf = wcschr(buf, L'\0');
|
| 903 |
+
+ *buf++ = DELIM;
|
| 904 |
+
+ }
|
| 905 |
+
+ if (zip_path[0]) {
|
| 906 |
+
+ if (wcscpy_s(buf, bufsz - (buf - start_buf), zip_path)) {
|
| 907 |
+
+ return INIT_ERR_BUFFER_OVERFLOW();
|
| 908 |
+
+ }
|
| 909 |
+
+ buf = wcschr(buf, L'\0');
|
| 910 |
+
+ *buf++ = DELIM;
|
| 911 |
+
+ }
|
| 912 |
+
+ if (calculate->user_path) {
|
| 913 |
+
+ if (wcscpy_s(buf, bufsz - (buf - start_buf), calculate->user_path)) {
|
| 914 |
+
+ return INIT_ERR_BUFFER_OVERFLOW();
|
| 915 |
+
+ }
|
| 916 |
+
+ buf = wcschr(buf, L'\0');
|
| 917 |
+
+ *buf++ = DELIM;
|
| 918 |
+
+ }
|
| 919 |
+
+ if (calculate->machine_path) {
|
| 920 |
+
+ if (wcscpy_s(buf, bufsz - (buf - start_buf), calculate->machine_path)) {
|
| 921 |
+
+ return INIT_ERR_BUFFER_OVERFLOW();
|
| 922 |
+
+ }
|
| 923 |
+
+ buf = wcschr(buf, L'\0');
|
| 924 |
+
+ *buf++ = DELIM;
|
| 925 |
+
+ }
|
| 926 |
+
+ if (calculate->home == NULL) {
|
| 927 |
+
+ if (!skipdefault) {
|
| 928 |
+
+ if (wcscpy_s(buf, bufsz - (buf - start_buf), PYTHONPATH)) {
|
| 929 |
+
+ return INIT_ERR_BUFFER_OVERFLOW();
|
| 930 |
+
+ }
|
| 931 |
+
+ buf = wcschr(buf, L'\0');
|
| 932 |
+
+ *buf++ = DELIM;
|
| 933 |
+
+ }
|
| 934 |
+
+ } else {
|
| 935 |
+
+ const wchar_t *p = PYTHONPATH;
|
| 936 |
+
+ const wchar_t *q;
|
| 937 |
+
+ size_t n;
|
| 938 |
+
+ for (;;) {
|
| 939 |
+
+ q = wcschr(p, DELIM);
|
| 940 |
+
+ if (q == NULL) {
|
| 941 |
+
+ n = wcslen(p);
|
| 942 |
+
+ }
|
| 943 |
+
+ else {
|
| 944 |
+
+ n = q-p;
|
| 945 |
+
+ }
|
| 946 |
+
+ if (p[0] == '.' && is_sep(p[1])) {
|
| 947 |
+
+ if (wcscpy_s(buf, bufsz - (buf - start_buf), calculate->home)) {
|
| 948 |
+
+ return INIT_ERR_BUFFER_OVERFLOW();
|
| 949 |
+
+ }
|
| 950 |
+
+ buf = wcschr(buf, L'\0');
|
| 951 |
+
+ p++;
|
| 952 |
+
+ n--;
|
| 953 |
+
+ }
|
| 954 |
+
+ wcsncpy(buf, p, n);
|
| 955 |
+
+ buf += n;
|
| 956 |
+
+ *buf++ = DELIM;
|
| 957 |
+
+ if (q == NULL) {
|
| 958 |
+
+ break;
|
| 959 |
+
+ }
|
| 960 |
+
+ p = q+1;
|
| 961 |
+
+ }
|
| 962 |
+
+ }
|
| 963 |
+
+ if (argv0_path) {
|
| 964 |
+
+ wcscpy(buf, argv0_path);
|
| 965 |
+
+ buf = wcschr(buf, L'\0');
|
| 966 |
+
+ *buf++ = DELIM;
|
| 967 |
+
+ }
|
| 968 |
+
+ *(buf - 1) = L'\0';
|
| 969 |
+
+
|
| 970 |
+
+ /* Now to pull one last hack/trick. If sys.prefix is
|
| 971 |
+
+ empty, then try and find it somewhere on the paths
|
| 972 |
+
+ we calculated. We scan backwards, as our general policy
|
| 973 |
+
+ is that Python core directories are at the *end* of
|
| 974 |
+
+ sys.path. We assume that our "lib" directory is
|
| 975 |
+
+ on the path, and that our 'prefix' directory is
|
| 976 |
+
+ the parent of that.
|
| 977 |
+
+ */
|
| 978 |
+
+ if (prefix[0] == L'\0') {
|
| 979 |
+
+ wchar_t lookBuf[MAXPATHLEN+1];
|
| 980 |
+
+ const wchar_t *look = buf - 1; /* 'buf' is at the end of the buffer */
|
| 981 |
+
+ while (1) {
|
| 982 |
+
+ Py_ssize_t nchars;
|
| 983 |
+
+ const wchar_t *lookEnd = look;
|
| 984 |
+
+ /* 'look' will end up one character before the
|
| 985 |
+
+ start of the path in question - even if this
|
| 986 |
+
+ is one character before the start of the buffer
|
| 987 |
+
+ */
|
| 988 |
+
+ while (look >= start_buf && *look != DELIM)
|
| 989 |
+
+ look--;
|
| 990 |
+
+ nchars = lookEnd-look;
|
| 991 |
+
+ wcsncpy(lookBuf, look+1, nchars);
|
| 992 |
+
+ lookBuf[nchars] = L'\0';
|
| 993 |
+
+ /* Up one level to the parent */
|
| 994 |
+
+ reduce(lookBuf);
|
| 995 |
+
+ if (search_for_prefix(prefix, lookBuf, LANDMARK)) {
|
| 996 |
+
+ break;
|
| 997 |
+
+ }
|
| 998 |
+
+ /* If we are out of paths to search - give up */
|
| 999 |
+
+ if (look < start_buf) {
|
| 1000 |
+
+ break;
|
| 1001 |
+
+ }
|
| 1002 |
+
+ look--;
|
| 1003 |
+
+ }
|
| 1004 |
+
+ }
|
| 1005 |
+
+
|
| 1006 |
+
+ pathconfig->module_search_path = start_buf;
|
| 1007 |
+
+ return _PyStatus_OK();
|
| 1008 |
+
+}
|
| 1009 |
+
+
|
| 1010 |
+
+
|
| 1011 |
+
+static PyStatus
|
| 1012 |
+
+calculate_path(PyCalculatePath *calculate, _PyPathConfig *pathconfig)
|
| 1013 |
+
+{
|
| 1014 |
+
+ PyStatus status;
|
| 1015 |
+
+
|
| 1016 |
+
+ status = get_program_full_path(pathconfig);
|
| 1017 |
+
+ if (_PyStatus_EXCEPTION(status)) {
|
| 1018 |
+
+ return status;
|
| 1019 |
+
+ }
|
| 1020 |
+
+
|
| 1021 |
+
+ /* program_full_path guaranteed \0 terminated in MAXPATH+1 bytes. */
|
| 1022 |
+
+ wchar_t argv0_path[MAXPATHLEN+1];
|
| 1023 |
+
+ memset(argv0_path, 0, sizeof(argv0_path));
|
| 1024 |
+
+
|
| 1025 |
+
+ wcscpy_s(argv0_path, MAXPATHLEN+1, pathconfig->program_full_path);
|
| 1026 |
+
+ reduce(argv0_path);
|
| 1027 |
+
+
|
| 1028 |
+
+ wchar_t prefix[MAXPATHLEN+1];
|
| 1029 |
+
+ memset(prefix, 0, sizeof(prefix));
|
| 1030 |
+
+
|
| 1031 |
+
+ /* Search for a sys.path file */
|
| 1032 |
+
+ int pth_found = 0;
|
| 1033 |
+
+ status = calculate_pth_file(calculate, pathconfig, prefix, &pth_found);
|
| 1034 |
+
+ if (_PyStatus_EXCEPTION(status)) {
|
| 1035 |
+
+ return status;
|
| 1036 |
+
+ }
|
| 1037 |
+
+ if (pth_found) {
|
| 1038 |
+
+ goto done;
|
| 1039 |
+
+ }
|
| 1040 |
+
+
|
| 1041 |
+
+ status = calculate_pyvenv_file(calculate,
|
| 1042 |
+
+ argv0_path, Py_ARRAY_LENGTH(argv0_path));
|
| 1043 |
+
+ if (_PyStatus_EXCEPTION(status)) {
|
| 1044 |
+
+ return status;
|
| 1045 |
+
+ }
|
| 1046 |
+
+
|
| 1047 |
+
+ /* Calculate zip archive path from DLL or exe path */
|
| 1048 |
+
+ wchar_t zip_path[MAXPATHLEN+1];
|
| 1049 |
+
+ memset(zip_path, 0, sizeof(zip_path));
|
| 1050 |
+
+
|
| 1051 |
+
+ if (get_dllpath(zip_path) || change_ext(zip_path, zip_path, L".zip"))
|
| 1052 |
+
+ {
|
| 1053 |
+
+ if (change_ext(zip_path, pathconfig->program_full_path, L".zip")) {
|
| 1054 |
+
+ zip_path[0] = L'\0';
|
| 1055 |
+
+ }
|
| 1056 |
+
+ }
|
| 1057 |
+
+
|
| 1058 |
+
+ calculate_home_prefix(calculate, argv0_path, zip_path, prefix);
|
| 1059 |
+
+
|
| 1060 |
+
+ if (pathconfig->module_search_path == NULL) {
|
| 1061 |
+
+ status = calculate_module_search_path(calculate, pathconfig,
|
| 1062 |
+
+ argv0_path, prefix, zip_path);
|
| 1063 |
+
+ if (_PyStatus_EXCEPTION(status)) {
|
| 1064 |
+
+ return status;
|
| 1065 |
+
+ }
|
| 1066 |
+
+ }
|
| 1067 |
+
+
|
| 1068 |
+
+done:
|
| 1069 |
+
+ if (pathconfig->prefix == NULL) {
|
| 1070 |
+
+ pathconfig->prefix = _PyMem_RawWcsdup(prefix);
|
| 1071 |
+
+ if (pathconfig->prefix == NULL) {
|
| 1072 |
+
+ return _PyStatus_NO_MEMORY();
|
| 1073 |
+
+ }
|
| 1074 |
+
+ }
|
| 1075 |
+
+ if (pathconfig->exec_prefix == NULL) {
|
| 1076 |
+
+ pathconfig->exec_prefix = _PyMem_RawWcsdup(prefix);
|
| 1077 |
+
+ if (pathconfig->exec_prefix == NULL) {
|
| 1078 |
+
+ return _PyStatus_NO_MEMORY();
|
| 1079 |
+
+ }
|
| 1080 |
+
+ }
|
| 1081 |
+
+
|
| 1082 |
+
+ return _PyStatus_OK();
|
| 1083 |
+
+}
|
| 1084 |
+
+
|
| 1085 |
+
+
|
| 1086 |
+
+static PyStatus
|
| 1087 |
+
+calculate_init(PyCalculatePath *calculate, _PyPathConfig *pathconfig,
|
| 1088 |
+
+ const PyConfig *config)
|
| 1089 |
+
+{
|
| 1090 |
+
+ calculate->home = pathconfig->home;
|
| 1091 |
+
+ calculate->path_env = _wgetenv(L"PATH");
|
| 1092 |
+
+
|
| 1093 |
+
+ calculate->pythonpath_env = config->pythonpath_env;
|
| 1094 |
+
+
|
| 1095 |
+
+ return _PyStatus_OK();
|
| 1096 |
+
+}
|
| 1097 |
+
+
|
| 1098 |
+
+
|
| 1099 |
+
+static void
|
| 1100 |
+
+calculate_free(PyCalculatePath *calculate)
|
| 1101 |
+
+{
|
| 1102 |
+
+ PyMem_RawFree(calculate->machine_path);
|
| 1103 |
+
+ PyMem_RawFree(calculate->user_path);
|
| 1104 |
+
+}
|
| 1105 |
+
+
|
| 1106 |
+
+
|
| 1107 |
+
+/* Calculate the Python path configuration.
|
| 1108 |
+
+
|
| 1109 |
+
+ Inputs:
|
| 1110 |
+
+
|
| 1111 |
+
+ - PyConfig.pythonpath_env: PYTHONPATH environment variable
|
| 1112 |
+
+ - _PyPathConfig.home: Py_SetPythonHome() or PYTHONHOME environment variable
|
| 1113 |
+
+ - PATH environment variable
|
| 1114 |
+
+ - __PYVENV_LAUNCHER__ environment variable
|
| 1115 |
+
+ - GetModuleFileNameW(NULL): fully qualified path of the executable file of
|
| 1116 |
+
+ the current process
|
| 1117 |
+
+ - ._pth configuration file
|
| 1118 |
+
+ - pyvenv.cfg configuration file
|
| 1119 |
+
+ - Registry key "Software\Python\PythonCore\X.Y\PythonPath"
|
| 1120 |
+
+ of HKEY_CURRENT_USER and HKEY_LOCAL_MACHINE where X.Y is the Python
|
| 1121 |
+
+ version.
|
| 1122 |
+
+
|
| 1123 |
+
+ Outputs, 'pathconfig' fields:
|
| 1124 |
+
+
|
| 1125 |
+
+ - base_executable
|
| 1126 |
+
+ - program_full_path
|
| 1127 |
+
+ - module_search_path
|
| 1128 |
+
+ - prefix
|
| 1129 |
+
+ - exec_prefix
|
| 1130 |
+
+ - isolated
|
| 1131 |
+
+ - site_import
|
| 1132 |
+
+
|
| 1133 |
+
+ If a field is already set (non NULL), it is left unchanged. */
|
| 1134 |
+
+PyStatus
|
| 1135 |
+
+_PyPathConfig_Calculate(_PyPathConfig *pathconfig, const PyConfig *config)
|
| 1136 |
+
+{
|
| 1137 |
+
+ PyStatus status;
|
| 1138 |
+
+ PyCalculatePath calculate;
|
| 1139 |
+
+ memset(&calculate, 0, sizeof(calculate));
|
| 1140 |
+
+
|
| 1141 |
+
+ status = calculate_init(&calculate, pathconfig, config);
|
| 1142 |
+
+ if (_PyStatus_EXCEPTION(status)) {
|
| 1143 |
+
+ goto done;
|
| 1144 |
+
+ }
|
| 1145 |
+
+
|
| 1146 |
+
+ status = calculate_path(&calculate, pathconfig);
|
| 1147 |
+
+
|
| 1148 |
+
+done:
|
| 1149 |
+
+ calculate_free(&calculate);
|
| 1150 |
+
+ return status;
|
| 1151 |
+
+}
|
| 1152 |
+
+
|
| 1153 |
+
+
|
| 1154 |
+
+/* Load python3.dll before loading any extension module that might refer
|
| 1155 |
+
+ to it. That way, we can be sure that always the python3.dll corresponding
|
| 1156 |
+
+ to this python DLL is loaded, not a python3.dll that might be on the path
|
| 1157 |
+
+ by chance.
|
| 1158 |
+
+ Return whether the DLL was found.
|
| 1159 |
+
+*/
|
| 1160 |
+
+static int python3_checked = 0;
|
| 1161 |
+
+static HANDLE hPython3;
|
| 1162 |
+
+int
|
| 1163 |
+
+_Py_CheckPython3(void)
|
| 1164 |
+
+{
|
| 1165 |
+
+ wchar_t py3path[MAXPATHLEN+1];
|
| 1166 |
+
+ if (python3_checked) {
|
| 1167 |
+
+ return hPython3 != NULL;
|
| 1168 |
+
+ }
|
| 1169 |
+
+ python3_checked = 1;
|
| 1170 |
+
+
|
| 1171 |
+
+ /* If there is a python3.dll next to the python3y.dll,
|
| 1172 |
+
+ use that DLL */
|
| 1173 |
+
+ if (!get_dllpath(py3path)) {
|
| 1174 |
+
+ reduce(py3path);
|
| 1175 |
+
+ join(py3path, PY3_DLLNAME);
|
| 1176 |
+
+ hPython3 = LoadLibraryExW(py3path, NULL, LOAD_LIBRARY_SEARCH_DEFAULT_DIRS);
|
| 1177 |
+
+ if (hPython3 != NULL) {
|
| 1178 |
+
+ return 1;
|
| 1179 |
+
+ }
|
| 1180 |
+
+ }
|
| 1181 |
+
+
|
| 1182 |
+
+ /* If we can locate python3.dll in our application dir,
|
| 1183 |
+
+ use that DLL */
|
| 1184 |
+
+ hPython3 = LoadLibraryExW(PY3_DLLNAME, NULL, LOAD_LIBRARY_SEARCH_APPLICATION_DIR);
|
| 1185 |
+
+ if (hPython3 != NULL) {
|
| 1186 |
+
+ return 1;
|
| 1187 |
+
+ }
|
| 1188 |
+
+
|
| 1189 |
+
+ /* For back-compat, also search {sys.prefix}\DLLs, though
|
| 1190 |
+
+ that has not been a normal install layout for a while */
|
| 1191 |
+
+ wcscpy(py3path, Py_GetPrefix());
|
| 1192 |
+
+ if (py3path[0]) {
|
| 1193 |
+
+ join(py3path, L"DLLs\\" PY3_DLLNAME);
|
| 1194 |
+
+ hPython3 = LoadLibraryExW(py3path, NULL, LOAD_LIBRARY_SEARCH_DEFAULT_DIRS);
|
| 1195 |
+
+ }
|
| 1196 |
+
+ return hPython3 != NULL;
|
| 1197 |
+
+}
|
docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/patches/0010-Unvendor-openssl.patch
ADDED
|
@@ -0,0 +1,217 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
From 717e6526e2f32877a9fad11c76df9674b2928424 Mon Sep 17 00:00:00 2001
|
| 2 |
+
From: Nehal J Wani <nehaljw.kkd1@gmail.com>
|
| 3 |
+
Date: Sat, 24 Nov 2018 20:38:02 -0600
|
| 4 |
+
Subject: [PATCH 09/25] Unvendor openssl
|
| 5 |
+
|
| 6 |
+
Co-authored-by: Isuru Fernando <isuruf@gmail.com>
|
| 7 |
+
---
|
| 8 |
+
PCbuild/_ssl.vcxproj | 3 --
|
| 9 |
+
PCbuild/_ssl.vcxproj.filters | 3 --
|
| 10 |
+
PCbuild/openssl.props | 14 ++-------
|
| 11 |
+
PCbuild/openssl.vcxproj | 56 ------------------------------------
|
| 12 |
+
PCbuild/python.props | 21 +++++++-------
|
| 13 |
+
PCbuild/python.vcxproj | 3 ++
|
| 14 |
+
PCbuild/pythonw.vcxproj | 3 ++
|
| 15 |
+
7 files changed, 19 insertions(+), 84 deletions(-)
|
| 16 |
+
|
| 17 |
+
Index: CPython/PCbuild/_ssl.vcxproj
|
| 18 |
+
===================================================================
|
| 19 |
+
--- CPython.orig/PCbuild/_ssl.vcxproj 2023-12-14 17:40:12.222521230 -0600
|
| 20 |
+
+++ CPython/PCbuild/_ssl.vcxproj 2023-12-14 17:40:20.047423623 -0600
|
| 21 |
+
@@ -99,9 +99,6 @@
|
| 22 |
+
</ItemDefinitionGroup>
|
| 23 |
+
<ItemGroup>
|
| 24 |
+
<ClCompile Include="..\Modules\_ssl.c" />
|
| 25 |
+
- <ClCompile Include="$(opensslIncludeDir)\applink.c">
|
| 26 |
+
- <PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;$(PreprocessorDefinitions)</PreprocessorDefinitions>
|
| 27 |
+
- </ClCompile>
|
| 28 |
+
</ItemGroup>
|
| 29 |
+
<ItemGroup>
|
| 30 |
+
<ResourceCompile Include="..\PC\python_nt.rc" />
|
| 31 |
+
Index: CPython/PCbuild/_ssl.vcxproj.filters
|
| 32 |
+
===================================================================
|
| 33 |
+
--- CPython.orig/PCbuild/_ssl.vcxproj.filters 2023-12-14 17:35:21.991951190 -0600
|
| 34 |
+
+++ CPython/PCbuild/_ssl.vcxproj.filters 2023-12-14 17:40:20.047676583 -0600
|
| 35 |
+
@@ -12,9 +12,6 @@
|
| 36 |
+
<ClCompile Include="..\Modules\_ssl.c">
|
| 37 |
+
<Filter>Source Files</Filter>
|
| 38 |
+
</ClCompile>
|
| 39 |
+
- <ClCompile Include="$(opensslIncludeDir)\applink.c">
|
| 40 |
+
- <Filter>Source Files</Filter>
|
| 41 |
+
- </ClCompile>
|
| 42 |
+
</ItemGroup>
|
| 43 |
+
<ItemGroup>
|
| 44 |
+
<ResourceCompile Include="..\PC\python_nt.rc">
|
| 45 |
+
Index: CPython/PCbuild/openssl.props
|
| 46 |
+
===================================================================
|
| 47 |
+
--- CPython.orig/PCbuild/openssl.props 2023-12-14 17:40:12.223644781 -0600
|
| 48 |
+
+++ CPython/PCbuild/openssl.props 2023-12-14 17:40:20.047843251 -0600
|
| 49 |
+
@@ -2,10 +2,10 @@
|
| 50 |
+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
| 51 |
+
<ItemDefinitionGroup>
|
| 52 |
+
<ClCompile>
|
| 53 |
+
- <AdditionalIncludeDirectories>$(opensslIncludeDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
| 54 |
+
+ <AdditionalIncludeDirectories>$(condaDir)include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
| 55 |
+
</ClCompile>
|
| 56 |
+
<Link>
|
| 57 |
+
- <AdditionalLibraryDirectories>$(opensslOutDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
| 58 |
+
+ <AdditionalLibraryDirectories>$(condaDir)lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
| 59 |
+
<AdditionalDependencies>ws2_32.lib;libcrypto.lib;libssl.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
| 60 |
+
</Link>
|
| 61 |
+
</ItemDefinitionGroup>
|
| 62 |
+
diff --git a/PCbuild/openssl.props b/PCbuild/openssl.props
|
| 63 |
+
index a4186f0..ca2989e 100644
|
| 64 |
+
--- a/PCbuild/openssl.props
|
| 65 |
+
+++ b/PCbuild/openssl.props
|
| 66 |
+
@@ -21,14 +21,6 @@
|
| 67 |
+
<_SSLDLL Include="$(opensslOutDir)\libssl$(_DLLSuffix).dll" />
|
| 68 |
+
<_SSLDLL Include="$(opensslOutDir)\libssl$(_DLLSuffix).pdb" />
|
| 69 |
+
</ItemGroup>
|
| 70 |
+
- <Target Name="_CopySSLDLL"
|
| 71 |
+
- Inputs="@(_SSLDLL)"
|
| 72 |
+
- Outputs="@(_SSLDLL->'$(OutDir)%(Filename)%(Extension)')"
|
| 73 |
+
- Condition="$(SkipCopySSLDLL) == ''"
|
| 74 |
+
- AfterTargets="Build">
|
| 75 |
+
- <Copy SourceFiles="@(_SSLDLL)" DestinationFolder="$(OutDir)" />
|
| 76 |
+
- </Target>
|
| 77 |
+
- <Target Name="_CleanSSLDLL" Condition="$(SkipCopySSLDLL) == ''" BeforeTargets="Clean">
|
| 78 |
+
- <Delete Files="@(_SSLDLL->'$(OutDir)%(Filename)%(Extension)')" TreatErrorsAsWarnings="true" />
|
| 79 |
+
+ <Target Name="_DummyTarget">
|
| 80 |
+
</Target>
|
| 81 |
+
</Project>
|
| 82 |
+
|
| 83 |
+
Index: CPython/PCbuild/openssl.vcxproj
|
| 84 |
+
===================================================================
|
| 85 |
+
--- CPython.orig/PCbuild/openssl.vcxproj 2023-12-14 17:40:12.224467080 -0600
|
| 86 |
+
+++ CPython/PCbuild/openssl.vcxproj 2023-12-14 17:40:20.048039336 -0600
|
| 87 |
+
@@ -60,64 +60,8 @@
|
| 88 |
+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
| 89 |
+
<Import Project="pyproject.props" />
|
| 90 |
+
|
| 91 |
+
- <PropertyGroup>
|
| 92 |
+
- <IntDir>$(opensslDir)\tmp$(Bitness)dll</IntDir>
|
| 93 |
+
- <OutDir>$(opensslOutDir)</OutDir>
|
| 94 |
+
- <NMakeBuildCommandLine>setlocal
|
| 95 |
+
-set VCINSTALLDIR=$(VCInstallDir)
|
| 96 |
+
-if not exist "$(IntDir.TrimEnd('\'))" mkdir "$(IntDir.TrimEnd('\'))"
|
| 97 |
+
-cd /D "$(IntDir.TrimEnd('\'))"
|
| 98 |
+
-$(Perl) "$(opensslDir)\configure" $(OpenSSLPlatform) no-asm
|
| 99 |
+
-nmake
|
| 100 |
+
-</NMakeBuildCommandLine>
|
| 101 |
+
- </PropertyGroup>
|
| 102 |
+
-
|
| 103 |
+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
| 104 |
+
|
| 105 |
+
- <Target Name="_PatchUplink" BeforeTargets="Build">
|
| 106 |
+
- <PropertyGroup>
|
| 107 |
+
- <Uplink>$(opensslDir)\ms\uplink.c</Uplink>
|
| 108 |
+
- <BeforePatch>((h = GetModuleHandle(NULL)) == NULL)</BeforePatch>
|
| 109 |
+
- <AfterPatch>((h = GetModuleHandleA("_ssl.pyd")) == NULL) if ((h = GetModuleHandleA("_ssl_d.pyd")) == NULL) if ((h = GetModuleHandle(NULL)) == NULL /*patched*/)</AfterPatch>
|
| 110 |
+
- </PropertyGroup>
|
| 111 |
+
- <Error Text="Cannot find $(Uplink)" Condition="!Exists($(Uplink))" />
|
| 112 |
+
- <PropertyGroup>
|
| 113 |
+
- <_Original>$([System.IO.File]::ReadAllText($(Uplink)))</_Original>
|
| 114 |
+
- <_Patched>$(_Original.Replace($(BeforePatch), $(AfterPatch)))</_Patched>
|
| 115 |
+
- <IsPatched>false</IsPatched>
|
| 116 |
+
- <IsPatched Condition="$(_Patched) == $(_Original)">true</IsPatched>
|
| 117 |
+
- </PropertyGroup>
|
| 118 |
+
- <Message Text="$(Uplink) is already patched" Importance="normal" Condition="$(IsPatched)" />
|
| 119 |
+
- <Message Text="Patching $(Uplink)" Importance="high" Condition="!$(IsPatched)" />
|
| 120 |
+
- <WriteLinesToFile File="$(Uplink)"
|
| 121 |
+
- Lines="$(_Patched)"
|
| 122 |
+
- Overwrite="true"
|
| 123 |
+
- Encoding="ASCII"
|
| 124 |
+
- Condition="!$(IsPatched)" />
|
| 125 |
+
- </Target>
|
| 126 |
+
-
|
| 127 |
+
- <Target Name="_CopyToOutput" AfterTargets="Build">
|
| 128 |
+
- <ItemGroup>
|
| 129 |
+
- <_Built Include="$(opensslDir)\LICENSE" />
|
| 130 |
+
- <_Built Include="$(IntDir)\libcrypto.lib;$(IntDir)\libcrypto-*.dll;$(IntDir)\libcrypto-*.pdb" />
|
| 131 |
+
- <_Built Include="$(IntDir)\libssl.lib;$(IntDir)\libssl-*.dll;$(IntDir)\libssl-*.pdb" />
|
| 132 |
+
- <_AppLink Include="$(opensslDir)\ms\applink.c" />
|
| 133 |
+
- <_Include Include="$(opensslDir)\Include\openssl\*.h" />
|
| 134 |
+
- <_Include Include="$(IntDir)\include\openssl\*.h" />
|
| 135 |
+
- </ItemGroup>
|
| 136 |
+
- <MakeDir Directories="$(opensslOutDir)\include\openssl" />
|
| 137 |
+
- <Copy SourceFiles="@(_Built)" DestinationFolder="$(opensslOutDir)" />
|
| 138 |
+
- <Copy SourceFiles="@(_AppLink)" DestinationFolder="$(opensslOutDir)\include" />
|
| 139 |
+
- <Copy SourceFiles="@(_Include)" DestinationFolder="$(opensslOutDir)\include\openssl" />
|
| 140 |
+
- </Target>
|
| 141 |
+
-
|
| 142 |
+
- <Target Name="SignFiles" AfterTargets="Build" Condition="$(_SignCommand) != ''">
|
| 143 |
+
- <ItemGroup>
|
| 144 |
+
- <FilesToSign Include="$(opensslOutDir)\lib*.dll" />
|
| 145 |
+
- </ItemGroup>
|
| 146 |
+
- <Exec Command="$(_SignCommand) %(FilesToSign.FullPath)" ContinueOnError="true" />
|
| 147 |
+
- </Target>
|
| 148 |
+
-
|
| 149 |
+
<Target Name="Clean" />
|
| 150 |
+
<Target Name="CleanAll">
|
| 151 |
+
<Delete Files="$(TargetPath);$(BuildPath)$(tclDLLName)" />
|
| 152 |
+
Index: CPython/PCbuild/python.props
|
| 153 |
+
===================================================================
|
| 154 |
+
--- CPython.orig/PCbuild/python.props 2023-12-14 17:40:20.048323797 -0600
|
| 155 |
+
+++ CPython/PCbuild/python.props 2023-12-14 17:44:29.935690032 -0600
|
| 156 |
+
@@ -63,22 +63,23 @@
|
| 157 |
+
<ExternalsDir Condition="$(ExternalsDir) == ''">$(EXTERNALS_DIR)</ExternalsDir>
|
| 158 |
+
<ExternalsDir Condition="$(ExternalsDir) == ''">$([System.IO.Path]::GetFullPath(`$(PySourcePath)externals`))</ExternalsDir>
|
| 159 |
+
<ExternalsDir Condition="!HasTrailingSlash($(ExternalsDir))">$(ExternalsDir)\</ExternalsDir>
|
| 160 |
+
+ <condaDir>$(LIBRARY_PREFIX)\</condaDir>
|
| 161 |
+
</PropertyGroup>
|
| 162 |
+
|
| 163 |
+
<Import Project="$(ExternalProps)" Condition="$(ExternalProps) != '' and Exists('$(ExternalProps)')" />
|
| 164 |
+
|
| 165 |
+
<PropertyGroup>
|
| 166 |
+
- <sqlite3Dir Condition="$(sqlite3Dir) == ''">$(ExternalsDir)sqlite-3.45.1.0\</sqlite3Dir>
|
| 167 |
+
- <bz2Dir Condition="$(bz2Dir) == ''">$(ExternalsDir)bzip2-1.0.8\</bz2Dir>
|
| 168 |
+
- <lzmaDir Condition="$(lzmaDir) == ''">$(ExternalsDir)xz-5.2.5\</lzmaDir>
|
| 169 |
+
- <libffiDir Condition="$(libffiDir) == ''">$(ExternalsDir)libffi-3.4.4\</libffiDir>
|
| 170 |
+
- <libffiOutDir Condition="$(libffiOutDir) == ''">$(libffiDir)$(ArchName)\</libffiOutDir>
|
| 171 |
+
- <libffiIncludeDir Condition="$(libffiIncludeDir) == ''">$(libffiOutDir)include</libffiIncludeDir>
|
| 172 |
+
- <opensslDir Condition="$(opensslDir) == ''">$(ExternalsDir)openssl-3.0.15\</opensslDir>
|
| 173 |
+
- <opensslOutDir Condition="$(opensslOutDir) == ''">$(ExternalsDir)openssl-bin-3.0.15\$(ArchName)\</opensslOutDir>
|
| 174 |
+
- <opensslIncludeDir Condition="$(opensslIncludeDir) == ''">$(opensslOutDir)include</opensslIncludeDir>
|
| 175 |
+
+ <!-- sqlite3Dir Condition="$(sqlite3Dir) == ''">$(ExternalsDir)sqlite-3.45.1.0\</sqlite3Dir> -->
|
| 176 |
+
+ <!-- bz2Dir Condition="$(bz2Dir) == ''">$(ExternalsDir)bzip2-1.0.8\</bz2Dir> -->
|
| 177 |
+
+ <!-- lzmaDir Condition="$(lzmaDir) == ''">$(ExternalsDir)xz-5.2.5\</lzmaDir> -->
|
| 178 |
+
+ <!-- libffiDir Condition="$(libffiDir) == ''">$(ExternalsDir)libffi-3.4.4\</libffiDir> -->
|
| 179 |
+
+ <!-- libffiOutDir Condition="$(libffiOutDir) == ''">$(libffiDir)$(ArchName)\</libffiOutDir> -->
|
| 180 |
+
+ <!-- libffiIncludeDir Condition="$(libffiIncludeDir) == ''">$(libffiOutDir)include</libffiIncludeDir> -->
|
| 181 |
+
+ <!-- opensslDir Condition="$(opensslDir) == ''">$(ExternalsDir)openssl-3.0.13\</opensslDir> -->
|
| 182 |
+
+ <!-- opensslOutDir Condition="$(opensslOutDir) == ''">$(ExternalsDir)openssl-bin-3.0.13\$(ArchName)\</opensslOutDir> -->
|
| 183 |
+
+ <!-- opensslIncludeDir Condition="$(opensslIncludeDir) == ''">$(opensslOutDir)include</opensslIncludeDir> -->
|
| 184 |
+
<nasmDir Condition="$(nasmDir) == ''">$(ExternalsDir)\nasm-2.11.06\</nasmDir>
|
| 185 |
+
- <zlibDir Condition="$(zlibDir) == ''">$(ExternalsDir)\zlib-1.3.1\</zlibDir>
|
| 186 |
+
+ <!-- <zlibDir Condition="$(zlibDir) == ''">$(ExternalsDir)\zlib-1.3.1\</zlibDir> -->
|
| 187 |
+
</PropertyGroup>
|
| 188 |
+
|
| 189 |
+
<PropertyGroup>
|
| 190 |
+
Index: CPython/PCbuild/python.vcxproj
|
| 191 |
+
===================================================================
|
| 192 |
+
--- CPython.orig/PCbuild/python.vcxproj 2023-12-14 17:40:12.226076385 -0600
|
| 193 |
+
+++ CPython/PCbuild/python.vcxproj 2023-12-14 17:40:20.048838759 -0600
|
| 194 |
+
@@ -106,6 +106,9 @@
|
| 195 |
+
</ItemGroup>
|
| 196 |
+
<ItemGroup>
|
| 197 |
+
<ClCompile Include="..\Programs\python.c" />
|
| 198 |
+
+ <ClCompile Include="$(condaDir)include\openssl\applink.c">
|
| 199 |
+
+ <PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;$(PreprocessorDefinitions)</PreprocessorDefinitions>
|
| 200 |
+
+ </ClCompile>
|
| 201 |
+
</ItemGroup>
|
| 202 |
+
<ItemGroup>
|
| 203 |
+
<ProjectReference Include="pythoncore.vcxproj">
|
| 204 |
+
Index: CPython/PCbuild/pythonw.vcxproj
|
| 205 |
+
===================================================================
|
| 206 |
+
--- CPython.orig/PCbuild/pythonw.vcxproj 2023-12-14 17:40:12.226674890 -0600
|
| 207 |
+
+++ CPython/PCbuild/pythonw.vcxproj 2023-12-14 17:40:20.049048886 -0600
|
| 208 |
+
@@ -98,6 +98,9 @@
|
| 209 |
+
</ItemGroup>
|
| 210 |
+
<ItemGroup>
|
| 211 |
+
<ClCompile Include="..\PC\WinMain.c" />
|
| 212 |
+
+ <ClCompile Include="$(condaDir)include\openssl\applink.c">
|
| 213 |
+
+ <PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;$(PreprocessorDefinitions)</PreprocessorDefinitions>
|
| 214 |
+
+ </ClCompile>
|
| 215 |
+
</ItemGroup>
|
| 216 |
+
<ItemGroup>
|
| 217 |
+
<ProjectReference Include="pythoncore.vcxproj">
|
docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/patches/0011-Unvendor-sqlite3.patch
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
From 04c5f33620723af188539ac03c3cd464b9297edf Mon Sep 17 00:00:00 2001
|
| 2 |
+
From: Nehal J Wani <nehaljw.kkd1@gmail.com>
|
| 3 |
+
Date: Tue, 5 Oct 2021 12:42:06 -0700
|
| 4 |
+
Subject: [PATCH 10/25] Unvendor sqlite3
|
| 5 |
+
|
| 6 |
+
---
|
| 7 |
+
PCbuild/_sqlite3.vcxproj | 11 +++++------
|
| 8 |
+
PCbuild/pcbuild.sln | 2 --
|
| 9 |
+
PCbuild/sqlite3.vcxproj | 12 ++++++------
|
| 10 |
+
3 files changed, 11 insertions(+), 14 deletions(-)
|
| 11 |
+
|
| 12 |
+
diff --git a/PCbuild/_sqlite3.vcxproj b/PCbuild/_sqlite3.vcxproj
|
| 13 |
+
index 57c7413671..4735477f00 100644
|
| 14 |
+
--- a/PCbuild/_sqlite3.vcxproj
|
| 15 |
+
+++ b/PCbuild/_sqlite3.vcxproj
|
| 16 |
+
@@ -93,9 +93,12 @@
|
| 17 |
+
</PropertyGroup>
|
| 18 |
+
<ItemDefinitionGroup>
|
| 19 |
+
<ClCompile>
|
| 20 |
+
- <AdditionalIncludeDirectories>$(sqlite3Dir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
| 21 |
+
+ <AdditionalIncludeDirectories>$(condaDir)\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
| 22 |
+
<PreprocessorDefinitions>PY_SQLITE_HAVE_SERIALIZE;PY_SQLITE_ENABLE_LOAD_EXTENSION;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
| 23 |
+
</ClCompile>
|
| 24 |
+
+ <Link>
|
| 25 |
+
+ <AdditionalDependencies>$(condaDir)\lib\sqlite3.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
| 26 |
+
+ </Link>
|
| 27 |
+
</ItemDefinitionGroup>
|
| 28 |
+
<ItemGroup>
|
| 29 |
+
<ClInclude Include="..\Modules\_sqlite\connection.h" />
|
| 30 |
+
@@ -127,12 +130,8 @@
|
| 31 |
+
<Project>{cf7ac3d1-e2df-41d2-bea6-1e2556cdea26}</Project>
|
| 32 |
+
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
|
| 33 |
+
</ProjectReference>
|
| 34 |
+
- <ProjectReference Include="sqlite3.vcxproj">
|
| 35 |
+
- <Project>{a1a295e5-463c-437f-81ca-1f32367685da}</Project>
|
| 36 |
+
- <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
|
| 37 |
+
- </ProjectReference>
|
| 38 |
+
</ItemGroup>
|
| 39 |
+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
| 40 |
+
<ImportGroup Label="ExtensionTargets">
|
| 41 |
+
</ImportGroup>
|
| 42 |
+
-</Project>
|
| 43 |
+
|
| 44 |
+
+</Project>
|
| 45 |
+
diff --git a/PCbuild/pcbuild.sln b/PCbuild/pcbuild.sln
|
| 46 |
+
index 3629a8508a..94148c9ee3 100644
|
| 47 |
+
--- a/PCbuild/pcbuild.sln
|
| 48 |
+
+++ b/PCbuild/pcbuild.sln
|
| 49 |
+
@@ -58,8 +58,6 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "pyexpat", "pyexpat.vcxproj"
|
| 50 |
+
EndProject
|
| 51 |
+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "_hashlib", "_hashlib.vcxproj", "{447F05A8-F581-4CAC-A466-5AC7936E207E}"
|
| 52 |
+
EndProject
|
| 53 |
+
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sqlite3", "sqlite3.vcxproj", "{A1A295E5-463C-437F-81CA-1F32367685DA}"
|
| 54 |
+
-EndProject
|
| 55 |
+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "_multiprocessing", "_multiprocessing.vcxproj", "{9E48B300-37D1-11DD-8C41-005056C00008}"
|
| 56 |
+
EndProject
|
| 57 |
+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "python3dll", "python3dll.vcxproj", "{885D4898-D08D-4091-9C40-C700CFE3FC5A}"
|
| 58 |
+
diff --git a/PCbuild/sqlite3.vcxproj b/PCbuild/sqlite3.vcxproj
|
| 59 |
+
index c502d51833..c1ff0c9a08 100644
|
| 60 |
+
--- a/PCbuild/sqlite3.vcxproj
|
| 61 |
+
+++ b/PCbuild/sqlite3.vcxproj
|
| 62 |
+
@@ -88,12 +88,12 @@
|
| 63 |
+
<PropertyGroup Label="UserMacros" />
|
| 64 |
+
<PropertyGroup>
|
| 65 |
+
<_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
|
| 66 |
+
- <_SqliteVersion>$([System.Text.RegularExpressions.Regex]::Match(`$(sqlite3Dir)`, `((\d+)\.(\d+)\.(\d+)\.(\d+))\\?$`).Groups)</_SqliteVersion>
|
| 67 |
+
- <SqliteVersion>$(_SqliteVersion.Split(`;`)[1])</SqliteVersion>
|
| 68 |
+
- <SqliteMajorVersion>$(_SqliteVersion.Split(`;`)[2])</SqliteMajorVersion>
|
| 69 |
+
- <SqliteMinorVersion>$(_SqliteVersion.Split(`;`)[3])</SqliteMinorVersion>
|
| 70 |
+
- <SqliteMicroVersion>$(_SqliteVersion.Split(`;`)[4])</SqliteMicroVersion>
|
| 71 |
+
- <SqlitePatchVersion>$(_SqliteVersion.Split(`;`)[5])</SqlitePatchVersion>
|
| 72 |
+
+ <_SqliteVersion>$(SQLITE3_VERSION)</_SqliteVersion>
|
| 73 |
+
+ <SqliteVersion>$(_SqliteVersion)</SqliteVersion>
|
| 74 |
+
+ <SqliteMajorVersion>$(_SqliteVersion.Split(`.`)[1])</SqliteMajorVersion>
|
| 75 |
+
+ <SqliteMinorVersion>$(_SqliteVersion.Split(`.`)[2])</SqliteMinorVersion>
|
| 76 |
+
+ <SqliteMicroVersion>$(_SqliteVersion.Split(`.`)[3])</SqliteMicroVersion>
|
| 77 |
+
+ <SqlitePatchVersion>$(_SqliteVersion.Split(`.`)[4])</SqlitePatchVersion>
|
| 78 |
+
</PropertyGroup>
|
| 79 |
+
<ItemDefinitionGroup>
|
| 80 |
+
<ClCompile>
|
| 81 |
+
--
|
| 82 |
+
2.30.2
|
| 83 |
+
|
docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/patches/0012-Use-ranlib-from-env-if-env-variable-is-set.patch
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
From 1ab561cd33086ec92b20513ba8c2384f97cc899a Mon Sep 17 00:00:00 2001
|
| 2 |
+
From: Isuru Fernando <isuruf@gmail.com>
|
| 3 |
+
Date: Sun, 3 Nov 2019 15:09:45 -0600
|
| 4 |
+
Subject: [PATCH 13/25] Use ranlib from env if env variable is set
|
| 5 |
+
|
| 6 |
+
---
|
| 7 |
+
Lib/distutils/sysconfig.py | 3 +++
|
| 8 |
+
1 file changed, 3 insertions(+)
|
| 9 |
+
|
| 10 |
+
diff --git a/Lib/distutils/sysconfig.py b/Lib/distutils/sysconfig.py
|
| 11 |
+
index 03b8558419..00133ded58 100644
|
| 12 |
+
--- a/Lib/distutils/sysconfig.py
|
| 13 |
+
+++ b/Lib/distutils/sysconfig.py
|
| 14 |
+
@@ -258,6 +258,9 @@ def customize_compiler(compiler):
|
| 15 |
+
linker_exe=cc,
|
| 16 |
+
archiver=archiver)
|
| 17 |
+
|
| 18 |
+
+ if 'RANLIB' in os.environ and 'ranlib' in compiler.executables:
|
| 19 |
+
+ compiler.set_executables(ranlib=os.environ['RANLIB'])
|
| 20 |
+
+
|
| 21 |
+
compiler.shared_lib_extension = shlib_suffix
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
--
|
| 25 |
+
2.32.1 (Apple Git-133)
|
| 26 |
+
|
docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/patches/0013-Add-CondaEcosystemModifyDllSearchPath.patch
ADDED
|
@@ -0,0 +1,158 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
From b2dd05cf1aede0820b2547fd3ec2805a111cbd67 Mon Sep 17 00:00:00 2001
|
| 2 |
+
From: Ray Donnelly <mingw.android@gmail.com>
|
| 3 |
+
Date: Tue, 24 Dec 2019 18:37:17 +0100
|
| 4 |
+
Subject: [PATCH 14/25] Add CondaEcosystemModifyDllSearchPath()
|
| 5 |
+
|
| 6 |
+
The python interpreter is modifed so that it works as if the python interpreter
|
| 7 |
+
was called with the following conda directories.
|
| 8 |
+
|
| 9 |
+
os.add_dll_directory(join(sys.prefix, 'bin'))
|
| 10 |
+
os.add_dll_directory(join(sys.prefix, 'Scripts'))
|
| 11 |
+
os.add_dll_directory(join(sys.prefix, 'Library', 'bin'))
|
| 12 |
+
os.add_dll_directory(join(sys.prefix, 'Library', 'usr', 'bin'))
|
| 13 |
+
os.add_dll_directory(join(sys.prefix, 'Library', 'mingw-w64', 'bin'))
|
| 14 |
+
|
| 15 |
+
Search order
|
| 16 |
+
- The directory that contains the DLL (if looking for a dependency)
|
| 17 |
+
- Application (python.exe) directory
|
| 18 |
+
- Directories added with os.add_dll_directory
|
| 19 |
+
- The 5 conda directories
|
| 20 |
+
- C:\Windows\System32
|
| 21 |
+
|
| 22 |
+
Note that the default behaviour changed in conda python 3.10 to
|
| 23 |
+
make os.add_dll_directory work in user code.
|
| 24 |
+
|
| 25 |
+
Note that in conda python <3.11, there was an option
|
| 26 |
+
CONDA_DLL_SEARCH_MODIFICATION=1 to add directories in PATH to the search
|
| 27 |
+
order, but this was deprecated in 3.10 and removed in 3.11 in favour of using
|
| 28 |
+
AddDllDirectory
|
| 29 |
+
|
| 30 |
+
Co-authored-by: Isuru Fernando <isuruf@gmail.com>
|
| 31 |
+
---
|
| 32 |
+
Python/pylifecycle.c | 96 ++++++++++++++++++++++++++++++++++++++++++++
|
| 33 |
+
1 file changed, 96 insertions(+)
|
| 34 |
+
|
| 35 |
+
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c
|
| 36 |
+
index 960a38aebe..a05002b904 100644
|
| 37 |
+
--- a/Python/pylifecycle.c
|
| 38 |
+
+++ b/Python/pylifecycle.c
|
| 39 |
+
@@ -53,6 +53,10 @@ extern void _PyIO_Fini(void);
|
| 40 |
+
#ifdef MS_WINDOWS
|
| 41 |
+
# undef BYTE
|
| 42 |
+
# include "windows.h"
|
| 43 |
+
+# include <shlwapi.h>
|
| 44 |
+
+# include <string.h>
|
| 45 |
+
+# include <malloc.h>
|
| 46 |
+
+# include <libloaderapi.h>
|
| 47 |
+
|
| 48 |
+
extern PyTypeObject PyWindowsConsoleIO_Type;
|
| 49 |
+
# define PyWindowsConsoleIO_Check(op) \
|
| 50 |
+
@@ -105,6 +109,94 @@ __attribute__ ((section (".PyRuntime")))
|
| 51 |
+
= _PyRuntimeState_INIT;
|
| 52 |
+
_Py_COMP_DIAG_POP
|
| 53 |
+
|
| 54 |
+
+#ifdef MS_WINDOWS
|
| 55 |
+
+/*
|
| 56 |
+
+ This function will modify the DLL search path so that <PREFIX>/Library\bin
|
| 57 |
+
+ and other conda PATHS are added to the front of the DLL search path.
|
| 58 |
+
+*/
|
| 59 |
+
+
|
| 60 |
+
+#if !defined(LOAD_LIBRARY_SEARCH_DEFAULT_DIRS)
|
| 61 |
+
+#define LOAD_LIBRARY_SEARCH_DEFAULT_DIRS 0x00001000
|
| 62 |
+
+#endif
|
| 63 |
+
+
|
| 64 |
+
+typedef void (WINAPI *ADD)(PCWSTR NewDirectory);
|
| 65 |
+
+static ADD pAddDllDirectory = NULL;
|
| 66 |
+
+typedef struct
|
| 67 |
+
+{
|
| 68 |
+
+ wchar_t *p_relative;
|
| 69 |
+
+ wchar_t *p_name;
|
| 70 |
+
+} CONDA_PATH;
|
| 71 |
+
+
|
| 72 |
+
+#define NUM_CONDA_PATHS 5
|
| 73 |
+
+
|
| 74 |
+
+static CONDA_PATH condaPaths[NUM_CONDA_PATHS] =
|
| 75 |
+
+{
|
| 76 |
+
+ {L"Library\\mingw-w64\\bin", NULL},
|
| 77 |
+
+ {L"Library\\usr\\bin", NULL},
|
| 78 |
+
+ {L"Library\\bin", NULL},
|
| 79 |
+
+ {L"Scripts", NULL},
|
| 80 |
+
+ {L"bin", NULL}
|
| 81 |
+
+};
|
| 82 |
+
+static wchar_t sv_dll_dirname[1024];
|
| 83 |
+
+
|
| 84 |
+
+int CondaEcosystemModifyDllSearchPath_Init()
|
| 85 |
+
+{
|
| 86 |
+
+ int debug_it = _wgetenv(L"CONDA_DLL_SEARCH_MODIFICATION_DEBUG") ? 1 : 0;
|
| 87 |
+
+ wchar_t* enable = _wgetenv(L"CONDA_DLL_SEARCH_MODIFICATION_ENABLE");
|
| 88 |
+
+ int res = 0;
|
| 89 |
+
+ long long j;
|
| 90 |
+
+ CONDA_PATH *p_conda_path;
|
| 91 |
+
+ HMODULE dll_handle = NULL;
|
| 92 |
+
+
|
| 93 |
+
+ if (pAddDllDirectory == NULL)
|
| 94 |
+
+ {
|
| 95 |
+
+ pAddDllDirectory = (ADD)GetProcAddress(GetModuleHandle(TEXT("kernel32.dll")), "AddDllDirectory");
|
| 96 |
+
+
|
| 97 |
+
+ /* Determine sv_dll_dirname */
|
| 98 |
+
+ if (GetModuleHandleEx(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS | GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT,
|
| 99 |
+
+ (LPCSTR) &CondaEcosystemModifyDllSearchPath_Init, &dll_handle) == 0)
|
| 100 |
+
+ {
|
| 101 |
+
+ // Getting the pythonxx.dll path failed. Fall back to relative path of python.exe
|
| 102 |
+
+ // assuming that the executable that is running this code is python.exe
|
| 103 |
+
+ dll_handle = NULL;
|
| 104 |
+
+ }
|
| 105 |
+
+ GetModuleFileNameW(dll_handle, &sv_dll_dirname[0], sizeof(sv_dll_dirname)/sizeof(sv_dll_dirname[0])-1);
|
| 106 |
+
+ sv_dll_dirname[sizeof(sv_dll_dirname)/sizeof(sv_dll_dirname[0])-1] = L'\0';
|
| 107 |
+
+ if (wcsrchr(sv_dll_dirname, L'\\'))
|
| 108 |
+
+ *wcsrchr(sv_dll_dirname, L'\\') = L'\0';
|
| 109 |
+
+
|
| 110 |
+
+ for (p_conda_path = &condaPaths[0]; p_conda_path < &condaPaths[NUM_CONDA_PATHS]; ++p_conda_path)
|
| 111 |
+
+ {
|
| 112 |
+
+ size_t n_chars_dll_dirname = wcslen(sv_dll_dirname);
|
| 113 |
+
+ size_t n_chars_p_relative = wcslen(p_conda_path->p_relative);
|
| 114 |
+
+ p_conda_path->p_name = malloc(sizeof(wchar_t) * (n_chars_dll_dirname + n_chars_p_relative + 2));
|
| 115 |
+
+ wcsncpy(p_conda_path->p_name, sv_dll_dirname, n_chars_dll_dirname+1);
|
| 116 |
+
+ wcsncat(p_conda_path->p_name, L"\\", 2);
|
| 117 |
+
+ wcsncat(p_conda_path->p_name, p_conda_path->p_relative, n_chars_p_relative+1);
|
| 118 |
+
+ }
|
| 119 |
+
+
|
| 120 |
+
+ }
|
| 121 |
+
+
|
| 122 |
+
+ if (pAddDllDirectory == NULL)
|
| 123 |
+
+ {
|
| 124 |
+
+ if (debug_it)
|
| 125 |
+
+ fwprintf(stderr, L"CondaEcosystemModifyDllSearchPath() :: WARNING :: Please install KB2533623 from http://go.microsoft.com/fwlink/p/?linkid=217865\n"\
|
| 126 |
+
+ L"CondaEcosystemModifyDllSearchPath() :: WARNING :: to improve conda ecosystem DLL isolation");
|
| 127 |
+
+ res = 2;
|
| 128 |
+
+ }
|
| 129 |
+
+ else {
|
| 130 |
+
+ for (j = NUM_CONDA_PATHS-1, p_conda_path = &condaPaths[NUM_CONDA_PATHS-1]; j > -1; --j, --p_conda_path)
|
| 131 |
+
+ {
|
| 132 |
+
+ if (debug_it)
|
| 133 |
+
+ fwprintf(stderr, L"CondaEcosystemModifyDllSearchPath() :: AddDllDirectory(%ls - ExePrefix)\n", p_conda_path->p_name);
|
| 134 |
+
+ pAddDllDirectory(p_conda_path->p_name);
|
| 135 |
+
+ }
|
| 136 |
+
+ }
|
| 137 |
+
+ return res;
|
| 138 |
+
+}
|
| 139 |
+
+
|
| 140 |
+
+#endif
|
| 141 |
+
+
|
| 142 |
+
static int runtime_initialized = 0;
|
| 143 |
+
|
| 144 |
+
PyStatus
|
| 145 |
+
@@ -121,6 +213,10 @@ _PyRuntime_Initialize(void)
|
| 146 |
+
}
|
| 147 |
+
runtime_initialized = 1;
|
| 148 |
+
|
| 149 |
+
+#ifdef MS_WINDOWS
|
| 150 |
+
+ extern int CondaEcosystemModifyDllSearchPath_Init();
|
| 151 |
+
+ CondaEcosystemModifyDllSearchPath_Init();
|
| 152 |
+
+#endif
|
| 153 |
+
return _PyRuntimeState_Init(&_PyRuntime);
|
| 154 |
+
}
|
| 155 |
+
|
| 156 |
+
--
|
| 157 |
+
2.32.1 (Apple Git-133)
|
| 158 |
+
|
docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/patches/0014-Add-d1trimfile-SRC_DIR-to-make-pdbs-more-relocatable.patch
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
From 9590bacb1356b9218b21eedf24a52bb11d2f6eda Mon Sep 17 00:00:00 2001
|
| 2 |
+
From: Ray Donnelly <mingw.android@gmail.com>
|
| 3 |
+
Date: Tue, 31 Dec 2019 20:46:36 +0100
|
| 4 |
+
Subject: [PATCH 15/25] Add /d1trimfile:%SRC_DIR% to make pdbs more relocatable
|
| 5 |
+
|
| 6 |
+
---
|
| 7 |
+
Lib/distutils/_msvccompiler.py | 9 ++++++++-
|
| 8 |
+
1 file changed, 8 insertions(+), 1 deletion(-)
|
| 9 |
+
|
| 10 |
+
diff --git a/Lib/distutils/_msvccompiler.py b/Lib/distutils/_msvccompiler.py
|
| 11 |
+
index af8099a407..0b245adb30 100644
|
| 12 |
+
--- a/Lib/distutils/_msvccompiler.py
|
| 13 |
+
+++ b/Lib/distutils/_msvccompiler.py
|
| 14 |
+
@@ -346,6 +346,13 @@ def compile(self, sources,
|
| 15 |
+
# without asking the user to browse for it
|
| 16 |
+
src = os.path.abspath(src)
|
| 17 |
+
|
| 18 |
+
+ # Anaconda/conda-forge customisation, we want our pdbs to be
|
| 19 |
+
+ # relocatable:
|
| 20 |
+
+ # https://developercommunity.visualstudio.com/comments/623156/view.html
|
| 21 |
+
+ d1trimfile_opts = []
|
| 22 |
+
+ if 'SRC_DIR' in os.environ and os.path.basename(self.cc) == "cl.exe":
|
| 23 |
+
+ d1trimfile_opts.append("/d1trimfile:" + os.environ['SRC_DIR'])
|
| 24 |
+
+
|
| 25 |
+
if ext in self._c_extensions:
|
| 26 |
+
input_opt = "/Tc" + src
|
| 27 |
+
elif ext in self._cpp_extensions:
|
| 28 |
+
@@ -390,7 +397,7 @@ def compile(self, sources,
|
| 29 |
+
raise CompileError("Don't know how to compile {} to {}"
|
| 30 |
+
.format(src, obj))
|
| 31 |
+
|
| 32 |
+
- args = [self.cc] + compile_opts + pp_opts
|
| 33 |
+
+ args = [self.cc] + compile_opts + pp_opts + d1trimfile_opts
|
| 34 |
+
if add_cpp_opts:
|
| 35 |
+
args.append('/EHsc')
|
| 36 |
+
args.append(input_opt)
|
| 37 |
+
--
|
| 38 |
+
2.32.1 (Apple Git-133)
|
| 39 |
+
|
docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/patches/0015-Doing-d1trimfile.patch
ADDED
|
@@ -0,0 +1,883 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
From e8ed0e6d83c538ea1c00f1dd1f8a52af6a7e88ef Mon Sep 17 00:00:00 2001
|
| 2 |
+
From: Ray Donnelly <mingw.android@gmail.com>
|
| 3 |
+
Date: Tue, 31 Dec 2019 21:47:47 +0100
|
| 4 |
+
Subject: [PATCH 16/25] Doing d1trimfile
|
| 5 |
+
|
| 6 |
+
---
|
| 7 |
+
PCbuild/_asyncio.vcxproj | 20 ++++++++++++++++++++
|
| 8 |
+
PCbuild/_bz2.vcxproj | 4 ++++
|
| 9 |
+
PCbuild/_ctypes.vcxproj | 4 ++++
|
| 10 |
+
PCbuild/_ctypes_test.vcxproj | 20 ++++++++++++++++++++
|
| 11 |
+
PCbuild/_decimal.vcxproj | 4 ++++
|
| 12 |
+
PCbuild/_elementtree.vcxproj | 6 +++++-
|
| 13 |
+
PCbuild/_freeze_module.vcxproj | 4 ++++
|
| 14 |
+
PCbuild/_hashlib.vcxproj | 12 ++++++++++++
|
| 15 |
+
PCbuild/_lzma.vcxproj | 4 ++++
|
| 16 |
+
PCbuild/_msi.vcxproj | 12 ++++++++++++
|
| 17 |
+
PCbuild/_multiprocessing.vcxproj | 12 ++++++++++++
|
| 18 |
+
PCbuild/_overlapped.vcxproj | 12 ++++++++++++
|
| 19 |
+
PCbuild/_queue.vcxproj | 20 ++++++++++++++++++++
|
| 20 |
+
PCbuild/_socket.vcxproj | 12 ++++++++++++
|
| 21 |
+
PCbuild/_sqlite3.vcxproj | 4 ++++
|
| 22 |
+
PCbuild/_ssl.vcxproj | 12 ++++++++++++
|
| 23 |
+
PCbuild/_testbuffer.vcxproj | 20 ++++++++++++++++++++
|
| 24 |
+
PCbuild/_testcapi.vcxproj | 20 ++++++++++++++++++++
|
| 25 |
+
PCbuild/_testconsole.vcxproj | 4 ++++
|
| 26 |
+
PCbuild/_testembed.vcxproj | 4 ++++
|
| 27 |
+
PCbuild/_testimportmultiple.vcxproj | 20 ++++++++++++++++++++
|
| 28 |
+
PCbuild/_testinternalcapi.vcxproj | 20 ++++++++++++++++++++
|
| 29 |
+
PCbuild/_testmultiphase.vcxproj | 4 ++++
|
| 30 |
+
PCbuild/_tkinter.vcxproj | 4 ++++
|
| 31 |
+
PCbuild/liblzma.vcxproj | 4 ++++
|
| 32 |
+
PCbuild/pyexpat.vcxproj | 4 ++++
|
| 33 |
+
PCbuild/pylauncher.vcxproj | 4 ++++
|
| 34 |
+
PCbuild/pyshellext.vcxproj | 4 ++++
|
| 35 |
+
PCbuild/python.vcxproj | 4 ++++
|
| 36 |
+
PCbuild/python3dll.vcxproj | 4 ++++
|
| 37 |
+
PCbuild/python_uwp.vcxproj | 2 +-
|
| 38 |
+
PCbuild/pythoncore.vcxproj | 2 +-
|
| 39 |
+
PCbuild/pythonw.vcxproj | 12 ++++++++++++
|
| 40 |
+
PCbuild/pythonw_uwp.vcxproj | 2 +-
|
| 41 |
+
PCbuild/pywlauncher.vcxproj | 4 ++++
|
| 42 |
+
PCbuild/select.vcxproj | 12 ++++++++++++
|
| 43 |
+
PCbuild/unicodedata.vcxproj | 20 ++++++++++++++++++++
|
| 44 |
+
PCbuild/venvlauncher.vcxproj | 4 ++++
|
| 45 |
+
PCbuild/venvwlauncher.vcxproj | 4 ++++
|
| 46 |
+
PCbuild/winsound.vcxproj | 12 ++++++++++++
|
| 47 |
+
PCbuild/xxlimited.vcxproj | 6 ++++++
|
| 48 |
+
PCbuild/xxlimited_35.vcxproj | 6 ++++++
|
| 49 |
+
42 files changed, 364 insertions(+), 4 deletions(-)
|
| 50 |
+
|
| 51 |
+
diff --git a/PCbuild/_asyncio.vcxproj b/PCbuild/_asyncio.vcxproj
|
| 52 |
+
index ed1e1bc0a4..47d322be5f 100644
|
| 53 |
+
--- a/PCbuild/_asyncio.vcxproj
|
| 54 |
+
+++ b/PCbuild/_asyncio.vcxproj
|
| 55 |
+
@@ -91,6 +91,26 @@
|
| 56 |
+
<PropertyGroup>
|
| 57 |
+
<_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
|
| 58 |
+
</PropertyGroup>
|
| 59 |
+
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
| 60 |
+
+ <ClCompile>
|
| 61 |
+
+ <AdditionalOptions>/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 62 |
+
+ </ClCompile>
|
| 63 |
+
+ </ItemDefinitionGroup>
|
| 64 |
+
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='PGInstrument|Win32'">
|
| 65 |
+
+ <ClCompile>
|
| 66 |
+
+ <AdditionalOptions>/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 67 |
+
+ </ClCompile>
|
| 68 |
+
+ </ItemDefinitionGroup>
|
| 69 |
+
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='PGUpdate|Win32'">
|
| 70 |
+
+ <ClCompile>
|
| 71 |
+
+ <AdditionalOptions>/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 72 |
+
+ </ClCompile>
|
| 73 |
+
+ </ItemDefinitionGroup>
|
| 74 |
+
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
| 75 |
+
+ <ClCompile>
|
| 76 |
+
+ <AdditionalOptions>/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 77 |
+
+ </ClCompile>
|
| 78 |
+
+ </ItemDefinitionGroup>
|
| 79 |
+
<ItemGroup>
|
| 80 |
+
<ClCompile Include="..\Modules\_asynciomodule.c" />
|
| 81 |
+
</ItemGroup>
|
| 82 |
+
diff --git a/PCbuild/_bz2.vcxproj b/PCbuild/_bz2.vcxproj
|
| 83 |
+
index 3fe95fbf83..0402f7a9aa 100644
|
| 84 |
+
--- a/PCbuild/_bz2.vcxproj
|
| 85 |
+
+++ b/PCbuild/_bz2.vcxproj
|
| 86 |
+
@@ -97,6 +97,10 @@
|
| 87 |
+
<AdditionalIncludeDirectories>$(bz2Dir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
| 88 |
+
<PreprocessorDefinitions>WIN32;_FILE_OFFSET_BITS=64;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
| 89 |
+
<DisableSpecificWarnings>4244;4267;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
| 90 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 91 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGInstrument|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 92 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGUpdate|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 93 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 94 |
+
</ClCompile>
|
| 95 |
+
</ItemDefinitionGroup>
|
| 96 |
+
<ItemGroup>
|
| 97 |
+
diff --git a/PCbuild/_ctypes.vcxproj b/PCbuild/_ctypes.vcxproj
|
| 98 |
+
index 6ac26f1916..07a58154f7 100644
|
| 99 |
+
--- a/PCbuild/_ctypes.vcxproj
|
| 100 |
+
+++ b/PCbuild/_ctypes.vcxproj
|
| 101 |
+
@@ -95,6 +95,10 @@
|
| 102 |
+
<ItemDefinitionGroup>
|
| 103 |
+
<ClCompile>
|
| 104 |
+
<PreprocessorDefinitions>USING_MALLOC_CLOSURE_DOT_C=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
| 105 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 106 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGInstrument|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 107 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGUpdate|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 108 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 109 |
+
</ClCompile>
|
| 110 |
+
<Link>
|
| 111 |
+
<AdditionalOptions>/EXPORT:DllGetClassObject,PRIVATE /EXPORT:DllCanUnloadNow,PRIVATE %(AdditionalOptions)</AdditionalOptions>
|
| 112 |
+
diff --git a/PCbuild/_ctypes_test.vcxproj b/PCbuild/_ctypes_test.vcxproj
|
| 113 |
+
index 8a01e743a4..1ad658d5f9 100644
|
| 114 |
+
--- a/PCbuild/_ctypes_test.vcxproj
|
| 115 |
+
+++ b/PCbuild/_ctypes_test.vcxproj
|
| 116 |
+
@@ -92,6 +92,26 @@
|
| 117 |
+
<PropertyGroup>
|
| 118 |
+
<_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
|
| 119 |
+
</PropertyGroup>
|
| 120 |
+
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
| 121 |
+
+ <ClCompile>
|
| 122 |
+
+ <AdditionalOptions>/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 123 |
+
+ </ClCompile>
|
| 124 |
+
+ </ItemDefinitionGroup>
|
| 125 |
+
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='PGInstrument|Win32'">
|
| 126 |
+
+ <ClCompile>
|
| 127 |
+
+ <AdditionalOptions>/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 128 |
+
+ </ClCompile>
|
| 129 |
+
+ </ItemDefinitionGroup>
|
| 130 |
+
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='PGUpdate|Win32'">
|
| 131 |
+
+ <ClCompile>
|
| 132 |
+
+ <AdditionalOptions>/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 133 |
+
+ </ClCompile>
|
| 134 |
+
+ </ItemDefinitionGroup>
|
| 135 |
+
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
| 136 |
+
+ <ClCompile>
|
| 137 |
+
+ <AdditionalOptions>/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 138 |
+
+ </ClCompile>
|
| 139 |
+
+ </ItemDefinitionGroup>
|
| 140 |
+
<ItemGroup>
|
| 141 |
+
<ClInclude Include="..\Modules\_ctypes\_ctypes_test.h" />
|
| 142 |
+
</ItemGroup>
|
| 143 |
+
diff --git a/PCbuild/_decimal.vcxproj b/PCbuild/_decimal.vcxproj
|
| 144 |
+
index 0916f1a2d3..17a4cbfcd7 100644
|
| 145 |
+
--- a/PCbuild/_decimal.vcxproj
|
| 146 |
+
+++ b/PCbuild/_decimal.vcxproj
|
| 147 |
+
@@ -99,6 +99,10 @@
|
| 148 |
+
<PreprocessorDefinitions Condition="'$(Platform)'=='ARM64'">CONFIG_64;ANSI;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
| 149 |
+
<PreprocessorDefinitions Condition="'$(Platform)' == 'x64'">CONFIG_64;MASM;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
| 150 |
+
<AdditionalIncludeDirectories>..\Modules\_decimal;..\Modules\_decimal\libmpdec;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
| 151 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 152 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGInstrument|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 153 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGUpdate|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 154 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 155 |
+
</ClCompile>
|
| 156 |
+
</ItemDefinitionGroup>
|
| 157 |
+
<ItemGroup>
|
| 158 |
+
diff --git a/PCbuild/_elementtree.vcxproj b/PCbuild/_elementtree.vcxproj
|
| 159 |
+
index 8da5244bac..20cc09d63f 100644
|
| 160 |
+
--- a/PCbuild/_elementtree.vcxproj
|
| 161 |
+
+++ b/PCbuild/_elementtree.vcxproj
|
| 162 |
+
@@ -94,7 +94,11 @@
|
| 163 |
+
<ItemDefinitionGroup>
|
| 164 |
+
<ClCompile>
|
| 165 |
+
<AdditionalIncludeDirectories>..\Modules\expat;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
| 166 |
+
- <PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;XML_STATIC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
| 167 |
+
+ <PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;USE_PYEXPAT_CAPI;XML_STATIC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
| 168 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 169 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGInstrument|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 170 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGUpdate|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 171 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 172 |
+
</ClCompile>
|
| 173 |
+
</ItemDefinitionGroup>
|
| 174 |
+
<ItemGroup>
|
| 175 |
+
diff --git a/PCbuild/_freeze_module.vcxproj b/PCbuild/_freeze_module.vcxproj
|
| 176 |
+
index 0a74f5850a..b23ab1ba6a 100644
|
| 177 |
+
--- a/PCbuild/_freeze_module.vcxproj
|
| 178 |
+
+++ b/PCbuild/_freeze_module.vcxproj
|
| 179 |
+
@@ -91,6 +91,10 @@
|
| 180 |
+
<PreprocessorDefinitions>Py_NO_ENABLE_SHARED;Py_BUILD_CORE;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
| 181 |
+
<Optimization>Disabled</Optimization>
|
| 182 |
+
<WholeProgramOptimization>false</WholeProgramOptimization>
|
| 183 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 184 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGInstrument|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 185 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGUpdate|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 186 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 187 |
+
</ClCompile>
|
| 188 |
+
<Link>
|
| 189 |
+
<SubSystem>Console</SubSystem>
|
| 190 |
+
diff --git a/PCbuild/_hashlib.vcxproj b/PCbuild/_hashlib.vcxproj
|
| 191 |
+
index 6dad8183c5..6d3d37fdf9 100644
|
| 192 |
+
--- a/PCbuild/_hashlib.vcxproj
|
| 193 |
+
+++ b/PCbuild/_hashlib.vcxproj
|
| 194 |
+
@@ -96,6 +96,18 @@
|
| 195 |
+
<Link>
|
| 196 |
+
<AdditionalDependencies>ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
| 197 |
+
</Link>
|
| 198 |
+
+ <ClCompile>
|
| 199 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 200 |
+
+ </ClCompile>
|
| 201 |
+
+ <ClCompile>
|
| 202 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGInstrument|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 203 |
+
+ </ClCompile>
|
| 204 |
+
+ <ClCompile>
|
| 205 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGUpdate|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 206 |
+
+ </ClCompile>
|
| 207 |
+
+ <ClCompile>
|
| 208 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 209 |
+
+ </ClCompile>
|
| 210 |
+
</ItemDefinitionGroup>
|
| 211 |
+
<ItemGroup>
|
| 212 |
+
<ClCompile Include="..\Modules\_hashopenssl.c" />
|
| 213 |
+
diff --git a/PCbuild/_lzma.vcxproj b/PCbuild/_lzma.vcxproj
|
| 214 |
+
index fe076a6fc5..0565132363 100644
|
| 215 |
+
--- a/PCbuild/_lzma.vcxproj
|
| 216 |
+
+++ b/PCbuild/_lzma.vcxproj
|
| 217 |
+
@@ -95,6 +95,10 @@
|
| 218 |
+
<ClCompile>
|
| 219 |
+
<AdditionalIncludeDirectories>$(lzmaDir)src/liblzma/api;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
| 220 |
+
<PreprocessorDefinitions>WIN32;_FILE_OFFSET_BITS=64;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;LZMA_API_STATIC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
| 221 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 222 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGInstrument|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 223 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGUpdate|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 224 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 225 |
+
</ClCompile>
|
| 226 |
+
<Link>
|
| 227 |
+
<AdditionalDependencies>$(OutDir)liblzma$(PyDebugExt).lib;%(AdditionalDependencies)</AdditionalDependencies>
|
| 228 |
+
diff --git a/PCbuild/_msi.vcxproj b/PCbuild/_msi.vcxproj
|
| 229 |
+
index 720eb2931b..247ab0e915 100644
|
| 230 |
+
--- a/PCbuild/_msi.vcxproj
|
| 231 |
+
+++ b/PCbuild/_msi.vcxproj
|
| 232 |
+
@@ -96,6 +96,18 @@
|
| 233 |
+
<Link>
|
| 234 |
+
<AdditionalDependencies>cabinet.lib;msi.lib;rpcrt4.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
| 235 |
+
</Link>
|
| 236 |
+
+ <ClCompile>
|
| 237 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 238 |
+
+ </ClCompile>
|
| 239 |
+
+ <ClCompile>
|
| 240 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGInstrument|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 241 |
+
+ </ClCompile>
|
| 242 |
+
+ <ClCompile>
|
| 243 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGUpdate|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 244 |
+
+ </ClCompile>
|
| 245 |
+
+ <ClCompile>
|
| 246 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 247 |
+
+ </ClCompile>
|
| 248 |
+
</ItemDefinitionGroup>
|
| 249 |
+
<ItemGroup>
|
| 250 |
+
<ClCompile Include="..\PC\_msi.c" />
|
| 251 |
+
diff --git a/PCbuild/_multiprocessing.vcxproj b/PCbuild/_multiprocessing.vcxproj
|
| 252 |
+
index 77b6bfc8e1..3c2b651549 100644
|
| 253 |
+
--- a/PCbuild/_multiprocessing.vcxproj
|
| 254 |
+
+++ b/PCbuild/_multiprocessing.vcxproj
|
| 255 |
+
@@ -95,6 +95,18 @@
|
| 256 |
+
<Link>
|
| 257 |
+
<AdditionalDependencies>ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
| 258 |
+
</Link>
|
| 259 |
+
+ <ClCompile>
|
| 260 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 261 |
+
+ </ClCompile>
|
| 262 |
+
+ <ClCompile>
|
| 263 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGInstrument|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 264 |
+
+ </ClCompile>
|
| 265 |
+
+ <ClCompile>
|
| 266 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGUpdate|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 267 |
+
+ </ClCompile>
|
| 268 |
+
+ <ClCompile>
|
| 269 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 270 |
+
+ </ClCompile>
|
| 271 |
+
</ItemDefinitionGroup>
|
| 272 |
+
<ItemGroup>
|
| 273 |
+
<ClInclude Include="..\Modules\_multiprocessing\multiprocessing.h" />
|
| 274 |
+
diff --git a/PCbuild/_overlapped.vcxproj b/PCbuild/_overlapped.vcxproj
|
| 275 |
+
index 9e60d3b5db..95b57290f8 100644
|
| 276 |
+
--- a/PCbuild/_overlapped.vcxproj
|
| 277 |
+
+++ b/PCbuild/_overlapped.vcxproj
|
| 278 |
+
@@ -95,6 +95,18 @@
|
| 279 |
+
<Link>
|
| 280 |
+
<AdditionalDependencies>ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
| 281 |
+
</Link>
|
| 282 |
+
+ <ClCompile>
|
| 283 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 284 |
+
+ </ClCompile>
|
| 285 |
+
+ <ClCompile>
|
| 286 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGInstrument|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 287 |
+
+ </ClCompile>
|
| 288 |
+
+ <ClCompile>
|
| 289 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGUpdate|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 290 |
+
+ </ClCompile>
|
| 291 |
+
+ <ClCompile>
|
| 292 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 293 |
+
+ </ClCompile>
|
| 294 |
+
</ItemDefinitionGroup>
|
| 295 |
+
<ItemGroup>
|
| 296 |
+
<ClCompile Include="..\Modules\overlapped.c" />
|
| 297 |
+
diff --git a/PCbuild/_queue.vcxproj b/PCbuild/_queue.vcxproj
|
| 298 |
+
index 8065b23585..e46ab5a83b 100644
|
| 299 |
+
--- a/PCbuild/_queue.vcxproj
|
| 300 |
+
+++ b/PCbuild/_queue.vcxproj
|
| 301 |
+
@@ -91,6 +91,26 @@
|
| 302 |
+
<PropertyGroup>
|
| 303 |
+
<_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
|
| 304 |
+
</PropertyGroup>
|
| 305 |
+
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
| 306 |
+
+ <ClCompile>
|
| 307 |
+
+ <AdditionalOptions>/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 308 |
+
+ </ClCompile>
|
| 309 |
+
+ </ItemDefinitionGroup>
|
| 310 |
+
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='PGInstrument|Win32'">
|
| 311 |
+
+ <ClCompile>
|
| 312 |
+
+ <AdditionalOptions>/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 313 |
+
+ </ClCompile>
|
| 314 |
+
+ </ItemDefinitionGroup>
|
| 315 |
+
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='PGUpdate|Win32'">
|
| 316 |
+
+ <ClCompile>
|
| 317 |
+
+ <AdditionalOptions>/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 318 |
+
+ </ClCompile>
|
| 319 |
+
+ </ItemDefinitionGroup>
|
| 320 |
+
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
| 321 |
+
+ <ClCompile>
|
| 322 |
+
+ <AdditionalOptions>/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 323 |
+
+ </ClCompile>
|
| 324 |
+
+ </ItemDefinitionGroup>
|
| 325 |
+
<ItemGroup>
|
| 326 |
+
<ClCompile Include="..\Modules\_queuemodule.c" />
|
| 327 |
+
</ItemGroup>
|
| 328 |
+
diff --git a/PCbuild/_socket.vcxproj b/PCbuild/_socket.vcxproj
|
| 329 |
+
index 8fd75f90e7..b403828291 100644
|
| 330 |
+
--- a/PCbuild/_socket.vcxproj
|
| 331 |
+
+++ b/PCbuild/_socket.vcxproj
|
| 332 |
+
@@ -95,6 +95,18 @@
|
| 333 |
+
<Link>
|
| 334 |
+
<AdditionalDependencies>ws2_32.lib;iphlpapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
| 335 |
+
</Link>
|
| 336 |
+
+ <ClCompile>
|
| 337 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 338 |
+
+ </ClCompile>
|
| 339 |
+
+ <ClCompile>
|
| 340 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGInstrument|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 341 |
+
+ </ClCompile>
|
| 342 |
+
+ <ClCompile>
|
| 343 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGUpdate|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 344 |
+
+ </ClCompile>
|
| 345 |
+
+ <ClCompile>
|
| 346 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 347 |
+
+ </ClCompile>
|
| 348 |
+
</ItemDefinitionGroup>
|
| 349 |
+
<ItemGroup>
|
| 350 |
+
<ClInclude Include="..\Modules\socketmodule.h" />
|
| 351 |
+
diff --git a/PCbuild/_sqlite3.vcxproj b/PCbuild/_sqlite3.vcxproj
|
| 352 |
+
index 282a65cf75..5eb8dc542e 100644
|
| 353 |
+
--- a/PCbuild/_sqlite3.vcxproj
|
| 354 |
+
+++ b/PCbuild/_sqlite3.vcxproj
|
| 355 |
+
@@ -95,6 +95,10 @@
|
| 356 |
+
<ClCompile>
|
| 357 |
+
<AdditionalIncludeDirectories>$(condaDir)\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
| 358 |
+
<PreprocessorDefinitions>PY_SQLITE_HAVE_SERIALIZE;PY_SQLITE_ENABLE_LOAD_EXTENSION;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
| 359 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 360 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGInstrument|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 361 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGUpdate|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 362 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 363 |
+
</ClCompile>
|
| 364 |
+
<Link>
|
| 365 |
+
<AdditionalDependencies>$(condaDir)\lib\sqlite3.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
| 366 |
+
diff --git a/PCbuild/_ssl.vcxproj b/PCbuild/_ssl.vcxproj
|
| 367 |
+
index b2c23d5e8c..ebe4e88848 100644
|
| 368 |
+
--- a/PCbuild/_ssl.vcxproj
|
| 369 |
+
+++ b/PCbuild/_ssl.vcxproj
|
| 370 |
+
@@ -96,6 +96,18 @@
|
| 371 |
+
<Link>
|
| 372 |
+
<AdditionalDependencies>ws2_32.lib;crypt32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
| 373 |
+
</Link>
|
| 374 |
+
+ <ClCompile>
|
| 375 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 376 |
+
+ </ClCompile>
|
| 377 |
+
+ <ClCompile>
|
| 378 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGInstrument|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 379 |
+
+ </ClCompile>
|
| 380 |
+
+ <ClCompile>
|
| 381 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGUpdate|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 382 |
+
+ </ClCompile>
|
| 383 |
+
+ <ClCompile>
|
| 384 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 385 |
+
+ </ClCompile>
|
| 386 |
+
</ItemDefinitionGroup>
|
| 387 |
+
<ItemGroup>
|
| 388 |
+
<ClCompile Include="..\Modules\_ssl.c" />
|
| 389 |
+
diff --git a/PCbuild/_testbuffer.vcxproj b/PCbuild/_testbuffer.vcxproj
|
| 390 |
+
index 917d7ae50f..8c7e141eea 100644
|
| 391 |
+
--- a/PCbuild/_testbuffer.vcxproj
|
| 392 |
+
+++ b/PCbuild/_testbuffer.vcxproj
|
| 393 |
+
@@ -92,6 +92,26 @@
|
| 394 |
+
<PropertyGroup>
|
| 395 |
+
<_ProjectFileVersion>10.0.40219.1</_ProjectFileVersion>
|
| 396 |
+
</PropertyGroup>
|
| 397 |
+
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
| 398 |
+
+ <ClCompile>
|
| 399 |
+
+ <AdditionalOptions>/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 400 |
+
+ </ClCompile>
|
| 401 |
+
+ </ItemDefinitionGroup>
|
| 402 |
+
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='PGInstrument|Win32'">
|
| 403 |
+
+ <ClCompile>
|
| 404 |
+
+ <AdditionalOptions>/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 405 |
+
+ </ClCompile>
|
| 406 |
+
+ </ItemDefinitionGroup>
|
| 407 |
+
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='PGUpdate|Win32'">
|
| 408 |
+
+ <ClCompile>
|
| 409 |
+
+ <AdditionalOptions>/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 410 |
+
+ </ClCompile>
|
| 411 |
+
+ </ItemDefinitionGroup>
|
| 412 |
+
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
| 413 |
+
+ <ClCompile>
|
| 414 |
+
+ <AdditionalOptions>/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 415 |
+
+ </ClCompile>
|
| 416 |
+
+ </ItemDefinitionGroup>
|
| 417 |
+
<ItemGroup>
|
| 418 |
+
<ClCompile Include="..\Modules\_testbuffer.c" />
|
| 419 |
+
</ItemGroup>
|
| 420 |
+
diff --git a/PCbuild/_testcapi.vcxproj b/PCbuild/_testcapi.vcxproj
|
| 421 |
+
index c1a1943725..99ee2f4a41 100644
|
| 422 |
+
--- a/PCbuild/_testcapi.vcxproj
|
| 423 |
+
+++ b/PCbuild/_testcapi.vcxproj
|
| 424 |
+
@@ -92,6 +92,26 @@
|
| 425 |
+
<PropertyGroup>
|
| 426 |
+
<_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
|
| 427 |
+
</PropertyGroup>
|
| 428 |
+
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
| 429 |
+
+ <ClCompile>
|
| 430 |
+
+ <AdditionalOptions>/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 431 |
+
+ </ClCompile>
|
| 432 |
+
+ </ItemDefinitionGroup>
|
| 433 |
+
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='PGInstrument|Win32'">
|
| 434 |
+
+ <ClCompile>
|
| 435 |
+
+ <AdditionalOptions>/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 436 |
+
+ </ClCompile>
|
| 437 |
+
+ </ItemDefinitionGroup>
|
| 438 |
+
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='PGUpdate|Win32'">
|
| 439 |
+
+ <ClCompile>
|
| 440 |
+
+ <AdditionalOptions>/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 441 |
+
+ </ClCompile>
|
| 442 |
+
+ </ItemDefinitionGroup>
|
| 443 |
+
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
| 444 |
+
+ <ClCompile>
|
| 445 |
+
+ <AdditionalOptions>/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 446 |
+
+ </ClCompile>
|
| 447 |
+
+ </ItemDefinitionGroup>
|
| 448 |
+
<ItemGroup>
|
| 449 |
+
<ClCompile Include="..\Modules\_testcapimodule.c" />
|
| 450 |
+
</ItemGroup>
|
| 451 |
+
diff --git a/PCbuild/_testconsole.vcxproj b/PCbuild/_testconsole.vcxproj
|
| 452 |
+
index 5d7e14eff1..695dcb3b91 100644
|
| 453 |
+
--- a/PCbuild/_testconsole.vcxproj
|
| 454 |
+
+++ b/PCbuild/_testconsole.vcxproj
|
| 455 |
+
@@ -92,6 +92,10 @@
|
| 456 |
+
<ItemDefinitionGroup>
|
| 457 |
+
<ClCompile>
|
| 458 |
+
<PreprocessorDefinitions>_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
| 459 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 460 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGInstrument|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 461 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGUpdate|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 462 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 463 |
+
</ClCompile>
|
| 464 |
+
<Link>
|
| 465 |
+
<SubSystem>Console</SubSystem>
|
| 466 |
+
diff --git a/PCbuild/_testembed.vcxproj b/PCbuild/_testembed.vcxproj
|
| 467 |
+
index a7ea8787e0..eab72171e3 100644
|
| 468 |
+
--- a/PCbuild/_testembed.vcxproj
|
| 469 |
+
+++ b/PCbuild/_testembed.vcxproj
|
| 470 |
+
@@ -89,6 +89,10 @@
|
| 471 |
+
<ItemDefinitionGroup>
|
| 472 |
+
<ClCompile>
|
| 473 |
+
<PreprocessorDefinitions>_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
| 474 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 475 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGInstrument|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 476 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGUpdate|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 477 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 478 |
+
</ClCompile>
|
| 479 |
+
<Link>
|
| 480 |
+
<SubSystem>Console</SubSystem>
|
| 481 |
+
diff --git a/PCbuild/_testimportmultiple.vcxproj b/PCbuild/_testimportmultiple.vcxproj
|
| 482 |
+
index 6d80d5779f..951bf40e7c 100644
|
| 483 |
+
--- a/PCbuild/_testimportmultiple.vcxproj
|
| 484 |
+
+++ b/PCbuild/_testimportmultiple.vcxproj
|
| 485 |
+
@@ -92,6 +92,26 @@
|
| 486 |
+
<PropertyGroup>
|
| 487 |
+
<_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
|
| 488 |
+
</PropertyGroup>
|
| 489 |
+
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
| 490 |
+
+ <ClCompile>
|
| 491 |
+
+ <AdditionalOptions>/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 492 |
+
+ </ClCompile>
|
| 493 |
+
+ </ItemDefinitionGroup>
|
| 494 |
+
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='PGInstrument|Win32'">
|
| 495 |
+
+ <ClCompile>
|
| 496 |
+
+ <AdditionalOptions>/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 497 |
+
+ </ClCompile>
|
| 498 |
+
+ </ItemDefinitionGroup>
|
| 499 |
+
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='PGUpdate|Win32'">
|
| 500 |
+
+ <ClCompile>
|
| 501 |
+
+ <AdditionalOptions>/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 502 |
+
+ </ClCompile>
|
| 503 |
+
+ </ItemDefinitionGroup>
|
| 504 |
+
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
| 505 |
+
+ <ClCompile>
|
| 506 |
+
+ <AdditionalOptions>/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 507 |
+
+ </ClCompile>
|
| 508 |
+
+ </ItemDefinitionGroup>
|
| 509 |
+
<ItemGroup>
|
| 510 |
+
<ClCompile Include="..\Modules\_testimportmultiple.c" />
|
| 511 |
+
</ItemGroup>
|
| 512 |
+
diff --git a/PCbuild/_testinternalcapi.vcxproj b/PCbuild/_testinternalcapi.vcxproj
|
| 513 |
+
index 6c5b12cd40..d25c774913 100644
|
| 514 |
+
--- a/PCbuild/_testinternalcapi.vcxproj
|
| 515 |
+
+++ b/PCbuild/_testinternalcapi.vcxproj
|
| 516 |
+
@@ -92,6 +92,26 @@
|
| 517 |
+
<PropertyGroup>
|
| 518 |
+
<_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
|
| 519 |
+
</PropertyGroup>
|
| 520 |
+
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
| 521 |
+
+ <ClCompile>
|
| 522 |
+
+ <AdditionalOptions>/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 523 |
+
+ </ClCompile>
|
| 524 |
+
+ </ItemDefinitionGroup>
|
| 525 |
+
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='PGInstrument|Win32'">
|
| 526 |
+
+ <ClCompile>
|
| 527 |
+
+ <AdditionalOptions>/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 528 |
+
+ </ClCompile>
|
| 529 |
+
+ </ItemDefinitionGroup>
|
| 530 |
+
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='PGUpdate|Win32'">
|
| 531 |
+
+ <ClCompile>
|
| 532 |
+
+ <AdditionalOptions>/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 533 |
+
+ </ClCompile>
|
| 534 |
+
+ </ItemDefinitionGroup>
|
| 535 |
+
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
| 536 |
+
+ <ClCompile>
|
| 537 |
+
+ <AdditionalOptions>/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 538 |
+
+ </ClCompile>
|
| 539 |
+
+ </ItemDefinitionGroup>
|
| 540 |
+
<ItemGroup>
|
| 541 |
+
<ClCompile Include="..\Modules\_testinternalcapi.c" />
|
| 542 |
+
</ItemGroup>
|
| 543 |
+
diff --git a/PCbuild/_testmultiphase.vcxproj b/PCbuild/_testmultiphase.vcxproj
|
| 544 |
+
index 430eb528cc..7a268d227b 100644
|
| 545 |
+
--- a/PCbuild/_testmultiphase.vcxproj
|
| 546 |
+
+++ b/PCbuild/_testmultiphase.vcxproj
|
| 547 |
+
@@ -92,6 +92,10 @@
|
| 548 |
+
<ItemDefinitionGroup>
|
| 549 |
+
<ClCompile>
|
| 550 |
+
<PreprocessorDefinitions>_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
| 551 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 552 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGInstrument|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 553 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGUpdate|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 554 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 555 |
+
</ClCompile>
|
| 556 |
+
<Link>
|
| 557 |
+
<SubSystem>Console</SubSystem>
|
| 558 |
+
diff --git a/PCbuild/_tkinter.vcxproj b/PCbuild/_tkinter.vcxproj
|
| 559 |
+
index af813b77c1..9ff2acde0a 100644
|
| 560 |
+
--- a/PCbuild/_tkinter.vcxproj
|
| 561 |
+
+++ b/PCbuild/_tkinter.vcxproj
|
| 562 |
+
@@ -96,6 +96,10 @@
|
| 563 |
+
<AdditionalIncludeDirectories>$(tcltkDir)include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
| 564 |
+
<PreprocessorDefinitions>WITH_APPINIT;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
| 565 |
+
<PreprocessorDefinitions Condition="'$(BuildForRelease)' != 'true'">Py_TCLTK_DIR="$(tcltkDir.TrimEnd('\').Replace('\', '\\'))";%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
| 566 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 567 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGInstrument|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 568 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGUpdate|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 569 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 570 |
+
</ClCompile>
|
| 571 |
+
<Link>
|
| 572 |
+
<AdditionalDependencies>$(tcltkLib);%(AdditionalDependencies)</AdditionalDependencies>
|
| 573 |
+
diff --git a/PCbuild/liblzma.vcxproj b/PCbuild/liblzma.vcxproj
|
| 574 |
+
index 4dd42ab98a..7c2dbc7e70 100644
|
| 575 |
+
--- a/PCbuild/liblzma.vcxproj
|
| 576 |
+
+++ b/PCbuild/liblzma.vcxproj
|
| 577 |
+
@@ -94,6 +94,10 @@
|
| 578 |
+
<PreprocessorDefinitions>WIN32;HAVE_CONFIG_H;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
| 579 |
+
<AdditionalIncludeDirectories>$(lzmaDir)windows/vs2019;$(lzmaDir)src/liblzma/common;$(lzmaDir)src/common;$(lzmaDir)src/liblzma/api;$(lzmaDir)src/liblzma/check;$(lzmaDir)src/liblzma/delta;$(lzmaDir)src/liblzma/lz;$(lzmaDir)src/liblzma/lzma;$(lzmaDir)src/liblzma/rangecoder;$(lzmaDir)src/liblzma/simple;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
| 580 |
+
<DisableSpecificWarnings>4028;4113;4133;4244;4267;4996;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
| 581 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 582 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGInstrument|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 583 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGUpdate|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 584 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 585 |
+
</ClCompile>
|
| 586 |
+
</ItemDefinitionGroup>
|
| 587 |
+
<ItemGroup>
|
| 588 |
+
diff --git a/PCbuild/pyexpat.vcxproj b/PCbuild/pyexpat.vcxproj
|
| 589 |
+
index 001f8afd89..3be4ac06dd 100644
|
| 590 |
+
--- a/PCbuild/pyexpat.vcxproj
|
| 591 |
+
+++ b/PCbuild/pyexpat.vcxproj
|
| 592 |
+
@@ -92,6 +92,10 @@
|
| 593 |
+
<ClCompile>
|
| 594 |
+
<AdditionalIncludeDirectories>$(PySourcePath)Modules\expat;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
| 595 |
+
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;PYEXPAT_EXPORTS;XML_STATIC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
| 596 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 597 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGInstrument|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 598 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGUpdate|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 599 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 600 |
+
</ClCompile>
|
| 601 |
+
</ItemDefinitionGroup>
|
| 602 |
+
<ItemGroup>
|
| 603 |
+
diff --git a/PCbuild/pylauncher.vcxproj b/PCbuild/pylauncher.vcxproj
|
| 604 |
+
index 35f2f7e505..02d7961c5d 100644
|
| 605 |
+
--- a/PCbuild/pylauncher.vcxproj
|
| 606 |
+
+++ b/PCbuild/pylauncher.vcxproj
|
| 607 |
+
@@ -93,6 +93,10 @@
|
| 608 |
+
<ClCompile>
|
| 609 |
+
<PreprocessorDefinitions>_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
| 610 |
+
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
| 611 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 612 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGInstrument|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 613 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGUpdate|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 614 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 615 |
+
</ClCompile>
|
| 616 |
+
<Link>
|
| 617 |
+
<AdditionalDependencies>shell32.lib;pathcch.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
| 618 |
+
diff --git a/PCbuild/pyshellext.vcxproj b/PCbuild/pyshellext.vcxproj
|
| 619 |
+
index ea432d6bc9..13bc692103 100644
|
| 620 |
+
--- a/PCbuild/pyshellext.vcxproj
|
| 621 |
+
+++ b/PCbuild/pyshellext.vcxproj
|
| 622 |
+
@@ -92,6 +92,10 @@
|
| 623 |
+
<ItemDefinitionGroup>
|
| 624 |
+
<ClCompile>
|
| 625 |
+
<PreprocessorDefinitions>_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
| 626 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 627 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGInstrument|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 628 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGUpdate|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 629 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 630 |
+
</ClCompile>
|
| 631 |
+
<Link>
|
| 632 |
+
<AdditionalDependencies>version.lib;shlwapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
| 633 |
+
diff --git a/PCbuild/python.vcxproj b/PCbuild/python.vcxproj
|
| 634 |
+
index 2e5b6331fb..cdfbf133ac 100644
|
| 635 |
+
--- a/PCbuild/python.vcxproj
|
| 636 |
+
+++ b/PCbuild/python.vcxproj
|
| 637 |
+
@@ -91,6 +91,10 @@
|
| 638 |
+
<ItemDefinitionGroup>
|
| 639 |
+
<ClCompile>
|
| 640 |
+
<PreprocessorDefinitions>Py_BUILD_CORE;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
| 641 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 642 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGInstrument|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 643 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGUpdate|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 644 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 645 |
+
</ClCompile>
|
| 646 |
+
<Link>
|
| 647 |
+
<SubSystem>Console</SubSystem>
|
| 648 |
+
diff --git a/PCbuild/python3dll.vcxproj b/PCbuild/python3dll.vcxproj
|
| 649 |
+
index ec22e6fc76..80dff0a3d9 100644
|
| 650 |
+
--- a/PCbuild/python3dll.vcxproj
|
| 651 |
+
+++ b/PCbuild/python3dll.vcxproj
|
| 652 |
+
@@ -93,6 +93,10 @@
|
| 653 |
+
<ClCompile>
|
| 654 |
+
<PreprocessorDefinitions>PYTHON_DLL_NAME="$(PyDllName)";%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
| 655 |
+
<BufferSecurityCheck>false</BufferSecurityCheck>
|
| 656 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 657 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGInstrument|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 658 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGUpdate|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 659 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 660 |
+
</ClCompile>
|
| 661 |
+
<Link>
|
| 662 |
+
<NoEntryPoint>true</NoEntryPoint>
|
| 663 |
+
diff --git a/PCbuild/python_uwp.vcxproj b/PCbuild/python_uwp.vcxproj
|
| 664 |
+
index fb27e9e712..f8dc841ef1 100644
|
| 665 |
+
--- a/PCbuild/python_uwp.vcxproj
|
| 666 |
+
+++ b/PCbuild/python_uwp.vcxproj
|
| 667 |
+
@@ -90,7 +90,7 @@
|
| 668 |
+
<ItemDefinitionGroup>
|
| 669 |
+
<ClCompile>
|
| 670 |
+
<PreprocessorDefinitions>%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
| 671 |
+
- <AdditionalOptions>/EHsc /std:c++17 %(AdditionalOptions)</AdditionalOptions>
|
| 672 |
+
+ <AdditionalOptions>/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 673 |
+
</ClCompile>
|
| 674 |
+
<Link>
|
| 675 |
+
<AdditionalDependencies>windowsapp.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
| 676 |
+
diff --git a/PCbuild/pythoncore.vcxproj b/PCbuild/pythoncore.vcxproj
|
| 677 |
+
index a38040159e..c4cb39c821 100644
|
| 678 |
+
--- a/PCbuild/pythoncore.vcxproj
|
| 679 |
+
+++ b/PCbuild/pythoncore.vcxproj
|
| 680 |
+
@@ -99,7 +99,7 @@
|
| 681 |
+
</PropertyGroup>
|
| 682 |
+
<ItemDefinitionGroup>
|
| 683 |
+
<ClCompile>
|
| 684 |
+
- <AdditionalOptions>/Zm200 %(AdditionalOptions)</AdditionalOptions>
|
| 685 |
+
+ <AdditionalOptions>/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 686 |
+
<AdditionalIncludeDirectories>$(PySourcePath)Python;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
| 687 |
+
<AdditionalIncludeDirectories Condition="$(IncludeExternals)">$(zlibDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
| 688 |
+
<PreprocessorDefinitions>_USRDLL;Py_BUILD_CORE;Py_BUILD_CORE_BUILTIN;Py_ENABLE_SHARED;MS_DLL_ID="$(SysWinVer)";%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
| 689 |
+
diff --git a/PCbuild/pythonw.vcxproj b/PCbuild/pythonw.vcxproj
|
| 690 |
+
index ab572d2020..1115e75445 100644
|
| 691 |
+
--- a/PCbuild/pythonw.vcxproj
|
| 692 |
+
+++ b/PCbuild/pythonw.vcxproj
|
| 693 |
+
@@ -91,6 +91,18 @@
|
| 694 |
+
<Link>
|
| 695 |
+
<StackReserveSize>2000000</StackReserveSize>
|
| 696 |
+
</Link>
|
| 697 |
+
+ <ClCompile>
|
| 698 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 699 |
+
+ </ClCompile>
|
| 700 |
+
+ <ClCompile>
|
| 701 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGInstrument|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 702 |
+
+ </ClCompile>
|
| 703 |
+
+ <ClCompile>
|
| 704 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGUpdate|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 705 |
+
+ </ClCompile>
|
| 706 |
+
+ <ClCompile>
|
| 707 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 708 |
+
+ </ClCompile>
|
| 709 |
+
</ItemDefinitionGroup>
|
| 710 |
+
<ItemGroup>
|
| 711 |
+
<ResourceCompile Include="..\PC\pythonw_exe.rc" />
|
| 712 |
+
diff --git a/PCbuild/pythonw_uwp.vcxproj b/PCbuild/pythonw_uwp.vcxproj
|
| 713 |
+
index e21e46a1b7..ff7dc6635d 100644
|
| 714 |
+
--- a/PCbuild/pythonw_uwp.vcxproj
|
| 715 |
+
+++ b/PCbuild/pythonw_uwp.vcxproj
|
| 716 |
+
@@ -90,7 +90,7 @@
|
| 717 |
+
<ItemDefinitionGroup>
|
| 718 |
+
<ClCompile>
|
| 719 |
+
<PreprocessorDefinitions>PYTHONW;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
| 720 |
+
- <AdditionalOptions>/EHsc /std:c++17 %(AdditionalOptions)</AdditionalOptions>
|
| 721 |
+
+ <AdditionalOptions>/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 722 |
+
</ClCompile>
|
| 723 |
+
<Link>
|
| 724 |
+
<AdditionalDependencies>windowsapp.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
| 725 |
+
diff --git a/PCbuild/pywlauncher.vcxproj b/PCbuild/pywlauncher.vcxproj
|
| 726 |
+
index e50b69aefe..3aa738bb7f 100644
|
| 727 |
+
--- a/PCbuild/pywlauncher.vcxproj
|
| 728 |
+
+++ b/PCbuild/pywlauncher.vcxproj
|
| 729 |
+
@@ -93,6 +93,10 @@
|
| 730 |
+
<ClCompile>
|
| 731 |
+
<PreprocessorDefinitions>_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
| 732 |
+
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
| 733 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 734 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGInstrument|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 735 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGUpdate|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 736 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 737 |
+
</ClCompile>
|
| 738 |
+
<Link>
|
| 739 |
+
<AdditionalDependencies>shell32.lib;pathcch.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
| 740 |
+
diff --git a/PCbuild/select.vcxproj b/PCbuild/select.vcxproj
|
| 741 |
+
index 750a713949..1da66eaddc 100644
|
| 742 |
+
--- a/PCbuild/select.vcxproj
|
| 743 |
+
+++ b/PCbuild/select.vcxproj
|
| 744 |
+
@@ -94,6 +94,18 @@
|
| 745 |
+
<Link>
|
| 746 |
+
<AdditionalDependencies>ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
| 747 |
+
</Link>
|
| 748 |
+
+ <ClCompile>
|
| 749 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 750 |
+
+ </ClCompile>
|
| 751 |
+
+ <ClCompile>
|
| 752 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGInstrument|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 753 |
+
+ </ClCompile>
|
| 754 |
+
+ <ClCompile>
|
| 755 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGUpdate|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 756 |
+
+ </ClCompile>
|
| 757 |
+
+ <ClCompile>
|
| 758 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 759 |
+
+ </ClCompile>
|
| 760 |
+
</ItemDefinitionGroup>
|
| 761 |
+
<ItemGroup>
|
| 762 |
+
<ClCompile Include="..\Modules\selectmodule.c" />
|
| 763 |
+
diff --git a/PCbuild/unicodedata.vcxproj b/PCbuild/unicodedata.vcxproj
|
| 764 |
+
index addef75335..1a13f363e2 100644
|
| 765 |
+
--- a/PCbuild/unicodedata.vcxproj
|
| 766 |
+
+++ b/PCbuild/unicodedata.vcxproj
|
| 767 |
+
@@ -91,6 +91,26 @@
|
| 768 |
+
<PropertyGroup>
|
| 769 |
+
<_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
|
| 770 |
+
</PropertyGroup>
|
| 771 |
+
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
| 772 |
+
+ <ClCompile>
|
| 773 |
+
+ <AdditionalOptions>/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 774 |
+
+ </ClCompile>
|
| 775 |
+
+ </ItemDefinitionGroup>
|
| 776 |
+
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='PGInstrument|Win32'">
|
| 777 |
+
+ <ClCompile>
|
| 778 |
+
+ <AdditionalOptions>/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 779 |
+
+ </ClCompile>
|
| 780 |
+
+ </ItemDefinitionGroup>
|
| 781 |
+
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='PGUpdate|Win32'">
|
| 782 |
+
+ <ClCompile>
|
| 783 |
+
+ <AdditionalOptions>/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 784 |
+
+ </ClCompile>
|
| 785 |
+
+ </ItemDefinitionGroup>
|
| 786 |
+
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
| 787 |
+
+ <ClCompile>
|
| 788 |
+
+ <AdditionalOptions>/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 789 |
+
+ </ClCompile>
|
| 790 |
+
+ </ItemDefinitionGroup>
|
| 791 |
+
<ItemGroup>
|
| 792 |
+
<ClInclude Include="..\Modules\unicodedata_db.h" />
|
| 793 |
+
<ClInclude Include="..\Modules\unicodename_db.h" />
|
| 794 |
+
diff --git a/PCbuild/venvlauncher.vcxproj b/PCbuild/venvlauncher.vcxproj
|
| 795 |
+
index 123e84ec4e..6272f9f69d 100644
|
| 796 |
+
--- a/PCbuild/venvlauncher.vcxproj
|
| 797 |
+
+++ b/PCbuild/venvlauncher.vcxproj
|
| 798 |
+
@@ -93,6 +93,10 @@
|
| 799 |
+
<ClCompile>
|
| 800 |
+
<PreprocessorDefinitions>_CONSOLE;VENV_REDIRECT;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
| 801 |
+
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
| 802 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 803 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGInstrument|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 804 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGUpdate|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 805 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 806 |
+
</ClCompile>
|
| 807 |
+
<ResourceCompile>
|
| 808 |
+
<PreprocessorDefinitions>PY_ICON;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
| 809 |
+
diff --git a/PCbuild/venvwlauncher.vcxproj b/PCbuild/venvwlauncher.vcxproj
|
| 810 |
+
index b8504d5d08..60d6308713 100644
|
| 811 |
+
--- a/PCbuild/venvwlauncher.vcxproj
|
| 812 |
+
+++ b/PCbuild/venvwlauncher.vcxproj
|
| 813 |
+
@@ -93,6 +93,10 @@
|
| 814 |
+
<ClCompile>
|
| 815 |
+
<PreprocessorDefinitions>_WINDOWS;VENV_REDIRECT;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
| 816 |
+
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
| 817 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 818 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGInstrument|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 819 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGUpdate|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 820 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 821 |
+
</ClCompile>
|
| 822 |
+
<ResourceCompile>
|
| 823 |
+
<PreprocessorDefinitions>PYW_ICON;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
| 824 |
+
diff --git a/PCbuild/winsound.vcxproj b/PCbuild/winsound.vcxproj
|
| 825 |
+
index 32cedc9b44..c9abee1d69 100644
|
| 826 |
+
--- a/PCbuild/winsound.vcxproj
|
| 827 |
+
+++ b/PCbuild/winsound.vcxproj
|
| 828 |
+
@@ -96,6 +96,18 @@
|
| 829 |
+
<Link>
|
| 830 |
+
<AdditionalDependencies>winmm.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
| 831 |
+
</Link>
|
| 832 |
+
+ <ClCompile>
|
| 833 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 834 |
+
+ </ClCompile>
|
| 835 |
+
+ <ClCompile>
|
| 836 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGInstrument|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 837 |
+
+ </ClCompile>
|
| 838 |
+
+ <ClCompile>
|
| 839 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGUpdate|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 840 |
+
+ </ClCompile>
|
| 841 |
+
+ <ClCompile>
|
| 842 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 843 |
+
+ </ClCompile>
|
| 844 |
+
</ItemDefinitionGroup>
|
| 845 |
+
<ItemGroup>
|
| 846 |
+
<ClCompile Include="..\PC\winsound.c" />
|
| 847 |
+
diff --git a/PCbuild/xxlimited.vcxproj b/PCbuild/xxlimited.vcxproj
|
| 848 |
+
index 1c776fb0da..36dec23c20 100644
|
| 849 |
+
--- a/PCbuild/xxlimited.vcxproj
|
| 850 |
+
+++ b/PCbuild/xxlimited.vcxproj
|
| 851 |
+
@@ -93,6 +93,12 @@
|
| 852 |
+
<_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
|
| 853 |
+
</PropertyGroup>
|
| 854 |
+
<ItemDefinitionGroup>
|
| 855 |
+
+ <ClCompile>
|
| 856 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 857 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGInstrument|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 858 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGUpdate|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 859 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 860 |
+
+ </ClCompile>
|
| 861 |
+
<Link>
|
| 862 |
+
<AdditionalDependencies>wsock32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
| 863 |
+
</Link>
|
| 864 |
+
diff --git a/PCbuild/xxlimited_35.vcxproj b/PCbuild/xxlimited_35.vcxproj
|
| 865 |
+
index dd830b3b6a..fef2c5b9f4 100644
|
| 866 |
+
--- a/PCbuild/xxlimited_35.vcxproj
|
| 867 |
+
+++ b/PCbuild/xxlimited_35.vcxproj
|
| 868 |
+
@@ -93,6 +93,12 @@
|
| 869 |
+
<_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
|
| 870 |
+
</PropertyGroup>
|
| 871 |
+
<ItemDefinitionGroup>
|
| 872 |
+
+ <ClCompile>
|
| 873 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 874 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGInstrument|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 875 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGUpdate|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 876 |
+
+ <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 877 |
+
+ </ClCompile>
|
| 878 |
+
<Link>
|
| 879 |
+
<AdditionalDependencies>wsock32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
| 880 |
+
</Link>
|
| 881 |
+
--
|
| 882 |
+
2.32.1 (Apple Git-133)
|
| 883 |
+
|
docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/patches/0016-cross-compile-darwin.patch
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
From d08c785695c93adb486a76c3cd5e3bfe9d76ce20 Mon Sep 17 00:00:00 2001
|
| 2 |
+
From: Ray Donnelly <mingw.android@gmail.com>
|
| 3 |
+
Date: Fri, 2 Oct 2020 00:03:12 +0200
|
| 4 |
+
Subject: [PATCH 17/25] cross compile darwin
|
| 5 |
+
|
| 6 |
+
By Isuru Fernando.
|
| 7 |
+
---
|
| 8 |
+
Lib/platform.py | 7 ++++++-
|
| 9 |
+
configure | 5 ++++-
|
| 10 |
+
configure.ac | 5 ++++-
|
| 11 |
+
setup.py | 6 +++---
|
| 12 |
+
4 files changed, 17 insertions(+), 6 deletions(-)
|
| 13 |
+
|
| 14 |
+
Index: CPython/Lib/platform.py
|
| 15 |
+
===================================================================
|
| 16 |
+
--- CPython.orig/Lib/platform.py 2023-12-14 17:49:23.307172000 -0600
|
| 17 |
+
+++ CPython/Lib/platform.py 2023-12-14 17:49:31.861760057 -0600
|
| 18 |
+
@@ -414,7 +414,12 @@
|
| 19 |
+
def _mac_ver_xml():
|
| 20 |
+
fn = '/System/Library/CoreServices/SystemVersion.plist'
|
| 21 |
+
if not os.path.exists(fn):
|
| 22 |
+
- return None
|
| 23 |
+
+ if 'SDKROOT' in os.environ:
|
| 24 |
+
+ fn = os.environ['SDKROOT'] + fn
|
| 25 |
+
+ if not os.path.exists(fn):
|
| 26 |
+
+ return None
|
| 27 |
+
+ else:
|
| 28 |
+
+ return None
|
| 29 |
+
|
| 30 |
+
try:
|
| 31 |
+
import plistlib
|
| 32 |
+
Index: CPython/configure
|
| 33 |
+
===================================================================
|
| 34 |
+
--- CPython.orig/configure 2023-12-14 17:49:23.307057000 -0600
|
| 35 |
+
+++ CPython/configure 2023-12-14 17:49:31.864960501 -0600
|
| 36 |
+
@@ -3887,6 +3887,9 @@
|
| 37 |
+
_host_cpu=$host_cpu
|
| 38 |
+
esac
|
| 39 |
+
;;
|
| 40 |
+
+ *-*-darwin*)
|
| 41 |
+
+ _host_cpu=$host_cpu
|
| 42 |
+
+ ;;
|
| 43 |
+
*-*-cygwin*)
|
| 44 |
+
_host_cpu=
|
| 45 |
+
;;
|
| 46 |
+
@@ -7220,7 +7223,7 @@
|
| 47 |
+
fi
|
| 48 |
+
fi
|
| 49 |
+
|
| 50 |
+
-if test "$cross_compiling" = yes; then
|
| 51 |
+
+if test "$cross_compiling" = yes -a "$ac_sys_system" != "Darwin"; then
|
| 52 |
+
case "$READELF" in
|
| 53 |
+
readelf|:)
|
| 54 |
+
as_fn_error $? "readelf for the host is required for cross builds" "$LINENO" 5
|
| 55 |
+
Index: CPython/configure.ac
|
| 56 |
+
===================================================================
|
| 57 |
+
--- CPython.orig/configure.ac 2023-12-14 17:49:23.306975000 -0600
|
| 58 |
+
+++ CPython/configure.ac 2023-12-14 17:49:31.866025176 -0600
|
| 59 |
+
@@ -605,6 +605,9 @@
|
| 60 |
+
_host_cpu=$host_cpu
|
| 61 |
+
esac
|
| 62 |
+
;;
|
| 63 |
+
+ *-*-darwin*)
|
| 64 |
+
+ _host_cpu=$host_cpu
|
| 65 |
+
+ ;;
|
| 66 |
+
*-*-cygwin*)
|
| 67 |
+
_host_cpu=
|
| 68 |
+
;;
|
| 69 |
+
@@ -1634,7 +1637,7 @@
|
| 70 |
+
fi
|
| 71 |
+
|
| 72 |
+
AC_CHECK_TOOLS([READELF], [readelf], [:])
|
| 73 |
+
-if test "$cross_compiling" = yes; then
|
| 74 |
+
+if test "$cross_compiling" = yes -a "$ac_sys_system" != "Darwin"; then
|
| 75 |
+
case "$READELF" in
|
| 76 |
+
readelf|:)
|
| 77 |
+
AC_MSG_ERROR([readelf for the host is required for cross builds])
|
| 78 |
+
Index: CPython/setup.py
|
| 79 |
+
===================================================================
|
| 80 |
+
--- CPython.orig/setup.py 2023-12-14 17:49:23.307112000 -0600
|
| 81 |
+
+++ CPython/setup.py 2023-12-14 17:49:31.866430930 -0600
|
| 82 |
+
@@ -81,7 +81,7 @@
|
| 83 |
+
HOST_PLATFORM = get_platform()
|
| 84 |
+
MS_WINDOWS = (HOST_PLATFORM == 'win32')
|
| 85 |
+
CYGWIN = (HOST_PLATFORM == 'cygwin')
|
| 86 |
+
-MACOS = (HOST_PLATFORM == 'darwin')
|
| 87 |
+
+MACOS = (HOST_PLATFORM.startswith('darwin'))
|
| 88 |
+
AIX = (HOST_PLATFORM.startswith('aix'))
|
| 89 |
+
VXWORKS = ('vxworks' in HOST_PLATFORM)
|
| 90 |
+
EMSCRIPTEN = HOST_PLATFORM == 'emscripten-wasm32'
|
| 91 |
+
@@ -1049,11 +1049,11 @@
|
| 92 |
+
readline_lib = 'readline'
|
| 93 |
+
do_readline = self.compiler.find_library_file(self.lib_dirs,
|
| 94 |
+
readline_lib)
|
| 95 |
+
- if CROSS_COMPILING:
|
| 96 |
+
+ if CROSS_COMPILING and not MACOS:
|
| 97 |
+
ret = run_command("%s -d %s | grep '(NEEDED)' > %s"
|
| 98 |
+
% (sysconfig.get_config_var('READELF'),
|
| 99 |
+
do_readline, tmpfile))
|
| 100 |
+
- elif find_executable('ldd'):
|
| 101 |
+
+ elif find_executable('ldd') and not MACOS:
|
| 102 |
+
ret = run_command("ldd %s > %s" % (do_readline, tmpfile))
|
| 103 |
+
else:
|
| 104 |
+
ret = 1
|
docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/patches/0017-Fix-TZPATH-on-windows.patch
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
From e8a6dc5a388a6cc18d15ce3485d698ad0f0b187a Mon Sep 17 00:00:00 2001
|
| 2 |
+
From: Isuru Fernando <isuruf@gmail.com>
|
| 3 |
+
Date: Wed, 7 Oct 2020 10:08:30 -0500
|
| 4 |
+
Subject: [PATCH 18/25] Fix TZPATH on windows
|
| 5 |
+
|
| 6 |
+
---
|
| 7 |
+
Lib/sysconfig.py | 1 +
|
| 8 |
+
1 file changed, 1 insertion(+)
|
| 9 |
+
|
| 10 |
+
diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py
|
| 11 |
+
index ebe3711827..d51ba78d51 100644
|
| 12 |
+
--- a/Lib/sysconfig.py
|
| 13 |
+
+++ b/Lib/sysconfig.py
|
| 14 |
+
@@ -666,6 +666,7 @@ def get_config_vars(*args):
|
| 15 |
+
if os.name == 'nt':
|
| 16 |
+
_init_non_posix(_CONFIG_VARS)
|
| 17 |
+
_CONFIG_VARS['VPATH'] = sys._vpath
|
| 18 |
+
+ _CONFIG_VARS['TZPATH'] = os.path.join(_PREFIX, "share", "zoneinfo")
|
| 19 |
+
if os.name == 'posix':
|
| 20 |
+
_init_posix(_CONFIG_VARS)
|
| 21 |
+
if _HAS_USER_BASE:
|
| 22 |
+
--
|
| 23 |
+
2.32.1 (Apple Git-133)
|
| 24 |
+
|
docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/patches/0018-Make-dyld-search-work-with-SYSTEM_VERSION_COMPAT-1.patch
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
From 030d8bdc15c1e9df6056c1491636c612bc82d0af Mon Sep 17 00:00:00 2001
|
| 2 |
+
From: Isuru Fernando <isuruf@gmail.com>
|
| 3 |
+
Date: Mon, 25 Jan 2021 03:28:08 -0600
|
| 4 |
+
Subject: [PATCH 19/25] Make dyld search work with SYSTEM_VERSION_COMPAT=1
|
| 5 |
+
|
| 6 |
+
In macOS Big Sur, if the executable was compiled with `MACOSX_DEPLOYMENT_TARGET=10.15`
|
| 7 |
+
or below, then SYSTEM_VERSION_COMPAT=1 is the default which means that Big Sur
|
| 8 |
+
reports itself as 10.16 which means that `__builtin_available(macOS 11.0)` will not be triggered.
|
| 9 |
+
|
| 10 |
+
This can be observed by using the python 3.9.1 universal2 installer and using it on
|
| 11 |
+
x86_64 Big Sur or with Rossetta 2 on arm64 Big Sur. (Not an issue with native arm64
|
| 12 |
+
as that part is compiled with `MACOSX_DEPLOYMENT_TARGET=11.0`)
|
| 13 |
+
---
|
| 14 |
+
Modules/_ctypes/callproc.c | 2 +-
|
| 15 |
+
1 file changed, 1 insertion(+), 1 deletion(-)
|
| 16 |
+
|
| 17 |
+
diff --git a/Modules/_ctypes/callproc.c b/Modules/_ctypes/callproc.c
|
| 18 |
+
index f42ff08f58..85edd81850 100644
|
| 19 |
+
--- a/Modules/_ctypes/callproc.c
|
| 20 |
+
+++ b/Modules/_ctypes/callproc.c
|
| 21 |
+
@@ -1449,7 +1449,7 @@ copy_com_pointer(PyObject *self, PyObject *args)
|
| 22 |
+
#ifdef HAVE_DYLD_SHARED_CACHE_CONTAINS_PATH
|
| 23 |
+
# ifdef HAVE_BUILTIN_AVAILABLE
|
| 24 |
+
# define HAVE_DYLD_SHARED_CACHE_CONTAINS_PATH_RUNTIME \
|
| 25 |
+
- __builtin_available(macOS 11.0, iOS 14.0, tvOS 14.0, watchOS 7.0, *)
|
| 26 |
+
+ __builtin_available(macOS 10.16, iOS 14.0, tvOS 14.0, watchOS 7.0, *)
|
| 27 |
+
# else
|
| 28 |
+
# define HAVE_DYLD_SHARED_CACHE_CONTAINS_PATH_RUNTIME \
|
| 29 |
+
(_dyld_shared_cache_contains_path != NULL)
|
| 30 |
+
--
|
| 31 |
+
2.32.1 (Apple Git-133)
|
| 32 |
+
|
docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/patches/0019-Fix-LDSHARED-when-CC-is-overriden-on-Linux-too.patch
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
From 9de9149b56b05b424df62e49948daf315ea6c774 Mon Sep 17 00:00:00 2001
|
| 2 |
+
From: Isuru Fernando <isuruf@gmail.com>
|
| 3 |
+
Date: Mon, 16 Aug 2021 02:18:50 -0700
|
| 4 |
+
Subject: [PATCH 20/25] Fix LDSHARED when CC is overriden on Linux too
|
| 5 |
+
|
| 6 |
+
---
|
| 7 |
+
Lib/distutils/sysconfig.py | 5 ++---
|
| 8 |
+
1 file changed, 2 insertions(+), 3 deletions(-)
|
| 9 |
+
|
| 10 |
+
diff --git a/Lib/distutils/sysconfig.py b/Lib/distutils/sysconfig.py
|
| 11 |
+
index 00133ded58..43eef57419 100644
|
| 12 |
+
--- a/Lib/distutils/sysconfig.py
|
| 13 |
+
+++ b/Lib/distutils/sysconfig.py
|
| 14 |
+
@@ -217,10 +217,9 @@ def customize_compiler(compiler):
|
| 15 |
+
|
| 16 |
+
if 'CC' in os.environ:
|
| 17 |
+
newcc = os.environ['CC']
|
| 18 |
+
- if (sys.platform == 'darwin'
|
| 19 |
+
- and 'LDSHARED' not in os.environ
|
| 20 |
+
+ if ('LDSHARED' not in os.environ
|
| 21 |
+
and ldshared.startswith(cc)):
|
| 22 |
+
- # On OS X, if CC is overridden, use that as the default
|
| 23 |
+
+ # If CC is overridden, use that as the default
|
| 24 |
+
# command for LDSHARED as well
|
| 25 |
+
ldshared = newcc + ldshared[len(cc):]
|
| 26 |
+
cc = newcc
|
| 27 |
+
--
|
| 28 |
+
2.32.1 (Apple Git-133)
|
| 29 |
+
|
docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/patches/0020-Unvendor-bzip2.patch
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
From d28868966d973a9b09909567ae6522e182f87c9a Mon Sep 17 00:00:00 2001
|
| 2 |
+
From: Isuru Fernando <isuruf@gmail.com>
|
| 3 |
+
Date: Mon, 16 Aug 2021 02:56:27 -0700
|
| 4 |
+
Subject: [PATCH 21/25] Unvendor bzip2
|
| 5 |
+
|
| 6 |
+
---
|
| 7 |
+
PCbuild/_bz2.vcxproj | 15 +++++----------
|
| 8 |
+
PCbuild/_bz2.vcxproj.filters | 26 +-------------------------
|
| 9 |
+
2 files changed, 6 insertions(+), 35 deletions(-)
|
| 10 |
+
|
| 11 |
+
diff --git a/PCbuild/_bz2.vcxproj b/PCbuild/_bz2.vcxproj
|
| 12 |
+
index 0402f7a9aa..569c7c5de9 100644
|
| 13 |
+
--- a/PCbuild/_bz2.vcxproj
|
| 14 |
+
+++ b/PCbuild/_bz2.vcxproj
|
| 15 |
+
@@ -94,7 +94,7 @@
|
| 16 |
+
</PropertyGroup>
|
| 17 |
+
<ItemDefinitionGroup>
|
| 18 |
+
<ClCompile>
|
| 19 |
+
- <AdditionalIncludeDirectories>$(bz2Dir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
| 20 |
+
+ <AdditionalIncludeDirectories>$(condaDir)\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
| 21 |
+
<PreprocessorDefinitions>WIN32;_FILE_OFFSET_BITS=64;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
| 22 |
+
<DisableSpecificWarnings>4244;4267;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
| 23 |
+
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 24 |
+
@@ -102,20 +102,15 @@
|
| 25 |
+
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGUpdate|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 26 |
+
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 27 |
+
</ClCompile>
|
| 28 |
+
+ <Link>
|
| 29 |
+
+ <AdditionalDependencies>$(condaDir)\lib\bzip2.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
| 30 |
+
+ </Link>
|
| 31 |
+
</ItemDefinitionGroup>
|
| 32 |
+
<ItemGroup>
|
| 33 |
+
<ClCompile Include="..\Modules\_bz2module.c" />
|
| 34 |
+
- <ClCompile Include="$(bz2Dir)\blocksort.c" />
|
| 35 |
+
- <ClCompile Include="$(bz2Dir)\bzlib.c" />
|
| 36 |
+
- <ClCompile Include="$(bz2Dir)\compress.c" />
|
| 37 |
+
- <ClCompile Include="$(bz2Dir)\crctable.c" />
|
| 38 |
+
- <ClCompile Include="$(bz2Dir)\decompress.c" />
|
| 39 |
+
- <ClCompile Include="$(bz2Dir)\huffman.c" />
|
| 40 |
+
- <ClCompile Include="$(bz2Dir)\randtable.c" />
|
| 41 |
+
</ItemGroup>
|
| 42 |
+
<ItemGroup>
|
| 43 |
+
- <ClInclude Include="$(bz2Dir)\bzlib.h" />
|
| 44 |
+
- <ClInclude Include="$(bz2Dir)\bzlib_private.h" />
|
| 45 |
+
+ <ClInclude Include="$(condaDir)\include\bzlib.h" />
|
| 46 |
+
</ItemGroup>
|
| 47 |
+
<ItemGroup>
|
| 48 |
+
<ResourceCompile Include="..\PC\python_nt.rc" />
|
| 49 |
+
diff --git a/PCbuild/_bz2.vcxproj.filters b/PCbuild/_bz2.vcxproj.filters
|
| 50 |
+
index 7c0b516253..c1f960608c 100644
|
| 51 |
+
--- a/PCbuild/_bz2.vcxproj.filters
|
| 52 |
+
+++ b/PCbuild/_bz2.vcxproj.filters
|
| 53 |
+
@@ -21,33 +21,9 @@
|
| 54 |
+
<ClCompile Include="..\Modules\_bz2module.c">
|
| 55 |
+
<Filter>Source Files</Filter>
|
| 56 |
+
</ClCompile>
|
| 57 |
+
- <ClCompile Include="$(bz2Dir)\blocksort.c">
|
| 58 |
+
- <Filter>Source Files\bzip2</Filter>
|
| 59 |
+
- </ClCompile>
|
| 60 |
+
- <ClCompile Include="$(bz2Dir)\bzlib.c">
|
| 61 |
+
- <Filter>Source Files\bzip2</Filter>
|
| 62 |
+
- </ClCompile>
|
| 63 |
+
- <ClCompile Include="$(bz2Dir)\compress.c">
|
| 64 |
+
- <Filter>Source Files\bzip2</Filter>
|
| 65 |
+
- </ClCompile>
|
| 66 |
+
- <ClCompile Include="$(bz2Dir)\crctable.c">
|
| 67 |
+
- <Filter>Source Files\bzip2</Filter>
|
| 68 |
+
- </ClCompile>
|
| 69 |
+
- <ClCompile Include="$(bz2Dir)\decompress.c">
|
| 70 |
+
- <Filter>Source Files\bzip2</Filter>
|
| 71 |
+
- </ClCompile>
|
| 72 |
+
- <ClCompile Include="$(bz2Dir)\huffman.c">
|
| 73 |
+
- <Filter>Source Files\bzip2</Filter>
|
| 74 |
+
- </ClCompile>
|
| 75 |
+
- <ClCompile Include="$(bz2Dir)\randtable.c">
|
| 76 |
+
- <Filter>Source Files\bzip2</Filter>
|
| 77 |
+
- </ClCompile>
|
| 78 |
+
</ItemGroup>
|
| 79 |
+
<ItemGroup>
|
| 80 |
+
- <ClInclude Include="$(bz2Dir)\bzlib_private.h">
|
| 81 |
+
- <Filter>Header Files\bzip2</Filter>
|
| 82 |
+
- </ClInclude>
|
| 83 |
+
- <ClInclude Include="$(bz2Dir)\bzlib.h">
|
| 84 |
+
+ <ClInclude Include="$(condaDir)\include\bzlib.h">
|
| 85 |
+
<Filter>Header Files\bzip2</Filter>
|
| 86 |
+
</ClInclude>
|
| 87 |
+
</ItemGroup>
|
| 88 |
+
--
|
| 89 |
+
2.30.2
|
| 90 |
+
|
docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/patches/0021-Unvendor-libffi.patch
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
From c2ac66330fb026f75491907dfd725d74c6673e06 Mon Sep 17 00:00:00 2001
|
| 2 |
+
From: Isuru Fernando <isuruf@gmail.com>
|
| 3 |
+
Date: Mon, 16 Aug 2021 03:07:40 -0700
|
| 4 |
+
Subject: [PATCH 22/25] Unvendor libffi
|
| 5 |
+
|
| 6 |
+
---
|
| 7 |
+
PCbuild/libffi.props | 15 +++------------
|
| 8 |
+
1 file changed, 3 insertions(+), 12 deletions(-)
|
| 9 |
+
|
| 10 |
+
diff --git a/PCbuild/libffi.props b/PCbuild/libffi.props
|
| 11 |
+
index 22c9550e2c..40ddb08d2b 100644
|
| 12 |
+
--- a/PCbuild/libffi.props
|
| 13 |
+
+++ b/PCbuild/libffi.props
|
| 14 |
+
@@ -2,20 +2,11 @@
|
| 15 |
+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
| 16 |
+
<ItemDefinitionGroup>
|
| 17 |
+
<ClCompile>
|
| 18 |
+
- <AdditionalIncludeDirectories>$(libffiIncludeDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
| 19 |
+
+ <AdditionalIncludeDirectories>$(condaDir)\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
| 20 |
+
</ClCompile>
|
| 21 |
+
<Link>
|
| 22 |
+
- <AdditionalLibraryDirectories>$(libffiOutDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
| 23 |
+
- <AdditionalDependencies>libffi-8.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
| 24 |
+
+ <AdditionalLibraryDirectories>$(condaDir)\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
| 25 |
+
+ <AdditionalDependencies>ffi.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
| 26 |
+
</Link>
|
| 27 |
+
</ItemDefinitionGroup>
|
| 28 |
+
- <ItemGroup>
|
| 29 |
+
- <_LIBFFIDLL Include="$(libffiOutDir)\libffi-8.dll" />
|
| 30 |
+
- </ItemGroup>
|
| 31 |
+
- <Target Name="_CopyLIBFFIDLL" Inputs="@(_LIBFFIDLL)" Outputs="@(_LIBFFIDLL->'$(OutDir)%(Filename)%(Extension)')" AfterTargets="Build">
|
| 32 |
+
- <Copy SourceFiles="@(_LIBFFIDLL)" DestinationFolder="$(OutDir)" />
|
| 33 |
+
- </Target>
|
| 34 |
+
- <Target Name="_CleanLIBFFIDLL" BeforeTargets="Clean">
|
| 35 |
+
- <Delete Files="@(_LIBFFIDLL->'$(OutDir)%(Filename)%(Extension)')" TreatErrorsAsWarnings="true" />
|
| 36 |
+
- </Target>
|
| 37 |
+
-</Project>
|
| 38 |
+
|
| 39 |
+
+</Project>
|
| 40 |
+
--
|
| 41 |
+
2.32.1 (Apple Git-133)
|
| 42 |
+
|
docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/patches/0022-Unvendor-tcltk.patch
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
From a18bab6405f24e209fa6f75cd8f13aad455064f8 Mon Sep 17 00:00:00 2001
|
| 2 |
+
From: Isuru Fernando <isuruf@gmail.com>
|
| 3 |
+
Date: Fri, 20 Aug 2021 10:23:51 -0700
|
| 4 |
+
Subject: [PATCH 23/25] Unvendor tcltk
|
| 5 |
+
|
| 6 |
+
---
|
| 7 |
+
PCbuild/tcltk.props | 8 ++++----
|
| 8 |
+
1 file changed, 4 insertions(+), 4 deletions(-)
|
| 9 |
+
|
| 10 |
+
diff --git a/PCbuild/tcltk.props b/PCbuild/tcltk.props
|
| 11 |
+
index cd54b2567b..e94a15dc24 100644
|
| 12 |
+
--- a/PCbuild/tcltk.props
|
| 13 |
+
+++ b/PCbuild/tcltk.props
|
| 14 |
+
@@ -17,10 +17,10 @@
|
| 15 |
+
<TixMinorVersion>$([System.Version]::Parse($(TixVersion)).Minor)</TixMinorVersion>
|
| 16 |
+
<TixPatchLevel>$([System.Version]::Parse($(TixVersion)).Build)</TixPatchLevel>
|
| 17 |
+
<TixRevision>$([System.Version]::Parse($(TixVersion)).Revision)</TixRevision>
|
| 18 |
+
- <tclDir Condition="$(tclDir) == ''">$(ExternalsDir)tcl-core-$(TclVersion)\</tclDir>
|
| 19 |
+
- <tkDir Condition="$(tkDir) == ''">$(ExternalsDir)tk-$(TkVersion)\</tkDir>
|
| 20 |
+
- <tixDir Condition="$(tixDir) == ''">$(ExternalsDir)tix-$(TixVersion)\</tixDir>
|
| 21 |
+
- <tcltkDir Condition="$(tcltkDir) == ''">$(ExternalsDir)tcltk-$(TclVersion)\$(ArchName)\</tcltkDir>
|
| 22 |
+
+ <tclDir>$(condaDir)</tclDir>
|
| 23 |
+
+ <tkDir>$(condaDir)</tkDir>
|
| 24 |
+
+ <tixDir>$(condaDir)</tixDir>
|
| 25 |
+
+ <tcltkDir>$(condaDir)</tcltkDir>
|
| 26 |
+
<tclWin32Exe Condition="$(Platform) == 'Win32'">$(tcltkDir)\bin\tclsh$(TclMajorVersion)$(TclMinorVersion)t.exe</tclWin32Exe>
|
| 27 |
+
<tclWin32Exe Condition="$(Platform) != 'Win32'">$(tcltkDir)\..\win32\bin\tclsh$(TclMajorVersion)$(TclMinorVersion)t.exe</tclWin32Exe>
|
| 28 |
+
|
| 29 |
+
--
|
| 30 |
+
2.32.1 (Apple Git-133)
|
| 31 |
+
|
docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/patches/0023-unvendor-xz.patch
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
From 75a7e26604a7fd9848694527d2239b5a8fe2f90d Mon Sep 17 00:00:00 2001
|
| 2 |
+
From: Isuru Fernando <isuruf@gmail.com>
|
| 3 |
+
Date: Sat, 25 Sep 2021 10:07:05 -0700
|
| 4 |
+
Subject: [PATCH 24/25] unvendor xz
|
| 5 |
+
|
| 6 |
+
---
|
| 7 |
+
PCbuild/_lzma.vcxproj | 10 +++-------
|
| 8 |
+
1 file changed, 3 insertions(+), 7 deletions(-)
|
| 9 |
+
|
| 10 |
+
diff --git a/PCbuild/_lzma.vcxproj b/PCbuild/_lzma.vcxproj
|
| 11 |
+
index 0565132363..e8b2704cee 100644
|
| 12 |
+
--- a/PCbuild/_lzma.vcxproj
|
| 13 |
+
+++ b/PCbuild/_lzma.vcxproj
|
| 14 |
+
@@ -93,15 +93,15 @@
|
| 15 |
+
</PropertyGroup>
|
| 16 |
+
<ItemDefinitionGroup>
|
| 17 |
+
<ClCompile>
|
| 18 |
+
- <AdditionalIncludeDirectories>$(lzmaDir)src/liblzma/api;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
| 19 |
+
- <PreprocessorDefinitions>WIN32;_FILE_OFFSET_BITS=64;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;LZMA_API_STATIC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
| 20 |
+
+ <AdditionalIncludeDirectories>$(condaDir)\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
| 21 |
+
+ <PreprocessorDefinitions>WIN32;_FILE_OFFSET_BITS=64;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
| 22 |
+
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 23 |
+
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGInstrument|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 24 |
+
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='PGUpdate|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 25 |
+
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 26 |
+
</ClCompile>
|
| 27 |
+
<Link>
|
| 28 |
+
- <AdditionalDependencies>$(OutDir)liblzma$(PyDebugExt).lib;%(AdditionalDependencies)</AdditionalDependencies>
|
| 29 |
+
+ <AdditionalDependencies>$(condaDir)\lib\lzma.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
| 30 |
+
</Link>
|
| 31 |
+
</ItemDefinitionGroup>
|
| 32 |
+
<ItemGroup>
|
| 33 |
+
@@ -115,10 +115,6 @@
|
| 34 |
+
<Project>{cf7ac3d1-e2df-41d2-bea6-1e2556cdea26}</Project>
|
| 35 |
+
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
|
| 36 |
+
</ProjectReference>
|
| 37 |
+
- <ProjectReference Include="liblzma.vcxproj">
|
| 38 |
+
- <Project>{12728250-16eC-4dc6-94d7-e21dd88947f8}</Project>
|
| 39 |
+
- <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
|
| 40 |
+
- </ProjectReference>
|
| 41 |
+
</ItemGroup>
|
| 42 |
+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
| 43 |
+
<ImportGroup Label="ExtensionTargets">
|
| 44 |
+
--
|
| 45 |
+
2.32.1 (Apple Git-133)
|
| 46 |
+
|
docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/patches/0024-unvendor-zlib.patch
ADDED
|
@@ -0,0 +1,166 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
From 7752b6b98f2d8a9f88e8c32b032877654dadf28a Mon Sep 17 00:00:00 2001
|
| 2 |
+
From: Isuru Fernando <isuruf@gmail.com>
|
| 3 |
+
Date: Wed, 29 Sep 2021 15:21:55 -0700
|
| 4 |
+
Subject: [PATCH 25/25] unvendor zlib
|
| 5 |
+
|
| 6 |
+
---
|
| 7 |
+
PCbuild/pythoncore.vcxproj | 33 ++-------------
|
| 8 |
+
PCbuild/pythoncore.vcxproj.filters | 66 ------------------------------
|
| 9 |
+
2 files changed, 4 insertions(+), 95 deletions(-)
|
| 10 |
+
|
| 11 |
+
diff --git a/PCbuild/pythoncore.vcxproj b/PCbuild/pythoncore.vcxproj
|
| 12 |
+
index c4cb39c821..2161449eab 100644
|
| 13 |
+
--- a/PCbuild/pythoncore.vcxproj
|
| 14 |
+
+++ b/PCbuild/pythoncore.vcxproj
|
| 15 |
+
@@ -82,7 +82,7 @@
|
| 16 |
+
<PropertyGroup>
|
| 17 |
+
<KillPython>true</KillPython>
|
| 18 |
+
<RequirePGCFiles>true</RequirePGCFiles>
|
| 19 |
+
- <IncludeExternals Condition="$(IncludeExternals) == '' and Exists('$(zlibDir)\zlib.h')">true</IncludeExternals>
|
| 20 |
+
+ <IncludeExternals Condition="$(IncludeExternals) == '' and Exists('$(condaDir)\include\zlib.h')">true</IncludeExternals>
|
| 21 |
+
<IncludeExternals Condition="$(IncludeExternals) == ''">false</IncludeExternals>
|
| 22 |
+
</PropertyGroup>
|
| 23 |
+
<ImportGroup Label="PropertySheets">
|
| 24 |
+
@@ -101,12 +101,13 @@
|
| 25 |
+
<ClCompile>
|
| 26 |
+
<AdditionalOptions>/d1trimfile:%SRC_DIR%</AdditionalOptions>
|
| 27 |
+
<AdditionalIncludeDirectories>$(PySourcePath)Python;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
| 28 |
+
- <AdditionalIncludeDirectories Condition="$(IncludeExternals)">$(zlibDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
| 29 |
+
+ <AdditionalIncludeDirectories Condition="$(IncludeExternals)">$(condaDir)\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
| 30 |
+
<PreprocessorDefinitions>_USRDLL;Py_BUILD_CORE;Py_BUILD_CORE_BUILTIN;Py_ENABLE_SHARED;MS_DLL_ID="$(SysWinVer)";%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
| 31 |
+
<PreprocessorDefinitions Condition="$(IncludeExternals)">_Py_HAVE_ZLIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
| 32 |
+
</ClCompile>
|
| 33 |
+
<Link>
|
| 34 |
+
- <AdditionalDependencies>version.lib;ws2_32.lib;pathcch.lib;bcrypt.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
| 35 |
+
+ <AdditionalDependencies>version.lib;ws2_32.lib;pathcch.lib;bcrypt.lib;zlib.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
| 36 |
+
+ <AdditionalLibraryDirectories>$(condaDir)\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
| 37 |
+
</Link>
|
| 38 |
+
</ItemDefinitionGroup>
|
| 39 |
+
<ItemGroup>
|
| 40 |
+
@@ -330,19 +331,6 @@
|
| 41 |
+
<ClInclude Include="..\Python\stdlib_module_names.h" />
|
| 42 |
+
<ClInclude Include="..\Python\thread_nt.h" />
|
| 43 |
+
</ItemGroup>
|
| 44 |
+
- <ItemGroup Condition="$(IncludeExternals)">
|
| 45 |
+
- <ClInclude Include="$(zlibDir)\crc32.h" />
|
| 46 |
+
- <ClInclude Include="$(zlibDir)\deflate.h" />
|
| 47 |
+
- <ClInclude Include="$(zlibDir)\inffast.h" />
|
| 48 |
+
- <ClInclude Include="$(zlibDir)\inffixed.h" />
|
| 49 |
+
- <ClInclude Include="$(zlibDir)\inflate.h" />
|
| 50 |
+
- <ClInclude Include="$(zlibDir)\inftrees.h" />
|
| 51 |
+
- <ClInclude Include="$(zlibDir)\trees.h" />
|
| 52 |
+
- <ClInclude Include="$(zlibDir)\zconf.h" />
|
| 53 |
+
- <ClInclude Include="$(zlibDir)\zconf.in.h" />
|
| 54 |
+
- <ClInclude Include="$(zlibDir)\zlib.h" />
|
| 55 |
+
- <ClInclude Include="$(zlibDir)\zutil.h" />
|
| 56 |
+
- </ItemGroup>
|
| 57 |
+
<ItemGroup>
|
| 58 |
+
<ClCompile Include="..\Modules\_abc.c" />
|
| 59 |
+
<ClCompile Include="..\Modules\_bisectmodule.c" />
|
| 60 |
+
@@ -542,19 +530,6 @@
|
| 61 |
+
</ItemGroup>
|
| 62 |
+
<ItemGroup Condition="$(IncludeExternals)">
|
| 63 |
+
<ClCompile Include="..\Modules\zlibmodule.c" />
|
| 64 |
+
- <ClCompile Include="$(zlibDir)\adler32.c" />
|
| 65 |
+
- <ClCompile Include="$(zlibDir)\compress.c" />
|
| 66 |
+
- <ClCompile Include="$(zlibDir)\crc32.c" />
|
| 67 |
+
- <ClCompile Include="$(zlibDir)\deflate.c">
|
| 68 |
+
- <DisableSpecificWarnings>4244</DisableSpecificWarnings>
|
| 69 |
+
- </ClCompile>
|
| 70 |
+
- <ClCompile Include="$(zlibDir)\infback.c" />
|
| 71 |
+
- <ClCompile Include="$(zlibDir)\inffast.c" />
|
| 72 |
+
- <ClCompile Include="$(zlibDir)\inflate.c" />
|
| 73 |
+
- <ClCompile Include="$(zlibDir)\inftrees.c" />
|
| 74 |
+
- <ClCompile Include="$(zlibDir)\trees.c" />
|
| 75 |
+
- <ClCompile Include="$(zlibDir)\uncompr.c" />
|
| 76 |
+
- <ClCompile Include="$(zlibDir)\zutil.c" />
|
| 77 |
+
</ItemGroup>
|
| 78 |
+
<ItemGroup>
|
| 79 |
+
<ClCompile Include="..\PC\dl_nt.c" />
|
| 80 |
+
diff --git a/PCbuild/pythoncore.vcxproj.filters b/PCbuild/pythoncore.vcxproj.filters
|
| 81 |
+
index e3fe9271dd..334cb226e2 100644
|
| 82 |
+
--- a/PCbuild/pythoncore.vcxproj.filters
|
| 83 |
+
+++ b/PCbuild/pythoncore.vcxproj.filters
|
| 84 |
+
@@ -651,39 +651,6 @@
|
| 85 |
+
<ClInclude Include="..\Include\internal\pycore_unionobject.h">
|
| 86 |
+
<Filter>Include\internal</Filter>
|
| 87 |
+
</ClInclude>
|
| 88 |
+
- <ClInclude Include="$(zlibDir)\crc32.h">
|
| 89 |
+
- <Filter>Modules\zlib</Filter>
|
| 90 |
+
- </ClInclude>
|
| 91 |
+
- <ClInclude Include="$(zlibDir)\deflate.h">
|
| 92 |
+
- <Filter>Modules\zlib</Filter>
|
| 93 |
+
- </ClInclude>
|
| 94 |
+
- <ClInclude Include="$(zlibDir)\inffast.h">
|
| 95 |
+
- <Filter>Modules\zlib</Filter>
|
| 96 |
+
- </ClInclude>
|
| 97 |
+
- <ClInclude Include="$(zlibDir)\inffixed.h">
|
| 98 |
+
- <Filter>Modules\zlib</Filter>
|
| 99 |
+
- </ClInclude>
|
| 100 |
+
- <ClInclude Include="$(zlibDir)\inflate.h">
|
| 101 |
+
- <Filter>Modules\zlib</Filter>
|
| 102 |
+
- </ClInclude>
|
| 103 |
+
- <ClInclude Include="$(zlibDir)\inftrees.h">
|
| 104 |
+
- <Filter>Modules\zlib</Filter>
|
| 105 |
+
- </ClInclude>
|
| 106 |
+
- <ClInclude Include="$(zlibDir)\trees.h">
|
| 107 |
+
- <Filter>Modules\zlib</Filter>
|
| 108 |
+
- </ClInclude>
|
| 109 |
+
- <ClInclude Include="$(zlibDir)\zconf.h">
|
| 110 |
+
- <Filter>Modules\zlib</Filter>
|
| 111 |
+
- </ClInclude>
|
| 112 |
+
- <ClInclude Include="$(zlibDir)\zconf.in.h">
|
| 113 |
+
- <Filter>Modules\zlib</Filter>
|
| 114 |
+
- </ClInclude>
|
| 115 |
+
- <ClInclude Include="$(zlibDir)\zlib.h">
|
| 116 |
+
- <Filter>Modules\zlib</Filter>
|
| 117 |
+
- </ClInclude>
|
| 118 |
+
- <ClInclude Include="$(zlibDir)\zutil.h">
|
| 119 |
+
- <Filter>Modules\zlib</Filter>
|
| 120 |
+
- </ClInclude>
|
| 121 |
+
<ClInclude Include="..\Include\internal\pycore_structseq.h">
|
| 122 |
+
<Filter>Include\internal</Filter>
|
| 123 |
+
</ClInclude>
|
| 124 |
+
@@ -1208,39 +1175,6 @@
|
| 125 |
+
<ClCompile Include="..\Modules\_contextvarsmodule.c">
|
| 126 |
+
<Filter>Modules</Filter>
|
| 127 |
+
</ClCompile>
|
| 128 |
+
- <ClCompile Include="$(zlibDir)\adler32.c">
|
| 129 |
+
- <Filter>Modules\zlib</Filter>
|
| 130 |
+
- </ClCompile>
|
| 131 |
+
- <ClCompile Include="$(zlibDir)\compress.c">
|
| 132 |
+
- <Filter>Modules\zlib</Filter>
|
| 133 |
+
- </ClCompile>
|
| 134 |
+
- <ClCompile Include="$(zlibDir)\crc32.c">
|
| 135 |
+
- <Filter>Modules\zlib</Filter>
|
| 136 |
+
- </ClCompile>
|
| 137 |
+
- <ClCompile Include="$(zlibDir)\deflate.c">
|
| 138 |
+
- <Filter>Modules\zlib</Filter>
|
| 139 |
+
- </ClCompile>
|
| 140 |
+
- <ClCompile Include="$(zlibDir)\infback.c">
|
| 141 |
+
- <Filter>Modules\zlib</Filter>
|
| 142 |
+
- </ClCompile>
|
| 143 |
+
- <ClCompile Include="$(zlibDir)\inffast.c">
|
| 144 |
+
- <Filter>Modules\zlib</Filter>
|
| 145 |
+
- </ClCompile>
|
| 146 |
+
- <ClCompile Include="$(zlibDir)\inflate.c">
|
| 147 |
+
- <Filter>Modules\zlib</Filter>
|
| 148 |
+
- </ClCompile>
|
| 149 |
+
- <ClCompile Include="$(zlibDir)\inftrees.c">
|
| 150 |
+
- <Filter>Modules\zlib</Filter>
|
| 151 |
+
- </ClCompile>
|
| 152 |
+
- <ClCompile Include="$(zlibDir)\trees.c">
|
| 153 |
+
- <Filter>Modules\zlib</Filter>
|
| 154 |
+
- </ClCompile>
|
| 155 |
+
- <ClCompile Include="$(zlibDir)\uncompr.c">
|
| 156 |
+
- <Filter>Modules\zlib</Filter>
|
| 157 |
+
- </ClCompile>
|
| 158 |
+
- <ClCompile Include="$(zlibDir)\zutil.c">
|
| 159 |
+
- <Filter>Modules\zlib</Filter>
|
| 160 |
+
- </ClCompile>
|
| 161 |
+
<ClCompile Include="..\Python\hamt.c">
|
| 162 |
+
<Filter>Python</Filter>
|
| 163 |
+
</ClCompile>
|
| 164 |
+
--
|
| 165 |
+
2.32.1 (Apple Git-133)
|
| 166 |
+
|
docker/overlay2/5477bcafbdf820cef392849c85094c2cd573a682f23f2ec90412e611799281ce/diff/root/miniconda3/pkgs/python-3.11.14-h6fa692b_0/info/recipe/parent/patches/0025-Do-not-pass-g-to-GCC-when-not-Py_DEBUG.patch
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
From 0f8e9aef6c845d89471aa936bb2ac75996256b9b Mon Sep 17 00:00:00 2001
|
| 2 |
+
From: Ray Donnelly <mingw.android@gmail.com>
|
| 3 |
+
Date: Wed, 16 Aug 2017 11:45:28 +0100
|
| 4 |
+
Subject: [PATCH 24/24] Do not pass -g to GCC when not Py_DEBUG
|
| 5 |
+
|
| 6 |
+
This bloats our exe and our modules a lot.
|
| 7 |
+
---
|
| 8 |
+
configure | 6 +++---
|
| 9 |
+
configure.ac | 2 +-
|
| 10 |
+
2 files changed, 4 insertions(+), 4 deletions(-)
|
| 11 |
+
|
| 12 |
+
Index: CPython/configure
|
| 13 |
+
===================================================================
|
| 14 |
+
--- CPython.orig/configure 2023-12-14 17:49:31.864960501 -0600
|
| 15 |
+
+++ CPython/configure 2023-12-14 17:50:52.191001230 -0600
|
| 16 |
+
@@ -4806,9 +4806,9 @@
|
| 17 |
+
CFLAGS=$ac_save_CFLAGS
|
| 18 |
+
elif test $ac_cv_prog_cc_g = yes; then
|
| 19 |
+
if test "$GCC" = yes; then
|
| 20 |
+
- CFLAGS="-g -O2"
|
| 21 |
+
+ CFLAGS="-O2"
|
| 22 |
+
else
|
| 23 |
+
- CFLAGS="-g"
|
| 24 |
+
+ CFLAGS=
|
| 25 |
+
fi
|
| 26 |
+
else
|
| 27 |
+
if test "$GCC" = yes; then
|
| 28 |
+
@@ -8138,7 +8138,7 @@
|
| 29 |
+
if test "$Py_DEBUG" = 'true' ; then
|
| 30 |
+
OPT="-g $PYDEBUG_CFLAGS -Wall"
|
| 31 |
+
else
|
| 32 |
+
- OPT="-g $WRAP -O3 -Wall"
|
| 33 |
+
+ OPT="$WRAP -O3 -Wall"
|
| 34 |
+
fi
|
| 35 |
+
;;
|
| 36 |
+
*)
|
| 37 |
+
Index: CPython/configure.ac
|
| 38 |
+
===================================================================
|
| 39 |
+
--- CPython.orig/configure.ac 2023-12-14 17:49:31.866025176 -0600
|
| 40 |
+
+++ CPython/configure.ac 2023-12-14 17:50:52.192276782 -0600
|
| 41 |
+
@@ -2089,7 +2089,7 @@
|
| 42 |
+
if test "$Py_DEBUG" = 'true' ; then
|
| 43 |
+
OPT="-g $PYDEBUG_CFLAGS -Wall"
|
| 44 |
+
else
|
| 45 |
+
- OPT="-g $WRAP -O3 -Wall"
|
| 46 |
+
+ OPT="$WRAP -O3 -Wall"
|
| 47 |
+
fi
|
| 48 |
+
;;
|
| 49 |
+
*)
|