summaryrefslogtreecommitdiffstats
path: root/PC
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright year to 2022. (GH-30335) (GH-31478)Miss Islington (bot)2022-03-081-1/+1
| | | | | | Automerge-Triggered-By: GH:benjaminp (cherry picked from commit ba00f0d93a4aea85ae8089f139856a7c450584d7) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* bpo-43637: Fix a possible memory leak in winreg.SetValueEx() (GH-25038)Miss Islington (bot)2021-03-301-0/+1
| | | | | (cherry picked from commit dfeec347f21b86879ba8f27f567bb275b243f1bc) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* Bring Python into the new year. (GH-24036)Miss Islington (bot)2021-01-011-1/+1
| | | | | (cherry picked from commit de6f20a6de48d63066b2cf5b317f50629f01d74a) Co-authored-by: Dong-hee Na <donghee.na@python.org>
* bpo-42120: Remove macro defining copysign to _copysign on Windows (GH-23326)Miss Islington (bot)2020-11-161-1/+0
| | | | | (cherry picked from commit 9cc9e277254023c0ca08e1a9e379fd89475ca9c2) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-38439: Update the Windows Store package's icons for IDLE. Artwork by ↵Miss Skeleton (bot)2020-10-203-2/+7
| | | | | | | Andrew Clover (GH-22817) (cherry picked from commit 6d883fbe14751b58d9ed2fd708322613d8931035) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-41729: Fix test_winconsole failures (3) and hang (GH-22146)Miss Islington (bot)2020-09-121-1/+1
| | | | | | | The problems occured with a repository build on machine with freshly updated Windows 10 Pro. (cherry picked from commit 31c9828ec026e5d9b9122d55bf0aa7cb45bfecc5) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-41304: Ensure python3x._pth is loaded on Windows (GH-21495)Miss Islington (bot)2020-07-151-1/+1
| | | | | (cherry picked from commit 936a66094591dc0e67d4a60c170148bb700ec016) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-29778: Ensure python3.dll is loaded from correct locations when Python ↵Miss Islington (bot)2020-07-061-77/+73
| | | | | | | | | is embedded (GH-21297) (GH-21352) Also enables using debug build of `python3_d.dll` Reference: CVE-2020-15523 (cherry picked from commit dcbaa1b49cd9062fb9ba2b9d49555ac6cd8c60b5) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-41074: Fix support of non-ASCII names and SQL in msilib. (GH-21126)Miss Islington (bot)2020-06-251-6/+6
| | | | | | | | * Fix support of non-ASCII names in functions OpenDatabase() and init_database(). * Fix support of non-ASCII SQL in method Database.OpenView(). (cherry picked from commit 55939b1708d6fc0d36d2be11ccdc6bf207e1bd41) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-41038: Fix non-ASCII string corruption in Win32 resource files (GH-20985)Miss Islington (bot)2020-06-241-0/+1
| | | | | | | | | | | In absence of explicit declaration, resource compiler uses system codepage. When this codepage is DBCS or UTF-8, Python's copyright string is corrupted, because it contains copyright sign encoded as \xA9. The fix is to explicitly declare codepage 1252. (cherry picked from commit 33b79b11b891adea5a916df8e3779505b37aabe7) Co-authored-by: Nikita Nemkin <nikita@nemkin.ru>
* bpo-35890: Use RegQueryInfoKeyW and CryptAcquireContextW explicitly (GH-19974)Miss Islington (bot)2020-05-182-4/+4
| | | | | (cherry picked from commit 98e42d1f882b9b59f587d538c562dbc7d11c64c3) Co-authored-by: Minmin Gong <gongminmin@msn.com>
* bpo-40158: Fix CPython MSBuild Properties in NuGet Package (GH-19343)Miss Islington (bot)2020-04-031-2/+1
| | | | | | Fix default Python home path relative to the NuGet package (cherry picked from commit 6e623ff9d251e0ce86e9b18a01bfd6f067079d7a) Co-authored-by: Chris Martinez <sydefekt@hotmail.com>
* bpo-39930: Convert error to warning for more silent failure (GH-18921)Miss Islington (bot)2020-03-111-0/+4
| | | | | | Makes it an error to create a layout without vcruntime DLL (cherry picked from commit fde44ae6d08d3df79554155b1cf079e73a8fabdd) Co-authored-by: Steve Dower <steve.dower@python.org>
* [3.8] bpo-39794: Add --without-decimal-contextvar (GH-18702)Stefan Krah2020-02-291-0/+4
| | | (cherry picked from commit 815280eb160af637e1347213659f9236adf78f80)
* bpo-39789: Update Windows release build machines to VS 2019 (GH-18695)Miss Islington (bot)2020-02-291-5/+5
| | | | | | Also fixes some potential Nuget build issues. (cherry picked from commit 03153dd1459fab94f294a118ed1525e34d58601a) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-38403: Update nuspec file for deprecated field and git repository (GH-18657)Miss Islington (bot)2020-02-253-0/+7
| | | | | (cherry picked from commit d6448919702142123d937a54f20a81aeaf8d2acc) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-39184: Fix incorrect return value (GH-18580)Miss Islington (bot)2020-02-201-1/+1
| | | | | | | | https://bugs.python.org/issue39184 Automerge-Triggered-By: @zooba (cherry picked from commit 6c444d0dab8f06cf304263b34beb299101cef3de) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-39184: Add audit events to functions in `fcntl`, `msvcrt`, `os`, ↵Steve Dower2020-02-131-0/+12
| | | | | | `resource`, `shutil`, `signal`, `syslog` (GH-18407) Co-authored-by: Saiyang Gou <gousaiyang@163.com>
* [3.8] bpo-39401: Avoid unsafe DLL load on Windows 7 and earlier (GH-18231) ↵Steve Dower2020-01-301-2/+4
| | | | | | | | | (GH-18234) https://bugs.python.org/issue39401 Automerge-Triggered-By: @zooba
* bpo-39012: Fix RC version suffix for nuget release files (GH-17564)Miss Islington (bot)2019-12-101-1/+1
| | | | | (cherry picked from commit d0802d07d2c864b95480a9b24c7cc050e19189d5) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-39007: Add auditing events to functions in winreg (GH-17541)Miss Islington (bot)2019-12-091-27/+131
| | | | | | Also allows winreg.CloseKey() to accept same types as other functions. (cherry picked from commit ee17e3735634c5fe15a43f897707de8011618627) Co-authored-by: Steve Dower <steve.dower@python.org>
* Fix APPX registry key generation (GH-17489)Miss Islington (bot)2019-12-091-11/+11
| | | | | (cherry picked from commit e89e159b18cc9f32a0a4a818d080eb6a63d888a7) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-33125: Add support for building and releasing Windows ARM64 packages ↵Steve Dower2019-12-065-48/+113
| | | | | (GH-17480) Note that the support is not actually enabled yet, and so we won't be publishing these packages. However, for those who want to build it themselves (even by reusing the Azure Pipelines definition), it's now relatively easy to enable.
* bpo-38519: Internal include files missing on Windows (GH-16921)Miss Skeleton (bot)2019-10-281-6/+1
| | | | | (cherry picked from commit edb172a87296d9359593a23cd9a09f5867ea1f0e) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* bpo-38359: Ensures pyw.exe launcher reads correct registry key (GH-16561)Miss Islington (bot)2019-10-031-1/+9
| | | | | (cherry picked from commit 353fb1ecbfd58752dabae115c4964095e1e35e5f) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-38343: Fixes version handling for nuget packages (GH-16527)Miss Islington (bot)2019-10-021-1/+1
| | | | | (cherry picked from commit b9a8b8296cd7be22f8b5bf92af686a788c47c7bf) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-38304: PyConfig_InitPythonConfig() cannot fail anymore (GH-16509)Miss Islington (bot)2019-10-011-4/+1
| | | | | | | PyConfig_InitPythonConfig() and PyConfig_InitIsolatedConfig() no longer return PyStatus: they cannot fail anymore. (cherry picked from commit 8462a4936b3a551dc546a6adea04a70b0a07ca67) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* bpo-38304: Remove PyConfig.struct_size (GH-16500)Victor Stinner2019-09-301-8/+1
| | | | | For now, we'll rely on the fact that the config structures aren't covered by the stable ABI. We may revisit this in the future if we further explore the idea of offering a stable embedding API.
* bpo-38322: Fix gotlandmark() of PC/getpathp.c (GH-16490)Victor Stinner2019-09-301-8/+6
| | | | | | Write the filename into a temporary buffer instead of reusing prefix. The problem is that join() modifies prefix inplace. If prefix is not normalized, join() can make prefix shorter and so gotlandmark() does modify prefix instead of returning it unmodified.
* bpo-38304: Fix PyConfig usage in python_uwp.cpp (GH-16488)Victor Stinner2019-09-301-1/+7
| | | | | * Set PyPreConfig.struct_size and PyConfig.struct_size as required by the API. * PyPreConfig_InitPythonConfig() can now fail: check PyStatus result.
* [3.8] bpo-38234: Backport init path config changes from master (GH-16423)Victor Stinner2019-09-261-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bpo-38234: Py_SetPath() uses the program full path (GH-16357) Py_SetPath() now sets sys.executable to the program full path (Py_GetProgramFullPath()), rather than to the program name (Py_GetProgramName()). Fix also memory leaks in pathconfig_set_from_config(). (cherry picked from commit 1ce152a42eaa917d7763bce93f1e1ca72530d7ca) * bpo-38234: Add tests for Python init path config (GH-16358) (cherry picked from commit bb6bf7d342b4503a6227fd209fac934905b6a1aa) * bpo-38234: test_embed: test pyvenv.cfg and pybuilddir.txt (GH-16366) Add test_init_pybuilddir() and test_init_pyvenv_cfg() to test_embed to test pyvenv.cfg and pybuilddir.txt configuration files. Fix sysconfig._generate_posix_vars(): pybuilddir.txt uses UTF-8 encoding, not ASCII. (cherry picked from commit 52ad33abbfb6637d74932617c7013bae0ccf6e32) * bpo-38234: Cleanup getpath.c (GH-16367) * search_for_prefix() directly calls reduce() if found is greater than 0. * Add calculate_pybuilddir() subfunction. * search_for_prefix(): add path string buffer for readability. * Fix some error handling code paths: release resources on error. * calculate_read_pyenv(): rename tmpbuffer to filename. * test.pythoninfo now also logs windows.dll_path (cherry picked from commit 221fd84703c545408bbb4a6e0b58459651331f5c) * bpo-38234: Fix test_embed pathconfig tests (GH-16390) bpo-38234: On macOS and FreeBSD, the temporary directory can be symbolic link. For example, /tmp can be a symbolic link to /var/tmp. Call realpath() to resolve all symbolic links. (cherry picked from commit 00508a7407d7d300b487532e2271534b20e378a7) * bpo-38234: Add test_init_setpath_config() to test_embed (GH-16402) * Add test_embed.test_init_setpath_config(): test Py_SetPath() with PyConfig. * test_init_setpath() and test_init_setpythonhome() no longer call Py_SetProgramName(), but use the default program name. * _PyPathConfig: isolated, site_import and base_executable fields are now only available on Windows. * If executable is set explicitly in the configuration, ignore calculated base_executable: _PyConfig_InitPathConfig() copies executable to base_executable. * Complete path config documentation. (cherry picked from commit 8bf39b606ef7b02c0279a80789f3c4824b0da5e9) * bpo-38234: Complete init config documentation (GH-16404) (cherry picked from commit 88feaecd46a8f427e30ef7ad8cfcddfe392a2402) * bpo-38234: Fix test_embed.test_init_setpath_config() on FreeBSD (GH-16406) Explicitly preinitializes with a Python preconfiguration to avoid Py_SetPath() implicit preinitialization with a compat preconfiguration. Fix also test_init_setpath() and test_init_setpythonhome() on macOS: use self.test_exe as the executable (and base_executable), rather than shutil.which('python3'). (cherry picked from commit 49d99f01e6e51acec5ca57a02e857f0796bc418b) * bpo-38234: Py_Initialize() sets global path configuration (GH-16421) * Py_InitializeFromConfig() now writes PyConfig path configuration to the global path configuration (_Py_path_config). * Add test_embed.test_get_pathconfig(). * Fix typo in _PyWideStringList_Join(). (cherry picked from commit 12f2f177fc483723406d7917194e7f655a20631b)
* bpo-38234: read_pth_file() now returns PyStatus (GH-16338)Miss Islington (bot)2019-09-231-76/+131
| | | | | | | | | | | | Refactor path configuration code: * read_pth_file() now returns PyStatus to report errors, rather than calling Py_FatalError(). * Move argv0_path and zip_path buffers out of PyCalculatePath structures. * On Windows, _PyPathConfig.home is now preferred over PyConfig.home. (cherry picked from commit 85ce0a7178801b538160cbb5cf9ef50a713c45bf) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* bpo-38234: Fix _PyConfig_InitPathConfig() (GH-16335) (GH-16336)Victor Stinner2019-09-231-41/+69
| | | | | | | | | | | | | | | | | | * _PyConfig_InitPathConfig() now starts by copying the global path configuration, and then override values set in PyConfig. * _PyPathConfig_Calculate() implementations no longer override _PyPathConfig fields which are already computed. For example, if _PyPathConfig.prefix is not NULL, leave it unchanged. * If Py_SetPath() has been called, _PyConfig_InitPathConfig() doesn't call _PyPathConfig_Calculate() anymore. * _PyPathConfig_Calculate() no longer uses PyConfig, except to initialize PyCalculatePath structure. * pathconfig_calculate(): remove useless temporary "_PyPathConfig new_config" variable. * calculate_module_search_path(): remove hack to workaround memory allocation failure, call Py_FatalError() instead. * Fix get_program_full_path(): handle memory allocation failure. (cherry picked from commit 9c42f8cda552694f3b47d6388d4ae84d61731872)
* bpo-38236: Dump path config at first import error (GH-16300) (GH-16332)Victor Stinner2019-09-231-3/+2
| | | | | | Python now dumps path configuration if it fails to import the Python codecs of the filesystem and stdio encodings. (cherry picked from commit fcdb027234566c4d506d6d753c7d5638490fb088)
* [3.8] bpo-38234: Fix PyConfig_Read() when Py_SetPath() was called (GH-16298) ↵Victor Stinner2019-09-211-28/+40
| | | | | | | | | | | | | | | | | | | | | | | | | (GH-16313) * bpo-38234: Remove _PyPathConfig.dll_path (GH-16307) The DLL path is not computed from any user configuration and cannot be configured by PyConfig. Instead, add a new _Py_dll_path global variable. Remove _PyConfig_SetPathConfig(): replaced with _PyPathConfig_Init(). Py_Initialize() now longer sets the "global path configuration", but only initialize _Py_dll_path. (cherry picked from commit c422167749f92d4170203e996a2c619c818335ea) * bpo-38234: Fix PyConfig_Read() when Py_SetPath() was called (GH-16298) * If Py_SetPath() has been called, _PyConfig_InitPathConfig() now uses its value. * Py_Initialize() now longer copies path configuration from PyConfig to the global path configuration (_Py_path_config). (cherry picked from commit e267793aa4101b2771ed0e66aaff5743d23f59af)
* bpo-38133: Allow py.exe launcher to locate installations from the Microsoft ↵Miss Islington (bot)2019-09-121-101/+209
| | | | | | | Store (GH-16025) (cherry picked from commit ed93a8852d120c5a3606720edc723bf5aa6a1fc2) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-38114: Do not include pip.ini in Nuget package (GH-15964)Miss Islington (bot)2019-09-112-5/+8
| | | | | (cherry picked from commit 19f6940cd7fb91246b88e1fbdbce97a02e7f3fa1) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-32587: Fixes unsafe downcast in PC/winreg.c (GH-15766)Miss Islington (bot)2019-09-091-1/+1
| | | | | (cherry picked from commit ef66f31ce21cd759cc0c618c5c42ba6da0a06834) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-37705: Improve the implementation of winerror_to_errno() (GH-15623)Miss Islington (bot)2019-09-092-109/+137
| | | | | | | | winerror_to_errno() is no longer automatically generated. Do not rely on the old _dosmapperr() function. Add ERROR_NO_UNICODE_TRANSLATION (1113) -> EILSEQ. (cherry picked from commit 19052a11314e7be7ba003fd6cdbb5400a5d77d96) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* bpo-32587: Make winreg.REG_MULTI_SZ support zero-length strings (GH-13239)Miss Islington (bot)2019-09-091-16/+25
| | | | | | | | * bpo-32587: Make winreg.REG_MULTI_SZ support PendingFileRenameOperations * Address review comments. (cherry picked from commit e223ba13d8d871ee58570dfca4e82a591189cc2f) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* bpo-37445: Include FORMAT_MESSAGE_IGNORE_INSERTS in FormatMessageW() calls ↵Miss Islington (bot)2019-09-091-1/+2
| | | | | | | | (GH-14462) If FormatMessageW() is passed the FORMAT_MESSAGE_FROM_SYSTEM flag without FORMAT_MESSAGE_IGNORE_INSERTS, it will fail if there are insert sequences in the message definition. (cherry picked from commit a6563650c835d50f7302971a5b145e94f9d0dc68) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* [3.8] bpo-37034: Display argument name on errors with keyword arguments with ↵Serhiy Storchaka2019-08-292-9/+9
| | | | | | | Argument Clinic. (GH-13593). (GH-15599) (cherry picked from commit 4901fe274bc82b95dc89bcb3de8802a3dfedab32) Co-authored-by: Rémi Lapeyre <remi.lapeyre@henki.fr>
* [3.8] bpo-37757: Disallow PEP 572 cases that expose implementation details ↵Nick Coghlan2019-08-251-1/+0
| | | | | | | | | | | | | | | | | | | (GH-15491) - drop TargetScopeError in favour of raising SyntaxError directly as per the updated PEP 572 - comprehension iteration variables are explicitly local, but named expression targets in comprehensions are nonlocal or global. Raise SyntaxError as specified in PEP 572 - named expression targets in the outermost iterable of a comprehension have an ambiguous target scope. Avoid resolving that question now by raising SyntaxError. PEP 572 originally required this only for cases where the bound name conflicts with the iteration variable in the comprehension, but CPython can't easily restrict the exception to that case (as it doesn't know the target variable names when visiting the outermost iterator expression) (cherry picked from commit 5dbe0f59b7a4f39c7c606b48056bc29e406ebf78)
* [3.8] bpo-37830: Fix compilation of break and continue in finally. ↵Serhiy Storchaka2019-08-241-1/+1
| | | | | | | | | (GH-15320) (GH-15456) Fix compilation of "break" and "continue" in the "finally" block when the corresponding "try" block contains "return" with a non-constant value. (cherry picked from commit ef61c524ddeeb56da3858b86e349e7288d68178e)
* bpo-37798: Add C fastpath for statistics.NormalDist.inv_cdf() (GH-15266) ↵Miss Islington (bot)2019-08-231-0/+2
| | | | | | | (GH-15441) (cherry picked from commit 0a18ee4be7ba215f414bef04598e0849504f9f1e) Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
* bpo-27961: Remove leftovers from the times when long long wasn't required ↵Miss Islington (bot)2019-08-221-1/+1
| | | | | | | (GH-15388) (cherry picked from commit a38e9d139929a227e3899fbb638bc46c6cc6d8ba) Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>
* Remove versioned executables from non-APPX packages (GH-15237)Miss Islington (bot)2019-08-121-3/+0
| | | | | (cherry picked from commit c1aeb292d206e12b900dc4f7f816246c3a57c2ac) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-37734: Remove unnecessary brace escapes in PC/layout script (GH-15165)Miss Islington (bot)2019-08-071-1/+1
| | | | | (cherry picked from commit 0378d98678f3617fd44d9a6266e7c17ebce62755) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-37778: Fixes the icons used for file associations to the Microsoft Store ↵Miss Islington (bot)2019-08-072-14/+19
| | | | | | | package (GH-15150) (cherry picked from commit 87ce9588ceb4b4dd625913344844390f0b991b0c) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-37734: Fix use of registry values to launch Python from Microsoft Store ↵Miss Islington (bot)2019-08-072-9/+15
| | | | | | | app (GH-15146) (cherry picked from commit 1fab9cbfbaf19a7bc79cef382136fcf9491e3183) Co-authored-by: Steve Dower <steve.dower@python.org>