summaryrefslogtreecommitdiff
path: root/PC
Commit message (Collapse)AuthorAgeFilesLines
* bpo-37369: Fix path handling when python.exe is used as a symlink (GH-14461)Steve Dower2019-07-011-44/+62
|
* bpo-37369: Fixes path for sys.executable when running from the Microsoft ↵Steve Dower2019-07-012-131/+99
| | | | Store (GH-14450)
* bpo-36672: Fix a compiler warning in winreg.SetValue() (GH-12882)Miss Islington (bot)2019-04-221-1/+1
| | | | | (cherry picked from commit 34366b7f914eedbcc33aebe882098a2199ffaf82) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* bpo-9194: Fix the bounds checking in winreg.c's fixupMultiSZ() (GH-12687)Miss Islington (bot)2019-04-221-1/+1
| | | | | (cherry picked from commit 56ed86490cb8221c874d432461d77702437f63e5) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* bpo-36649: Remove trailing spaces for registry keys when installed via the ↵Miss Islington (bot)2019-04-171-7/+6
| | | | | | | Store (GH-12865) (cherry picked from commit 4c3efd9cd07194b5db2a60ae5951134cda8b69db) Co-authored-by: Steve Dower <steve.dower@microsoft.com>
* bpo-36010: Add venv to the nuget distribution (GH-12367)Miss Islington (bot)2019-03-301-1/+9
| | | | | (cherry picked from commit e724152796a5a41544f52054506c6c2248242a5d) Co-authored-by: Paul Moore <p.f.moore@gmail.com>
* [3.7] bpo-36254: Fix invalid uses of %d in format strings in C. (GH-12264). ↵Serhiy Storchaka2019-03-141-3/+3
| | | | | | | (GH-12322) (cherry picked from commit d53fe5f407ff4b529628b01a1bcbf21a6aad5c3a) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-36140: Fix an incorrect check in msidb_getsummaryinformation() (GH-12074)Miss Islington (bot)2019-03-071-1/+1
| | | | | (cherry picked from commit bf94cc7b496a379e1f604aa2e4080bb70ca4020e) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* bpo-24643: Fix "GH-define timezone _timezone" clashes on Windows (GH-12019)Miss Islington (bot)2019-02-251-7/+0
| | | | | (cherry picked from commit 6673decfa0fb078f60587f5cb5e98460eea137c2) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* bpo-34691: Compile _contextvars module into main Python library (GH-11741)Miss Islington (bot)2019-02-021-0/+4
| | | | | (cherry picked from commit 4c70d9f79c9b371990c8e054ccde53f7ff15946b) Co-authored-by: Steve Dower <steve.dower@microsoft.com>
* bpo-32560: inherit the py launcher's STARTUPINFO (GH-9000)Miss Islington (bot)2019-02-021-1/+1
| | | | | | https://bugs.python.org/issue32560 (cherry picked from commit cb0904762681031edc50f9d7d7ef48cffcf96d9a) Co-authored-by: Shiva Saxena <shivasaxena911@gmail.com>
* bpo-1104: msilib.SummaryInfo.GetProperty() truncates the string by one ↵Miss Islington (bot)2019-02-021-10/+19
| | | | | | | | | character (GH-4517) Add one char to MsiSummaryInfoGetProperty() output Based on the patch in bpo-1104 by Anthony Tuininga (atuining) and Mark McMahon (markm). (cherry picked from commit 2de576e16d42ce43698d384d0dd46ba6cf165424) Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
* bpo-35811: Avoid propagating venv settings when launching via py.exe (GH-11677)Miss Islington (bot)2019-01-251-0/+11
| | | | | (cherry picked from commit adad9e68013aac166c84ffe4e23f3a5464f41840) Co-authored-by: Steve Dower <steve.dower@microsoft.com>
* bpo-35683: Improve Azure Pipelines steps (GH-11493)Steve Dower2019-01-221-0/+2
|
* bpo-35596: Use unchecked PYCs for the embeddable distro to avoid zipimport ↵Miss Islington (bot)2019-01-081-7/+13
| | | | | | | | restrictions (GH-11465) Also adds extra steps to the CI build for Windows on Azure Pipelines to validate that the various layouts at least execute. (cherry picked from commit 872bd2b57ce8e4ea7a54acb3934222c0e4e7276b) Co-authored-by: Steve Dower <steve.dower@microsoft.com>
* bpo-35596: Fix vcruntime140.dll being added to embeddable distro multiple ↵Miss Islington (bot)2018-12-271-1/+1
| | | | | | | | times. (GH-11329) https://bugs.python.org/issue35596 (cherry picked from commit 59c2aa25ffc864bf11bf3b3973828f00e268a992) Co-authored-by: Steve Dower <steve.dower@microsoft.com>
* bpo-11566: Extension build errors on Windows for _hypot (GH-11283)Miss Islington (bot)2018-12-211-6/+0
| | | | | | | | | | | | | This addresses C extension build errors related to an undefined _hypot symbol when building with the Microsoft Visual C++ Compiler for Python 2.7 [1] or MinGWPy [2]. It also addresses errors when building a C++ extension with MinGWPy and C++11 from cmath, 'error "::hypot' has not been declared' [1] https://www.microsoft.com/en-us/download/details.aspx?id=44266 [2] https://mingwpy.github.io/ (cherry picked from commit 87667c54c6650751c5d7bf7b9e465c8c4af45f71) Co-authored-by: Matt McCormick <matt@mmmccormick.com>
* [3.7] bpo-35489: Use "const Py_UNICODE *" for the Py_UNICODE converter in ↵Serhiy Storchaka2018-12-142-75/+83
| | | | | | AC. (GH-11150). (GH-11151) (cherry picked from commit afb3e71a1710c444fbe789b51df43ee16ee9ede7)
* bpo-34977: Remove unused preprocessor definition (GH-11092)Miss Islington (bot)2018-12-101-12/+0
| | | | | (cherry picked from commit d5a6a389d492c5e3d7933bafbd5252fd86ac4d49) Co-authored-by: Steve Dower <steve.dower@microsoft.com>
* bpo-34977: Add Windows App Store package (GH-11027)Steve Dower2018-12-1026-0/+2195
| | | Also adds the PC/layout script for generating layouts on Windows.
* [3.7] bpo-34977: Use venv redirector instead of original python.exe on ↵Steve Dower2018-12-102-16/+215
| | | | Windows (GH-11029)
* bpo-35441: Remove dead and buggy code related to PyList_SetItem(). (GH-11033)Miss Islington (bot)2018-12-081-3/+7
| | | | | | | | | | | | In _localemodule.c and selectmodule.c, remove dead code that would cause double decrefs if run. In addition, replace PyList_SetItem() with PyList_SET_ITEM() in cases where a new list is populated and there is no possibility of an error. In addition, check if the list changed size in the loop in array_array_fromlist(). (cherry picked from commit 99d56b53560b3867844472ae381fb3f858760621) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* Revert "[3.7] bpo-34977: Add Windows App Store package (GH-10245)" (GH-11021)Victor Stinner2018-12-0727-2393/+16
| | | This reverts commit 253209149389e6793a052034e1f2d97691086f18.
* bpo-35436: Add missing PyErr_NoMemory() calls and other minor bug fixes. ↵Zackery Spytz2018-12-072-2/+13
| | | | | (GH-11015) (GH-11020) (cherry picked from commit 4c49da0cb7434c676d70b9ccf38aca82ac0d64a9)
* [3.7] bpo-34977: Add Windows App Store package (GH-10245)Steve Dower2018-12-0627-16/+2390
|
* bpo-34532: Fixed exit code for py.exe list versions arg (GH-9039)Miss Islington (bot)2018-11-201-4/+5
| | | | | (cherry picked from commit c8fe9ccf7bfbcf9a2cb48e3b6abacf6ec0e5e58d) Co-authored-by: Brendan Gerrity <brerrity@gmail.com>
* bpo-35067: Remove _distutils_findvs and use vswhere.exe instead. (GH-10095)Miss Islington (bot)2018-10-277-1089/+0
| | | | | (cherry picked from commit 53125a53f483db0af76249b6af6efcdc200eb421) Co-authored-by: Steve Dower <steve.dower@microsoft.com>
* bpo-34565: Change a PC/launcher.c comment to accurately describe valid major ↵Miss Islington (bot)2018-10-051-2/+2
| | | | | | | versions. (GH-9037) (GH-9065) (cherry picked from commit 3876af4f7c2ef87db6d2d83efc229955968926dd) Co-authored-by: Brendan Gerrity <brerrity@gmail.com>
* bpo-34770: Fix a possible null pointer dereference in pyshellext.cpp (GH-9497)Miss Islington (bot)2018-09-241-0/+5
| | | | | | | | | The GlobalLock() call in UpdateDropDescription() was not checked for failure. https://bugs.python.org/issue34770 (cherry picked from commit f6c8007a29b95b3ea3ca687a9b4924769a696328) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* bpo-23855: Add missing NULL checks for malloc() in _msi.c (GH-9038)Miss Islington (bot)2018-09-071-0/+7
| | | | | (cherry picked from commit 4e519377b1b84c9414a360961276993d24198825) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* bpo-34062: Add missing launcher argument and make behavior consistent ↵Miss Islington (bot)2018-08-311-8/+11
| | | | | | | | | between short and long arguments (GH-8827) Added previously missing "--list" argument. Made "--list" and "--list-paths" behavior consistent with the corresponding "-0" and "-0p" arguments. (cherry picked from commit aada63b20ec64bbfc4f2fb0718fc563eedbdd36a) Co-authored-by: Brendan Gerrity <brerrity@gmail.com>
* bpo-34217: Use lowercase header for Windows (GH-8453)Miss Islington (bot)2018-07-291-1/+1
| | | | | (cherry picked from commit 6cf8255912c36fec6f87f62513034d0818f61390) Co-authored-by: erikjanss <erik.janssens@conceptive.be>
* Add missing va_end() calls in PC/launcher.c (GH-7690)Miss Islington (bot)2018-06-151-0/+2
| | | | | (cherry picked from commit 3a6d752e35ad17fc00bc77b85364b1c599f4e0fe) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* [3.7] Add missed details of the C API introduced in 3.7. (GH-7047) (GH-7061)Serhiy Storchaka2018-05-221-0/+2
| | | | | | | | * Set the limited API version for PyImport_GetModule and PyOS_*Fork functions. * Add PyImport_GetModule and Py_UTF8Mode in PC/python3.def. * Add several functions in Doc/data/refcounts.dat. (cherry picked from commit 4e29f566e8821c09d8274eadcdd355e8b1284b8b)
* bpo-32604: Remove xid registry. (#6813)Eric Snow2018-05-151-3/+1
| | | Remove the interpreters testing helper (and xid registry).
* bpo-32457: Improves handling of denormalized executable path when launching ↵Miss Islington (bot)2018-02-221-54/+42
| | | | | | | Python (GH-5756) (cherry picked from commit 48e8c82fc63d2ddcddce8aa637a892839b551619) Co-authored-by: Steve Dower <steve.dower@microsoft.com>
* bpo-31333: Re-implement ABCMeta in C (GH-5733)Ivan Levkivskyi2018-02-181-0/+2
| | | | This adds C versions of methods used by ABCMeta that improve performance of various ABC operations.
* bpo-32604: Make _xxsubinterpreters build on Windows (GH-5624)Miss Islington (bot)2018-02-111-0/+3
| | | | | | | | This is not the ideal solution; this means that a test module is now always included in the main python3x.dll. However, we're already including xxsubtype, so why not? (cherry picked from commit 310b05289b5d9550040f469e60b5e8e77f1022b6) Co-authored-by: Zachary Ware <zachary.ware@gmail.com>
* rename _imp initialization function to follow conventions (#5432)Benjamin Peterson2018-01-291-2/+2
| | | When the C imp module became _imp in 6f44d66bc491bad5b8d897a68da68e009e27829d, the initialization function should have been renamed from PyInit_imp to PyInit__imp.
* bpo-31399: Let OpenSSL verify hostname and IP address (#3462)Christian Heimes2018-01-271-0/+3
| | | | | | | | | | | | | | | bpo-31399: Let OpenSSL verify hostname and IP The ssl module now uses OpenSSL's X509_VERIFY_PARAM_set1_host() and X509_VERIFY_PARAM_set1_ip() API to verify hostname and IP addresses. * Remove match_hostname calls * Check for libssl with set1_host, libssl must provide X509_VERIFY_PARAM_set1_host() * Add documentation for OpenSSL 1.0.2 requirement * Don't support OpenSSL special mode with a leading dot, e.g. ".example.org" matches "www.example.org". It's not standard conform. * Add hostname_checks_common_name Signed-off-by: Christian Heimes <christian@python.org>
* bpo-32030: Add _PyCoreConfig.module_search_paths (#4954)Victor Stinner2018-01-241-0/+3
| | | | | | | | | | | _PyCoreConfig_Read() is now responsible to compute sys.path. So sys.path is now computed before calling _Py_InitializeCore(). Changes: * Add module_search_path, module_search_paths, executable, prefix, base_prefix, exec_prefix and base_exec_prefix to _PyCoreConfig. * _PyMainInterpreterConfig_Read() now only converts wchar_t** lists into a Python list, it doesn't compute sys.path anymore.
* bpo-32588: Move _findvs into its own module and add missing _queue module to ↵Steve Dower2018-01-192-11/+4
| | | | installer (#5227)
* bpo-32507: Change Windows install to include app-local UCRT (#5119)Steve Dower2018-01-091-77/+0
|
* bpo-32030: Add _Py_FindEnvConfigValue() (#4963)Victor Stinner2017-12-211-53/+3
| | | | | | | | | | | | | | | Add a new _Py_FindEnvConfigValue() function: code shared between Windows and Unix implementations of _PyPathConfig_Calculate() to read the pyenv.cfg file. _Py_FindEnvConfigValue() now uses _Py_DecodeUTF8_surrogateescape() instead of using a Python Unicode string, the Python API must not be used early during Python initialization. Same change in Unix search_for_exec_prefix(): use _Py_DecodeUTF8_surrogateescape(). Cleanup also encode_current_locale(): PyMem_RawFree/PyMem_Free can be called with NULL. Fix also "NUL byte" => "NULL byte" typo.
* bpo-32240: Add the const qualifier to declarations of PyObject* array ↵Serhiy Storchaka2017-12-154-31/+31
| | | | arguments. (#4746)
* bpo-32030: Rewrite _PyMainInterpreterConfig (#4854)Victor Stinner2017-12-141-23/+22
| | | | | | | | | | | | | | | | | | | | _PyMainInterpreterConfig now contains Python objects, whereas _PyCoreConfig contains wchar_t* strings. Core config: * Rename _PyMainInterpreterConfig_ReadEnv() to _PyCoreConfig_ReadEnv() * Move 3 strings from _PyMainInterpreterConfig to _PyCoreConfig: module_search_path_env, home, program_name. * Add _PyCoreConfig_Clear() * _PyPathConfig_Calculate() now takes core config rather than main config * _PyMainInterpreterConfig_Read() now requires also a core config Main config: * Add _PyMainInterpreterConfig.module_search_path: sys.path list * Add _PyMainInterpreterConfig.argv: sys.argv list * _PyMainInterpreterConfig_Read() now computes module_search_path
* bpo-32241: Add the const qualifire to declarations of umodifiable strings. ↵Serhiy Storchaka2017-12-121-11/+11
| | | | (#4748)
* Revert "bpo-32197: Try to fix a compiler error on OS X introduced in ↵Victor Stinner2017-12-041-149/+35
| | | | | | | | | | | | | | | | | | | | | | | bpo-32030. (#4681)" (#4694) * Revert "bpo-32197: Try to fix a compiler error on OS X introduced in bpo-32030. (#4681)" This reverts commit 13badcbc60cdbfae1dba1683fd2fae9d70717143. Re-apply commits: * "bpo-32030: _PyPathConfig_Init() sets home and program_name (#4673)" commit af5a895073c24637c094772b27526b94a12ec897. * "bpo-32030: Fix config_get_program_name() on macOS (#4669)" commit e23c06e2b03452c9aaf0dae52296c85e572f9bcd. * "bpo-32030: Add Python/pathconfig.c (#4668)" commit 0ea395ae964c9cd0f499e2ef0d0030c971201220. * "bpo-32030: Don't call _PyPathConfig_Fini() in Py_FinalizeEx() (#4667)" commit ebac19dad6263141d5db0a2c923efe049dba99d2. * "bpo-32030: Fix Py_GetPath(): init program_name (#4665)" commit 9ac3d8882712c9675c3d2f9f84af6b5729575cde. * Fix compilation error on macOS
* bpo-32197: Try to fix a compiler error on OS X introduced in bpo-32030. (#4681)Serhiy Storchaka2017-12-021-35/+149
| | | | | | | | | | | | | | | | | | | | | | * Revert "bpo-32030: _PyPathConfig_Init() sets home and program_name (#4673)" This reverts commit af5a895073c24637c094772b27526b94a12ec897. * Revert "bpo-32030: Fix config_get_program_name() on macOS (#4669)" This reverts commit e23c06e2b03452c9aaf0dae52296c85e572f9bcd. * Revert "bpo-32030: Add Python/pathconfig.c (#4668)" This reverts commit 0ea395ae964c9cd0f499e2ef0d0030c971201220. * Revert "bpo-32030: Don't call _PyPathConfig_Fini() in Py_FinalizeEx() (#4667)" This reverts commit ebac19dad6263141d5db0a2c923efe049dba99d2. * Revert "bpo-32030: Fix Py_GetPath(): init program_name (#4665)" This reverts commit 9ac3d8882712c9675c3d2f9f84af6b5729575cde.
* bpo-32030: _PyPathConfig_Init() sets home and program_name (#4673)Victor Stinner2017-12-021-18/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | _PyPathConfig_Init() now also initialize home and program_name: * Rename existing _PyPathConfig_Init() to _PyPathConfig_Calculate(). Add a new _PyPathConfig_Init() function in pathconfig.c which handles the _Py_path_config variable and call _PyPathConfig_Calculate(). * Add home and program_name fields to _PyPathConfig.home * _PyPathConfig_Init() now initialize home and program_name from main_config * Py_SetProgramName(), Py_SetPythonHome() and Py_GetPythonHome() now calls Py_FatalError() on failure, instead of silently ignoring failures. * config_init_home() now gets directly _Py_path_config.home to only get the value set by Py_SetPythonHome(), or NULL if Py_SetPythonHome() was not called. * config_get_program_name() now gets directly _Py_path_config.program_name to only get the value set by Py_SetProgramName(), or NULL if Py_SetProgramName() was not called. * pymain_init_python() doesn't call Py_SetProgramName() anymore, _PyPathConfig_Init() now always sets the program name * Call _PyMainInterpreterConfig_Read() in pymain_parse_cmdline_envvars_impl() to control the memory allocator * C API documentation: it's no more safe to call Py_GetProgramName() before Py_Initialize().