[issue41490] Update bundled pip to 20.2.1 and setuptools to 49.2.1

2020-08-05 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +20892 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/21748 ___ Python tracker <https://bugs.python.org/issu

[issue41490] Update bundled pip to 20.2.1 and setuptools to 49.2.1

2020-08-05 Thread Steve Dower
Steve Dower added the comment: Test failure on Windows. I'll take a look tomorrow. == FAIL: test_with_pip (test.test_venv.EnsurePipTest) -- Traceback

[issue41492] Fix signing description for Windows release builds

2020-08-05 Thread Steve Dower
New submission from Steve Dower : At some point, Windows started displaying an authenticated certificate property as the display name in UAC prompts, rather than the file properties. Currently our SigningDescription is set to the build identifier, which is not a nice display name. We should

[issue41492] Fix signing description for Windows release builds

2020-08-06 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +20899 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/21754 ___ Python tracker <https://bugs.python.org/issu

[issue41304] [CVE-2020-15801] python 38 embed ignore python38._pth file on windows

2020-08-06 Thread Steve Dower
Steve Dower added the comment: Yes, it only affects Windows OS. On all other platforms, the python38._pth file is _always_ ignored. We have not implemented this support for those platforms. -- ___ Python tracker <https://bugs.python.

[issue41492] Fix signing description for Windows release builds

2020-08-06 Thread Steve Dower
Steve Dower added the comment: New changeset 777b611c8c5676b80898a429f71d28e59bddc49d by Steve Dower in branch 'master': bpo-41492: Fixes the description appearing in UAC prompts on Windows (GH-21754) https://github.com/python/cpython/commit/777b611c8c5676b80898a429f71d28

[issue41490] Update bundled pip to 20.2.1 and setuptools to 49.2.1

2020-08-07 Thread Steve Dower
Steve Dower added the comment: The issue above doesn't appear to repro on 3.9, so I guess master has started leaking a file handle, presumably in zipimport. I'll see what I can track down, but can't be sure I'll have enough time to get it done for RC, so if anyone el

[issue41490] Update bundled pip to 20.2.1 and setuptools to 49.2.1

2020-08-07 Thread Steve Dower
Steve Dower added the comment: Okay, I've tracked it down to the new importlib.readers.ZipReader class keeping the zip file open, presumably until it gets GC'd. This is used by certifi to extract the CA certs from the whl when ensurepip is doing the self-install from the mou

[issue41490] Update bundled pip to 20.2.1 and setuptools to 49.2.1

2020-08-07 Thread Steve Dower
Steve Dower added the comment: Added some test cases to the PR that directly trigger the issue, specifically this one: def test_entered_path_does_not_keep_open(self): # This is what certifi does on import to make its bundle # available for the process duration. c

[issue41490] Update bundled pip to 20.2.1 and setuptools to 49.2.1

2020-08-07 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +20919 pull_request: https://github.com/python/cpython/pull/21774 ___ Python tracker <https://bugs.python.org/issue41

[issue41490] Update bundled pip to 20.2.1 and setuptools to 49.2.1

2020-08-07 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +20920 pull_request: https://github.com/python/cpython/pull/21775 ___ Python tracker <https://bugs.python.org/issue41

[issue41490] Update bundled pip to 20.2.1 and setuptools to 49.2.1

2020-08-07 Thread Steve Dower
Steve Dower added the comment: GitHub Actions has decided not to run CI today, so you'll have to look at Azure Pipelines for the test failures: https://dev.azure.com/Python/cpython/_build/results?buildId=67152&view=logs&j=c83831cd-3752-5cc7-2f01-8276919eb334&t=5a421c

[issue41490] Update bundled pip to 20.2.1 and setuptools to 49.2.1

2020-08-07 Thread Steve Dower
Steve Dower added the comment: New changeset 135de08128a76f49752ac57c316129500275e828 by Steve Dower in branch '3.8': bpo-41490: Update ensurepip to install pip 20.2.1 and setuptools 49.2.1 (GH-21775) https://github.com/python/cpython/commit/135de08128a76f49752ac57c316129

[issue41490] Update bundled pip to 20.2.1 and setuptools to 49.2.1

2020-08-07 Thread Steve Dower
Change by Steve Dower : -- versions: -Python 3.8 ___ Python tracker <https://bugs.python.org/issue41490> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41490] Update bundled pip to 20.2.1 and setuptools to 49.2.1

2020-08-07 Thread Steve Dower
Steve Dower added the comment: New changeset 70e9243a55be9c32b41f2149cdfa3957f96f8471 by Steve Dower in branch '3.9': bpo-41490: Update ensurepip to install pip 20.2.1 and setuptools 49.2.1 (GH-21774) https://github.com/python/cpython/commit/70e9243a55be9c32b41f2149cdfa39

[issue41490] Update bundled pip to 20.2.1 and setuptools to 49.2.1

2020-08-07 Thread Steve Dower
Change by Steve Dower : -- versions: -Python 3.9 ___ Python tracker <https://bugs.python.org/issue41490> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41501] 0x80070643, can't install any version

2020-08-09 Thread Steve Dower
Steve Dower added the comment: The Python 3.8 and 3.3 installers will not conflict at all, as they are completely different. If that is your log file, we'll also need the file in your %TEMP% directory that includes "core_JustForMe" in the name, as that's the subinsta

[issue41536] pathlib's Path("NUL:").resolve() throws an error on windows

2020-08-13 Thread Steve Dower
Steve Dower added the comment: The trailing colon is unnecessary, and likely to cause more issues, but the same thing occurs for Path('NUL').resolve() This is probably best handled as issue37517, where you'll find more background on the error messages. But I believe that p

[issue41526] Python 3.9.0rc1 "setup successful" dialog box overflow

2020-08-13 Thread Steve Dower
Steve Dower added the comment: So it'll take a bit more rearranging to get everything to fit - I've attached one proposal that shuffles the thanks to Mark Hammond down below the "enable long path names" button. (It's grey text in the screenshot, but I've

[issue41526] Python 3.9.0rc1 "setup successful" dialog box overflow

2020-08-13 Thread Steve Dower
Steve Dower added the comment: Thanks, Mark. We shall not hold you solely responsible for the port any longer ;) -- ___ Python tracker <https://bugs.python.org/issue41

[issue41526] Python 3.9.0rc1 "setup successful" dialog box overflow

2020-08-13 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +20996 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21871 ___ Python tracker <https://bugs.python.org/issu

[issue41526] Python 3.9.0rc1 "setup successful" dialog box overflow

2020-08-13 Thread Steve Dower
Steve Dower added the comment: New changeset 6444ca946984c638c67a72aac22fd6d3cc650c16 by Steve Dower in branch 'master': bpo-41526: Fixed layout of final page of the installer (GH-21871) https://github.com/python/cpython/commit/6444ca946984c638c67a72aac22fd6

[issue41526] Python 3.9.0rc1 "setup successful" dialog box overflow

2020-08-13 Thread Steve Dower
Steve Dower added the comment: Fixes merged, just need Łukasz to confirm it'll be in 3.9.0 and we can resolve this. -- nosy: +lukasz.langa ___ Python tracker <https://bugs.python.org/is

[issue41546] pprint() gives exception when ran from pythonw

2020-08-14 Thread Steve Dower
Steve Dower added the comment: This is normal, if obscure, behaviour. Pythonw starts without a console, and so stdout is not connected to anything. As a result, you can't print (or pprint). You'll need to set sys.stdout to something or provide a file if you want to print output.

[issue41526] Python 3.9.0rc1 "setup successful" dialog box overflow

2020-08-17 Thread Steve Dower
Steve Dower added the comment: Thanks for the report! This should be in the next 3.9 RC. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue41546] pprint() gives exception when ran from pythonw

2020-08-17 Thread Steve Dower
Steve Dower added the comment: I'm inclined to agree that it should pass silently in this case, as if it were printing with print() rather than .write(). What better meaning is there for sys.stdout == None than "no output"? -- versions: +Python 3

[issue39345] Py_Initialize Hangs on Windows 10

2020-08-18 Thread Steve Dower
Steve Dower added the comment: Are you able to capture a process dump at the hang? I haven't seen this anywhere else, and don't even know how to go about trying to reproduce it with this information - Py_Initialize is called by every single Python process, so there's somethin

[issue41376] site.getusersitepackages() incorrectly claims that PYTHONNOUSERSITE is respected

2020-08-24 Thread Steve Dower
Change by Steve Dower : -- versions: -Python 3.5, Python 3.6, Python 3.7 ___ Python tracker <https://bugs.python.org/issue41376> ___ ___ Python-bugs-list mailin

[issue38533] v3.7.5 py script run ok with python.exe but not pythonw.exe (python silent console not working)

2020-08-24 Thread Steve Dower
Steve Dower added the comment: Assuming the fix for this was released, given lack of other information. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue41627] Relocate user site packages on Windows 32-bit

2020-08-24 Thread Steve Dower
New submission from Steve Dower : Currently, the user site packages on Windows is %APPDATA%\Python\PythonXY. This can cause conflicts between the 32-bit and 64-bit versions of the runtime. We should switch the pattern to Python{sys.winver}, which is XY or XY-32, the same as elsewhere. This

[issue39010] ProactorEventLoop raises unhandled ConnectionResetError

2020-08-24 Thread Steve Dower
Steve Dower added the comment: Any input from the asyncio experts? I don't have an issue with handling the exception in this case, and hopefully when someone is up to the task of dealing with the range of edge cases throughout this loop implementation, hopefully they can get the orderi

[issue37369] Issue with pip in venv on Powershell in Windows

2020-08-25 Thread Steve Dower
Steve Dower added the comment: > The problem is that Powershell has case-sensitive commands and pip is trying > to call path completely in minor case This is not normal configuration. I'm not sure what you've done here, but please open a new issue with details about how

[issue41630] Enable curses support on Windows

2020-08-25 Thread Steve Dower
Steve Dower added the comment: The curses module is currently not supported on Windows, and this patch is far more than just updating the VS build. I've updated the title. Refer to issue31951 for more context. This will need more work than what's been done in the pull request,

[issue41669] Case mismatch between "include" and "Include"

2020-08-31 Thread Steve Dower
Steve Dower added the comment: Unfortunately, it's easier to change what we distribute, except that has _always_ been "include" (based on a 2.4 installer I had laying around). And of course we can't change the repo. Still, case sensitivity is becoming more acceptable

[issue39010] ProactorEventLoop raises unhandled ConnectionResetError

2020-08-31 Thread Steve Dower
Steve Dower added the comment: Thanks, Ben! -- ___ Python tracker <https://bugs.python.org/issue39010> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41686] C++ Embedded 'time.sleep()' is not working on Windows host due to 'Py_InitializeEx(0)'

2020-09-02 Thread Steve Dower
Steve Dower added the comment: > Could sigint_event be relocated to a platform-dependent extension of > _PyRuntimeState that gets initialized and finalized independent of any module? This, or leaving it where it is and making sure it gets initialised (it really is about emulating c

[issue41712] REDoS in purge

2020-09-04 Thread Steve Dower
Steve Dower added the comment: I've considered DoSing myself a few times, but then change my mind and just publish the release :) A PR to change it to "(\d+\.\d+\.\d+)([a-zA-Z]+\d+)?$" would be fine, but is not urgent. It certainly doesn't need to be backported, as thi

[issue41627] Relocate user site packages on Windows 32-bit

2020-09-04 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +21185 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22098 ___ Python tracker <https://bugs.python.org/issu

[issue41627] Relocate user site packages on Windows 32-bit

2020-09-04 Thread Steve Dower
Steve Dower added the comment: > If it is otherwise possible to user-only install both 32 and 64 bit versions, > then using the same site-packages strikes me a bug It's very easy to install both 32 and 64-bit runtimes (and it doesn't matter if they're user or system

[issue35228] Index search in CHM help crashes viewer

2020-09-04 Thread Steve Dower
Steve Dower added the comment: So I found the "owner" of the HTML Help component in Windows (I put owner in quotes because this tool is _very_ maintenance mode, so nothing short of a critical vulnerability is going to be touched) and he helped me do some debugging. In short, the

[issue41627] Relocate user site packages on Windows 32-bit

2020-09-04 Thread Steve Dower
Steve Dower added the comment: New changeset dd18001c308fb3bb65006c91d95f6639583a3420 by Steve Dower in branch 'master': bpo-41627: Distinguish 32 and 64-bit user site packages on Windows (GH-22098) https://github.com/python/cpython/commit/dd18001c308fb3bb65006c91d95f66

[issue41627] Relocate user site packages on Windows 32-bit

2020-09-04 Thread Steve Dower
Steve Dower added the comment: > With the change in PR 22098, the 32-bit interpreter will install to a > different location. To clarify this, I meant the 32-bit interpreter will install *packages* to a different location (when using the user scheme). -- assignee: -> st

[issue41744] NuGet python.props only works in python nuget, not other variants

2020-09-08 Thread Steve Dower
Steve Dower added the comment: Thanks for the contribution! I think I only ever tested this with the 64-bit package... :) Could you make it so that we include the file under both names? Just for anyone (like me) who has hard-coded the python.props name and parametrised the directory name

[issue41744] NuGet python.props only works in python nuget, not other variants

2020-09-08 Thread Steve Dower
Change by Steve Dower : -- versions: +Python 3.10, Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.org/issue41744> ___ ___ Python-bugs-list mailin

[issue14243] tempfile.NamedTemporaryFile not particularly useful on Windows

2020-09-09 Thread Steve Dower
Steve Dower added the comment: In general, if a bug here appears to be inactive, it's probably waiting on someone to volunteer to move it forward. Often merely posting to a thread is enough. For this case, I think the best thing we can probably do is change the default share mode for

[issue14243] tempfile.NamedTemporaryFile not particularly useful on Windows

2020-09-09 Thread Steve Dower
Steve Dower added the comment: Issue41490 can also be fixed by using FILE_SHARE_DELETE on all opened files (and that's a release blocker, so we need to fix it somehow), and if DeleteFile has been updated as you suggest then it might even help with the "pip replacing its

[issue14243] tempfile.NamedTemporaryFile not particularly useful on Windows

2020-09-09 Thread Steve Dower
Steve Dower added the comment: The comment you quoted was referring to the NamedTemporaryFile(do_not_delete) flag. Yes, we'd have to reimplement the UCRT function using the system API. Ultimately, it's not a great compatibility layer if you want to match POSIX semantics and not

[issue14243] tempfile.NamedTemporaryFile not particularly useful on Windows

2020-09-10 Thread Steve Dower
Steve Dower added the comment: We'd CreateFile the file and then immediately pass it to _open_osfhandle, which would keep the semantics the same apart from the share flags. I'm not entirely against getting rid of O_TEXT support, but haven't taken the time to think through t

[issue41744] NuGet python.props only works in python nuget, not other variants

2020-09-10 Thread Steve Dower
Steve Dower added the comment: Thanks! Just need a NEWS file (click Details next to the failed check for the helper app). Something like "Fixes automatic import of props file when using the Nuget package" would be good. (Also posted

[issue41490] Update bundled pip to 20.2.1 and setuptools to 49.2.1

2020-09-11 Thread Steve Dower
Steve Dower added the comment: If you look at the PR into 3.9, it includes a test for this exact case. Start by copying that into 3.10 and then make it pass and everything should be good :) -- ___ Python tracker <https://bugs.python.

[issue41729] test_winconsoleio fails and hangs on Windows

2020-09-11 Thread Steve Dower
Steve Dower added the comment: No objections. I'd guess it was a typo. -- ___ Python tracker <https://bugs.python.org/issue41729> ___ ___ Python-bugs-list m

[issue41646] shutil.copy documentation should clarify support for path-like objects

2020-09-14 Thread Steve Dower
Steve Dower added the comment: New changeset 8f2b991eef062c22c429a96983c78be007180b66 by Zackery Spytz in branch 'master': bpo-41646: Mention path-like objects support in the docs for shutil.copy() (GH-22208) https://github.com/python/cpython/commit/8f2b991eef062c22c429a96983c78b

[issue41744] NuGet python.props only works in python nuget, not other variants

2020-09-14 Thread Steve Dower
Steve Dower added the comment: New changeset 7c11a9accabe3720940f334eb1226bb7bb9179c7 by Václav Slavík in branch 'master': bpo-41744: Package python.props with correct name in NuGet package (GH-22154) https://github.com/python/cpython/commit/7c11a9accabe3720940f334eb1226b

[issue41646] shutil.copy documentation should clarify support for path-like objects

2020-09-14 Thread Steve Dower
Steve Dower added the comment: Thanks! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue41744] NuGet python.props only works in python nuget, not other variants

2020-09-14 Thread Steve Dower
Steve Dower added the comment: Thanks! -- assignee: -> steve.dower resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python

[issue41412] After installation on Windows7, 64bit Python 3.9.0b5 reports "api-ms-win-core-path-l1-1-0.dll" missing and doesn't start

2020-09-14 Thread Steve Dower
Steve Dower added the comment: Works great! (By which I mean, doesn't work at all ;) ) -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker <https://bugs.pyth

[issue41806] socket methods with timeout take very slow path on Windows

2020-09-17 Thread Steve Dower
New submission from Steve Dower : When a socket object has a non-zero timeout, all send/recv/etc. calls are preceded by a select() call before making the actual call. If there is no timeout, the select call is skipped. It appears that on Windows, select() will block until the previous

[issue41800] Python installation fails when run under system account if there is already an existing installation on the system already

2020-09-17 Thread Steve Dower
Steve Dower added the comment: Yeah, this whole issue is basically because Burn (our installer tool) won't do per-machine bundle registration even when it's only installing per-machine packages. So the install block that it would normally throw up fails if you use a different us

[issue41807] Warnings when installing Linter on VS code on Linux and Windows.

2020-09-21 Thread Steve Dower
Steve Dower added the comment: This warning is coming from pip, and it's because it has detected that your system configuration doesn't match what many Python developers assume. Specifically, that you've configured PATH to include both Python and any package scripts you ha

[issue41800] Python installation fails when run under system account if there is already an existing installation on the system already

2020-09-21 Thread Steve Dower
Steve Dower added the comment: Python's installer doesn't change that often ;) Without some information about your scenario, I can't make a recommendation. However, I will say that if you are including any of your own Python code with your application, and especially any c

[issue30974] Update os.samefile docstring to match documentation

2020-09-21 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: backport needed -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue25655] Python errors related to failures loading DLL's lack information

2020-09-22 Thread Steve Dower
Steve Dower added the comment: > IMO, the most direct way to resolve the problem is by enabling "loader snaps" > for python.exe via gflags and attaching a native debugger to the process ... This is indeed the best way to go about solving it, so you can see why we don'

[issue25655] Python errors related to failures loading DLL's lack information

2020-09-23 Thread Steve Dower
Steve Dower added the comment: > would you see this as a note in https://docs.python.org/3/library/ctypes.html?highlight=ctypes#loading-shared-libraries Haven't looked at the PR, but it probably needs to be somewhere in the import docs as well, to do with native extension modules

[issue25655] Python errors related to failures loading DLL's lack information

2020-09-23 Thread Steve Dower
Steve Dower added the comment: Thanks for doing the search :) > - https://docs.python.org/3/faq/windows.html#is-a-pyd-file-the-same-as-a-dll Probably not here. > - https://docs.python.org/3/using/windows.html#finding-modules Perhaps it is best to put a new section here like wh

[issue41847] Update "install launcher for all users" installer option

2020-09-23 Thread Steve Dower
New submission from Steve Dower : The "Install launcher for all users" option on the front page of the installer should be updated to read "Install py.exe launcher for all users" to reduce confusion. However, we should also consider disabling this by default, so that the

[issue41847] Update "install launcher for all users" installer option

2020-09-23 Thread Steve Dower
Steve Dower added the comment: Follow up thought: we could switch out the front page checkbox for "Upgrade existing py.exe launcher (recommended)" when we detect an existing per-machine install, and hide it entirely if we don't detect it. So at least non-admin users have

[issue41849] Support reading long lines with io._WindowsConsoleIO

2020-09-24 Thread Steve Dower
Steve Dower added the comment: I'm in favour of this change in principle, but would want to look at the PR closely. The biggest risk here is that we have to emulate GNU readline for compatibility, which severely limits the data that can be passed through, and also forces multiple enc

[issue24757] Installing Py on Windows: Need to restart or logout for path to be added

2020-09-24 Thread Steve Dower
Steve Dower added the comment: Sorry, but we don't have any way to update the current terminal process. We already update the current shell, so if you start a new terminal/Powershell/cmd/etc. instance it should have the updated variable. The workaround you posted is fine. Directly a

[issue41853] Windows docs for command line install don't mention /log option

2020-09-24 Thread Steve Dower
Steve Dower added the comment: Sounds good to me. Pull requests welcome :) -- ___ Python tracker <https://bugs.python.org/issue41853> ___ ___ Python-bugs-list m

[issue39041] Support GitHub Actions in CI

2020-09-24 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue41492] Fix signing description for Windows release builds

2020-09-24 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue40458] test_bad_getattr crashes on APPX test

2020-09-24 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue39107] Upgrade tcl/tk to 8.6.10 (Windows and maxOS)

2020-09-24 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +21445 pull_request: https://github.com/python/cpython/pull/22405 ___ Python tracker <https://bugs.python.org/issue39

[issue39107] Upgrade tcl/tk to 8.6.10 (Windows and maxOS)

2020-09-24 Thread Steve Dower
Steve Dower added the comment: I did a build for Windows and put up the PR taking it in and there seems to be one (related) test failure: == FAIL: test_from (tkinter.test.test_tkinter.test_widgets.ScaleTest

[issue39107] Upgrade tcl/tk to 8.6.10 (Windows and maxOS)

2020-09-24 Thread Steve Dower
Steve Dower added the comment: (My PR is from a branch in the main repo, so if you want to just go in and fix it, feel free.) -- ___ Python tracker <https://bugs.python.org/issue39

[issue39107] Upgrade tcl/tk to 8.6.10 (Windows and maxOS)

2020-09-25 Thread Steve Dower
Steve Dower added the comment: > PR branches on the main repository are discouraged. I had another reason, which was that I needed to trigger a signed build of the separate Tcl and Tk binaries. This is much easier (and safer) to do from the main repo than my own fork. But yeah, in gene

[issue38989] pip install selects 32 bit wheels for 64 bit python if vcvarsall.bat amd64_x86 in environment

2020-09-28 Thread Steve Dower
Steve Dower added the comment: I'm closing this as external, as the canonical source for platform tags is now the packaging library. Either pip and/or distlib should switch to using that library or the logic included (which I'll note is considerably more complex - but also

[issue41738] MIME type for *.zip becomes application/x-zip-compressed on Windows

2020-09-28 Thread Steve Dower
Steve Dower added the comment: mimetype uses the system database for MIME types, which on Windows is application/x-zip-compressed, so this is by design. If you have a need to specify a MIME type that does not match the system you're on, you'll need your own logic. --

[issue41490] Update bundled pip to 20.2.1 and setuptools to 49.2.1

2020-10-06 Thread Steve Dower
Steve Dower added the comment: I have no objection to bumping it further, provided someone has fixed importlib.resources on 3.10 (i.e. my backported tests pass) -- ___ Python tracker <https://bugs.python.org/issue41

[issue41961] Windows install failure "could not set file security"

2020-10-06 Thread Steve Dower
New submission from Steve Dower : Original report: https://twitter.com/Steve_Casselman/status/1313564671652159488?s=20 A user received MSI error 1926 in a popup dialog, text reading: > Could not set file security for file > 'C:\Users\sc\AppData\Roaming\Microsoft\Installer\

[issue41961] Windows install failure "could not set file security"

2020-10-06 Thread Steve Dower
Steve Dower added the comment: Suspicious points: * error 0 means success, so it shouldn't be popping up an error * 'Installer\' is a directory, not a file * %AppData%\Microsoft\Installer is normally readable by Everyone, but only writable by Administrators, even in the user&#x

[issue41961] Windows install failure "could not set file security"

2020-10-07 Thread Steve Dower
Steve Dower added the comment: > I was able to reproduce the error dialog by changing the owner of the > "Installer" folder to the current user and removing the two DACL entries that > grant access to Administrators and SYSTEM. Yeah, I'd assumed the most likely c

[issue41965] distutils.spawn.find_executable() fails to find .py files on Windows

2020-10-07 Thread Steve Dower
Steve Dower added the comment: Yep, unless this directly impacts normal distutils usage, it's not going to be fixed (regardless of the formal deprecation proposal, we already have a policy of minimizing changes to distutils). You could submit a patch to Bugzilla to switch th

[issue41952] sys.version has double space between month and date

2020-10-07 Thread Steve Dower
Change by Steve Dower : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue41952> ___ ___

[issue41917] Python 3.9rc2 fails to install matplotlib

2020-10-07 Thread Steve Dower
Change by Steve Dower : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue41917> ___ ___

[issue28343] Bad encoding alias cp936 -> gbk: euro sign

2020-10-07 Thread Steve Dower
Change by Steve Dower : -- versions: +Python 3.10 -Python 2.7, Python 3.5, Python 3.6, Python 3.7 ___ Python tracker <https://bugs.python.org/issue28343> ___ ___

[issue41557] Upgrade Windows and macOS builds to use SQLite 3.33

2020-10-07 Thread Steve Dower
Steve Dower added the comment: I got the source repo update, and poked the PR to get it to re-run. If it's all clear, I have no opposition to someone else doing the final merge. -- ___ Python tracker <https://bugs.python.org/is

[issue41557] Upgrade Windows and macOS builds to use SQLite 3.33

2020-10-08 Thread Steve Dower
Steve Dower added the comment: New changeset bfe6e03cd6931813dd61b50f5fdf7d8a8848f4cd by Erlend Egeberg Aasland in branch 'master': bpo-41557: Update Windows installer to use SQLite 3.33.0 (GH-21960) https://github.com/python/cpython/commit/bfe6e03cd6931813dd61b50f5fdf7d

[issue42013] venv on Windows with symlinks is broken if invoked with -I

2020-10-12 Thread Steve Dower
Steve Dower added the comment: Thanks for figuring that out, Eryk. Probably we should just update venv to do a realpath(sys._base_executable) to handle the venv-from-symlinked-venv scenario. Though I'd also be quite happy to just disallow that entirely (as we used to?). If you e

[issue42041] venv subprocess call to python resolves to wrong interpreter

2020-10-15 Thread Steve Dower
Steve Dower added the comment: This is due to how Windows resolves relative paths when creating a new process. It *always* looks in the current application directory first, which with this setup will be the original Python executable rather than the venv redirector. The best fix is to pass

[issue42041] venv subprocess call to python resolves to wrong interpreter

2020-10-16 Thread Steve Dower
Steve Dower added the comment: Thanks for doing the PR, Paul. Honestly, I'd rather document in subprocess that Popen("python") is not a good idea, and should use either sys.executable or shutil.which depending on what you mean. This is a platform-independent gotcha, as it

[issue42041] venv subprocess call to python resolves to wrong interpreter

2020-10-16 Thread Steve Dower
Steve Dower added the comment: > The bit that I *do* think is a venv gotcha is that it's entirely reasonable > for a user to expect that if they run path\to\venv\Scripts\python.exe, then > their Python script will be run by that executable. This is still true, though, as muc

[issue42028] Regression in mimetypes for image/bmp

2020-10-16 Thread Steve Dower
Steve Dower added the comment: Yep, looks like the extra entry can just be removed. Guess we missed it in issue4963 Care to submit a PR? -- versions: +Python 3.10 -Python 3.7 ___ Python tracker <https://bugs.python.org/issue42

[issue42041] venv subprocess call to python resolves to wrong interpreter

2020-10-16 Thread Steve Dower
Steve Dower added the comment: > I'm not asking that we guarantee any behaviour, or that we commit ourselves > to anything. Just that we note that people ought not to be making a specific > assumption Which is a fine intent, it's just the running assumption is

[issue42055] Python Nuget Packages for Windows Installation: Request for more versions

2020-10-16 Thread Steve Dower
Steve Dower added the comment: Python 3.7.9 was a special case, as mentioned on the download page: https://www.python.org/downloads/release/python-379/ -- ___ Python tracker <https://bugs.python.org/issue42

[issue31202] Windows pathlib.Path.glob(pattern) fixed part of the pattern changed to lowercase whereas it should be unchanged.

2020-10-16 Thread Steve Dower
Steve Dower added the comment: Yeah, looks done. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue39107] Upgrade tcl/tk to 8.6.10 (Windows and maxOS)

2020-10-19 Thread Steve Dower
Steve Dower added the comment: New changeset 985f0ab3ad5e8e9a8d7fc53026c38390b1f2b466 by Steve Dower in branch 'master': bpo-39107: Updated Tcl and Tk to 8.6.10 in Windows installer (GH-22405) https://github.com/python/cpython/commit/985f0ab3ad5e8e9a8d7fc53026c383

[issue42080] Disutils on windows debug build fails without -j1

2020-10-19 Thread Steve Dower
Steve Dower added the comment: If you're building through setuptools, then it's a setuptools bug (they own distutils going forward). https://github.com/pypa/setuptools If you're not, please try with setuptools in the picture. It shouldn't require any more than just

[issue42041] venv subprocess call to python resolves to wrong interpreter

2020-10-19 Thread Steve Dower
Steve Dower added the comment: Proposed alternative based on Eryk's: For maximum reliability, use a fully-qualified path for the executable. To search for an unqualified name on :envvar:`PATH`, use :meth:`shutil.which`. On all platforms, passing :data:`sys.execu

[issue41490] Update bundled pip to 20.2.1 and setuptools to 49.2.1

2020-10-19 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +21738 pull_request: https://github.com/python/cpython/pull/22779 ___ Python tracker <https://bugs.python.org/issue41

<    18   19   20   21   22   23   24   25   26   27   >