[issue46048] embeddable distro cannot import modules

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

[issue46048] embeddable distro cannot import modules

2021-12-11 Thread Steve Dower
Steve Dower added the comment: New changeset 971ece8e1738b1107dda692cc44c6d8ddce384cd by Steve Dower in branch 'main': bpo-46048: Fix parsing of single character lines in getpath readlines() (GH-30048) https://github.com/python/cpython/commit/971ece8e1738b1107dda692cc44c6d

[issue46048] embeddable distro cannot import modules

2021-12-11 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +28273 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/30048 ___ Python tracker <https://bugs.python.org/issu

[issue46048] embeddable distro cannot import modules

2021-12-11 Thread Steve Dower
New submission from Steve Dower : The embeddable distro cannot import native modules. This is because the '.' entry in the ._pth file is incorrect parsed by the new getpath module (issue45582). -- assignee: steve.dower components: Interpreter Core messages: 408300 nosy: lu

[issue43749] venv module does not copy the correct python exe

2021-12-10 Thread Steve Dower
Steve Dower added the comment: We'd also need to update the launcher to launch the executable with its name, which it currently doesn't do. I was looking at this recently for some other reason. -- ___ Python tracker <https://bu

[issue46028] 3.11.0a3: under tox, sys._base_executable is wrong

2021-12-10 Thread Steve Dower
Steve Dower added the comment: I'm going to need a decent amount of time to learn all of these components, because I never use this OS, Tox, nor virtualenv :) I'll try and get to it, but don't hold your breath. Luckily, Modules/getpath.py is much easier to follow and modi

[issue45582] Rewrite getpath.c in Python

2021-12-10 Thread Steve Dower
Steve Dower added the comment: New changeset 3f398a77d37b5dfd51dabbc362d482a482fa885a by neonene in branch 'main': bpo-45582: Fix test_embed failure during a PGO build on Windows (GH-30014) https://github.com/python/cpython/commit/3f398a77d37b5dfd51dabbc362d482

[issue46018] expm1 may incorrectly raise OverflowError on underflow

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

[issue46018] expm1 may incorrectly raise OverflowError on underflow

2021-12-09 Thread Steve Dower
Steve Dower added the comment: New changeset 3363e1cb05d0d19ed172ea63606d8cb6268747fc by Steve Dower in branch 'main': bpo-46018: Ensure that math.expm1 does not raise on underflow (GH-29997) https://github.com/python/cpython/commit/3363e1cb05d0d19ed172ea63606d8c

[issue46018] expm1 may incorrectly raise OverflowError on underflow

2021-12-09 Thread Steve Dower
Steve Dower added the comment: Lines 500-504 are the ones that trigger it. Apparently there are no tests in that file for straight exp(), but the equivalent tests for those would return 0.0 and suppress ERANGE too. -- ___ Python tracker <ht

[issue46018] expm1 may incorrectly raise OverflowError on underflow

2021-12-09 Thread Steve Dower
Steve Dower added the comment: I've also got no idea how to write a test for this, given that it's a very thin wrapper around a platform's C runtime library. Our existing test discovered when the library changed behaviour to start setting errno, which is probably the

[issue46018] expm1 may incorrectly raise OverflowError on underflow

2021-12-09 Thread Steve Dower
Steve Dower added the comment: I considered just switching to <2.0, but wasn't sure if I would be breaking some other unspoken behaviour there. But you're right, it's really just detecting underflow vs. overflow, so that's a much simpler way to check. I've

[issue46018] expm1 may incorrectly raise OverflowError on underflow

2021-12-08 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +28220 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29997 ___ Python tracker <https://bugs.python.org/issu

[issue46018] expm1 may incorrectly raise OverflowError on underflow

2021-12-08 Thread Steve Dower
New submission from Steve Dower : If a C runtime's math functions set errno to ERANGE, we assume it is a valid underflow if fabs(result) < 1.0. However, because expm1 includes a -1.0, it underflows towards -1.0. This fails the above check, and so if a runtime's expm1() sets E

[issue46015] Windows venvs do not include DLLs directory

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

[issue46015] Windows venvs do not include DLLs directory

2021-12-08 Thread Steve Dower
Steve Dower added the comment: New changeset 7778116c2f573edf320bd55301137a968e4339d8 by Steve Dower in branch 'main': bpo-46015: Fixes calculation of sys.path in a venv on Windows (GH-29992) https://github.com/python/cpython/commit/7778116c2f573edf320bd55301137a

[issue46015] Windows venvs do not include DLLs directory

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

[issue46015] Windows venvs do not include DLLs directory

2021-12-08 Thread Steve Dower
Steve Dower added the comment: +RM -- nosy: +pablogsal ___ Python tracker <https://bugs.python.org/issue46015> ___ ___ Python-bugs-list mailing list Unsub

[issue46015] Windows venvs do not include DLLs directory

2021-12-08 Thread Steve Dower
New submission from Steve Dower : Before, a venv would include the DLLs directory in sys.path. Since issue45582, it does not, and so anything that relies on a standard library native module cannot run. -- assignee: steve.dower components: Windows messages: 408033 nosy: paul.moore

[issue45582] Rewrite getpath.c in Python

2021-12-07 Thread Steve Dower
Steve Dower added the comment: New changeset b0b30862796e97b3f0ee358bcc61d21f0cc98441 by Steve Dower in branch 'main': bpo-45582: Write empty pybuilddir.txt on Windows to allow relocatable build directories (GH-29979) https://github.com/python/cpyt

[issue45582] Rewrite getpath.c in Python

2021-12-07 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +28205 pull_request: https://github.com/python/cpython/pull/29979 ___ Python tracker <https://bugs.python.org/issue45

[issue45415] Assert oparg < INSTR_OFFSET()

2021-12-07 Thread Steve Dower
Steve Dower added the comment: Yes, it's been fixed. The debate about whether to test in CI with C assertions enabled or not can continue somewhere else. -- resolution: -> fixed stage: test needed -> resolved status: open -> closed

[issue45582] Rewrite getpath.c in Python

2021-12-06 Thread Steve Dower
Steve Dower added the comment: New changeset b7ef27bc084665ce58d89fc69530c6f9d2d37754 by Steve Dower in branch 'main': bpo-45582: Ensure PYTHONHOME still overrides detected build prefixes (GH-29948) https://github.com/python/cpython/commit/b7ef27bc084665ce58d89fc69530c6

[issue45582] Rewrite getpath.c in Python

2021-12-06 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +28173 pull_request: https://github.com/python/cpython/pull/29948 ___ Python tracker <https://bugs.python.org/issue45

[issue46002] py Launcher for Windows with MSYS2

2021-12-06 Thread Steve Dower
Steve Dower added the comment: ("2" and "3" are just arbitrary numbers... substitute however many Python runtimes you actually have, or "N" and "N+1" if you prefer.) -- ___ Python trac

[issue46002] py Launcher for Windows with MSYS2

2021-12-06 Thread Steve Dower
Steve Dower added the comment: So if I've understood you, there are three Python installs on your machine. Two of them are Windows builds, which are listed in the registry and discovered by py.exe -0p. The third is the MSYS2 build, which is *not* listed in the registry and is

[issue46002] py Launcher for Windows with MSYS2

2021-12-06 Thread Steve Dower
Steve Dower added the comment: Are you launching "py" from inside MSYS2? Or a regular prompt? What does the output of "py -0p" show? (It should list all the discovered installs) We might need someone who understands how MSYS2 works h

[issue45992] distutils paths are scattered between PythonXY and PythonXY-32 on WoW64

2021-12-06 Thread Steve Dower
Steve Dower added the comment: They should all be under "-32" when in roaming appdata, because otherwise having 32-bit and 64-bit installs side-by-side will conflict. If these fields were newly added to distutils then should probably fix them to match sysconfig. If they'r

[issue45582] Rewrite getpath.c in Python

2021-12-06 Thread Steve Dower
Steve Dower added the comment: New changeset af1db4eb555e02d2bff3476f99f7a653764203b0 by neonene in branch 'main': bpo-45582: Fix getpath_isxfile() and test_embed on Windows (GH-29930) https://github.com/python/cpython/commit/af1db4eb555e02d2bff3476f99f7a6

[issue31879] Launcher fails on custom command starting with "python"

2021-12-06 Thread Steve Dower
Steve Dower added the comment: Not sure if Mark and Martin are part of an expert group, but neither are active in this area these days. For the original question, I have no idea why the command can't use a builtin name, so hard to say whether we'd change it. A summary of why it&#x

[issue44844] The command line of launching Edge on Linux hangs

2021-12-03 Thread Steve Dower
Steve Dower added the comment: @Ray I posted a PR that works fine on Windows, would you be able to try it on Linux? The executables seem to have different names, so I'm a little concerned about the change, but I think it should be al

[issue44844] The command line of launching Edge on Linux hangs

2021-12-03 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +28132 pull_request: https://github.com/python/cpython/pull/29908 ___ Python tracker <https://bugs.python.org/issue44

[issue44844] The command line of launching Edge on Linux hangs

2021-12-03 Thread Steve Dower
Change by Steve Dower : -- pull_requests: -27916 ___ Python tracker <https://bugs.python.org/issue44844> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45582] Rewrite getpath.c in Python

2021-12-03 Thread Steve Dower
Steve Dower added the comment: New changeset 7d7c91a8e8c0bb04105a21a17d1061ffc1c04d80 by neonene in branch 'main': bpo-45582: Add a NOT operator to the condition in getpath_isxfile (GH-29906) https://github.com/python/cpython/commit/7d7c91a8e8c0bb04105a21a17d1061

[issue45877] Inconsistency in minimal supported version of Microsoft Visual Studio

2021-12-03 Thread Steve Dower
Steve Dower added the comment: It probably all needs straightening out: * Microsoft Visual Studio 2015 *or later* can be used to build the project files * Microsoft Visual C++ 14.3 is what we use to build the official releases for the main branch (3.11) * earlier branches may still be using

[issue44530] Propagate qualname from the compiler unit to code objects for finer grained profiling data

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

[issue45816] Python does not support standalone MSVC v143 (VS 2022) Build Tools

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

[issue45816] Python does not support standalone MSVC v143 (VS 2022) Build Tools

2021-12-03 Thread Steve Dower
Steve Dower added the comment: New changeset d9301703fb1086cafbd730c17e3d450a192485d6 by Crowthebird in branch 'main': bpo-45816: Support building with VS 2022 (v143 toolset) on Windows (GH-29577) https://github.com/python/cpython/commit/d9301703fb1086cafbd730c17e3d45

[issue45969] When uninstalling Python under Windows the "Scripts" folders should be removed from the PATH environment variable

2021-12-02 Thread Steve Dower
Steve Dower added the comment: Unless someone can find an authoring bug under Tools/msi, I don't think we can do anything about this. We rely on the built-in Windows support for adding and removing these variables, and if that's broken, we can't do anything with our current s

[issue45582] Rewrite getpath.c in Python

2021-12-02 Thread Steve Dower
Steve Dower added the comment: It's done! Those were some of the hardest memory leaks I've had to track down, but it should be clear now. As I mentioned in the commit message, this change attempts to preserve every known quirk. However, I think these ought to be streamlined across

[issue45582] Rewrite getpath.c in Python

2021-12-02 Thread Steve Dower
Steve Dower added the comment: New changeset 99fcf1505218464c489d419d4500f126b6d6dc28 by Steve Dower in branch 'main': bpo-45582: Port getpath[p].c to Python (GH-29041) https://github.com/python/cpython/commit/99fcf1505218464c489d419d4500f1

[issue45816] Python does not support standalone MSVC v143 (VS 2022) Build Tools

2021-11-30 Thread Steve Dower
Steve Dower added the comment: An easy workaround for people encountering this is to set the PlatformToolset environment variable to v143 before building: $env:PlatformToolset = "v143" (or in CMD: set PlatformToolset=v143) Alternatively, you should be able to install the v1

[issue45931] Directory.Build.props/targets leaks from folders above the repo

2021-11-29 Thread Steve Dower
Steve Dower added the comment: Looks like it's gone through. Thanks! -- nosy: -miss-islington resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10, Python 3.9 ___ Python t

[issue45931] Directory.Build.props/targets leaks from folders above the repo

2021-11-29 Thread Steve Dower
Steve Dower added the comment: New changeset 734ed3538314c9651ae64d5e2e0e98aae3aec17b by David Federman in branch 'main': bpo-45931: Prevent Directory.Build.props/targets from leaking from directories above the repo when building on Windows (GH-29854) https://github.com/pyth

[issue45582] Rewrite getpath.c in Python

2021-11-29 Thread Steve Dower
Steve Dower added the comment: Basically unchanged on Debian/WSL as well. There's a new conflict arisen, so I'll resolve that and then merge. -- ___ Python tracker <https://bugs.python.o

[issue45931] Directory.Build.props/targets leaks from folders above the repo

2021-11-29 Thread Steve Dower
Steve Dower added the comment: Nice catch, thanks! Did you start the CLA process already? (I personally would exempt this PR from it as "not sufficiently creative", but I'm not sure I'm allowed to do that anymore...) -- __

[issue45582] Rewrite getpath.c in Python

2021-11-29 Thread Steve Dower
Steve Dower added the comment: It's one data point (well, statistics over 1000 points), but it looks like it's actually a slight improvement in performance over the previous code on Windows :) before after min 23.103 22.154 25% 25.069 23.59925 50% 25.8125 24.2715 75

[issue44530] Propagate qualname from the compiler unit to code objects for finer grained profiling data

2021-11-26 Thread Steve Dower
Steve Dower added the comment: New changeset db55f3fabafc046e4fca907210ced4ce16bf58d6 by Steve Dower in branch 'main': bpo-44530: Reverts a change to the 'code.__new__' audit event (GH-29809) https://github.com/python/cpython/commit/db55f3fabafc046e4fca

[issue45901] store app file type ignores command-line arguments

2021-11-26 Thread Steve Dower
Change by Steve Dower : -- assignee: -> steve.dower resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python

[issue45582] Rewrite getpath.c in Python

2021-11-26 Thread Steve Dower
Steve Dower added the comment: Status update on this: I owe everyone a perf comparison of the before/after with this change. I don't particularly want to block on a regression unless it's significant (honestly still have no idea what to expect), but open to others' thoughts

[issue45901] store app file type ignores command-line arguments

2021-11-26 Thread Steve Dower
Steve Dower added the comment: New changeset 133fb267f437f9bd568738d0e0e59e574fc82b02 by Miss Islington (bot) in branch '3.9': bpo-45901: Fixes argument passing when invoking .py files directly through the Store package (GH-29799) https://github.com/python/cpyt

[issue44530] Propagate qualname from the compiler unit to code objects for finer grained profiling data

2021-11-26 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +28041 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/29809 ___ Python tracker <https://bugs.python.org/issu

[issue44530] Propagate qualname from the compiler unit to code objects for finer grained profiling data

2021-11-26 Thread Steve Dower
Steve Dower added the comment: Correction: the event is `code.__new__` -- ___ Python tracker <https://bugs.python.org/issue44530> ___ ___ Python-bugs-list mailin

[issue44530] Propagate qualname from the compiler unit to code objects for finer grained profiling data

2021-11-26 Thread Steve Dower
Steve Dower added the comment: This change modified the audit event 'code.__name__', which requires a deprecation period (all events are public API, as per PEP 578). We need to revert that part of the change. I don't think we need to add a new event to report the qualnam

[issue45901] store app file type ignores command-line arguments

2021-11-26 Thread Steve Dower
Steve Dower added the comment: New changeset 4841e694ee1686f8c933ddfcb8c854915867ce17 by Steve Dower in branch 'main': bpo-45901: Fixes argument passing when invoking .py files directly through the Store package (GH-29799) https://github.com/python/cpyt

[issue45898] ctypes cfield.c defines duplicate ffi_type_* symbols

2021-11-26 Thread Steve Dower
Steve Dower added the comment: This is because we use libffi as a DLL and you can't statically reference dynamically loaded addresses on Windows. You could change that format table to be initialised on first use, or resolve the FFI type lazily. Or change ctypes to statically link l

[issue45901] store app file type ignores command-line arguments

2021-11-26 Thread Steve Dower
Steve Dower added the comment: For future reference, in case someone stumbles over this issue, here's how I tested this change: * set $env:IncludeUWP="true" * did a regular PCbuild/build.bat * generated a Store layout with "./python.bat PC/layout --preset-appx --copy ./o

[issue45901] store app file type ignores command-line arguments

2021-11-26 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +28034 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/29799 ___ Python tracker <https://bugs.python.org/issu

[issue45893] Azure Pipelines currently failing

2021-11-24 Thread Steve Dower
Steve Dower added the comment: Also, we should define $env:IncludeUWP="true" in the Windows PR tests. That will build extra binaries every time (that we ship in the Windows Store) and would catch this issue earlier. -- ___ Python track

[issue45893] Azure Pipelines currently failing

2021-11-24 Thread Steve Dower
Steve Dower added the comment: Seems we lost the C++ handling in Include/cpython/initconfig.h: #ifdef __cplusplus extern "C" { #endif #ifdef __cplusplus } #endif -- keywords: +easy (C) versions: +Python 3.11 ___ Python track

[issue45816] Python does not support standalone MSVC v143 (VS 2022) Build Tools

2021-11-19 Thread Steve Dower
Steve Dower added the comment: Looks like the fix for those errors is to specify the arguments to the linker in PCbuild/pyproject.props /OPT:REF,NOICF /CGTHREADS:1 /PDBTHREADS:1 %(AdditionalOptions) I don't particularly know what a good number of threads is for this. One seems safe

[issue45506] Out of source tree builds failing on main - test_importlib others unreliable

2021-11-19 Thread Steve Dower
Steve Dower added the comment: New changeset 4c616911b69ce07fb35da1721506bfaba0998c30 by Steve Dower in branch 'main': bpo-45506: Fix test_embed expecting to not find stdlib in source tree build when stdlib has been installed. (GH-29649) https://github.com/python/cpyt

[issue45506] Out of source tree builds failing on main - test_importlib others unreliable

2021-11-19 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +27880 pull_request: https://github.com/python/cpython/pull/29649 ___ Python tracker <https://bugs.python.org/issue45

[issue45506] Out of source tree builds failing on main - test_importlib others unreliable

2021-11-19 Thread Steve Dower
Steve Dower added the comment: Hijacking this issue number for a related test failure I found: if you "make install" Python and then run the test_embed tests from the build directory, some will successfully find the stdlib under PREFIX and fail because they expect to never fi

[issue45849] Embedded python doesn't recognize exit()

2021-11-19 Thread Steve Dower
Steve Dower added the comment: This is expected. The top-level exit() command only exists when the site module is imported, which is not the default for embedded Python (you should specify all the import paths explicitly, since they're going to be in your app rather than found by sear

[issue45816] Python does not support standalone MSVC v143 (VS 2022) Build Tools

2021-11-17 Thread Steve Dower
Steve Dower added the comment: Could you post the errors? -- ___ Python tracker <https://bugs.python.org/issue45816> ___ ___ Python-bugs-list mailing list Unsub

[issue45116] Performance regression 3.10b1: inlining issue in the big _PyEval_EvalFrameDefault() function with Visual Studio (MSC)

2021-11-17 Thread Steve Dower
Steve Dower added the comment: > -set pgo_job=-m test --pgo > +set pgo_job=-c"pass" This essentially disables PGO. You won't get anything valid or useful from analysing its results if you don't give it a somewhat reasonable profile (preferably one that exercises t

[issue45823] phyton stopped working

2021-11-16 Thread Steve Dower
Steve Dower added the comment: It's impossible for us to tell what's causing this without much more information, but could you first try switching to Python 3.10? Even if we figured it out, we wouldn't be fixing 3.7 at this stage. If 3.10 still crashes, information about yo

[issue45582] Rewrite getpath.c in Python

2021-11-15 Thread Steve Dower
Steve Dower added the comment: I have tests passing now, so reviews would be appreciated. There's definitely scope for optimising this algorithm both for speed and clarity, but I'd prefer to get the main translation in first so that any further changes have a reliable baseline (

[issue45220] Windows builds sometimes fail on Azure and GitHub Action: fatal error RC1116: RC terminating after preprocessor errors

2021-11-15 Thread Steve Dower
Steve Dower added the comment: > instead of manually defining RT_MANIFEST, try including "winresrc.h" in the > resource definition files I just wish it were documented... we can keep it in mind if another one of these pops up. -- __

[issue45220] Windows builds sometimes fail on Azure and GitHub Action: fatal error RC1116: RC terminating after preprocessor errors

2021-11-15 Thread Steve Dower
Steve Dower added the comment: New changeset 32d14b262d6d914f63485f8d6e7859df58cd2089 by Miss Islington (bot) in branch '3.9': bpo-45220: Ensure RT_MANIFEST is defined when compiling Windows resource files (GH-29501) https://github.com/python/cpyt

[issue45789] Python execution broken after update via Windows Store

2021-11-12 Thread Steve Dower
Steve Dower added the comment: You're right. You probably need to uninstall and reinstall for the subdirectories of WindowsApps. -- ___ Python tracker <https://bugs.python.org/is

[issue45789] Python execution broken after update via Windows Store

2021-11-12 Thread Steve Dower
Steve Dower added the comment: > Could it be possible that it might not be able to replace that link when it > is currently in use? That (or something like that) would be my suspicion. It's happened before, though as Eryk Sun says the link itself does not remain in use very long

[issue45582] Rewrite getpath.c in Python

2021-11-11 Thread Steve Dower
Steve Dower added the comment: I'm expecting another dumb error (on my part) or two in the PR, but I'm very close to having this working. Reviews would be appreciated! Bear in mind that I'm trying to match the current (quirky) behaviour, rather than streamline anything by c

[issue45789] Python execution broken after update via Windows Store

2021-11-11 Thread Steve Dower
Steve Dower added the comment: Can you look in your %LocalAppData%\Microsoft\WindowsApps folder and see if the python*.exe files are there? You should be able to double-click them to launch them. That folder should be on your PATH so that they work everywhere, and it should reflect what

[issue45789] Python execution broken after update via Windows Store

2021-11-11 Thread Steve Dower
Steve Dower added the comment: If you open "Manage app execution aliases", do you see the entries for Python? I've heard that they sometimes switch themselves off during updates, but nobody seems to know why. Even if not, disabling and re-enabling them may help. The execut

[issue45777] Issue in reading files with a path longer than 256 letters after latest update

2021-11-10 Thread Steve Dower
Steve Dower added the comment: Marking this as fixed, because the fix is already checked in. Release scheduling is a separate conversation, so keep an eye out for the next release. -- resolution: -> fixed stage: -> resolved status: open -&g

[issue45777] Issue in reading files with a path longer than 256 letters after latest update

2021-11-10 Thread Steve Dower
Steve Dower added the comment: Oh I think I know what happened. Because RT_MANIFEST wasn't defined, it was added as a resource tagged with that as a string. So the manifest is still embedded, just not under the right type constant, so it has no effect. Yeah, I think we should do a

[issue45777] Issue in reading files with a path longer than 256 letters after latest update

2021-11-10 Thread Steve Dower
Steve Dower added the comment: > I just installed it and can confirm that there's no embedded manifest in > "C:\Program > Files\WindowApps\PythonSoftwareFoundation.Python.3.9<...>\python.exe". Strange, because when I inspect the files that I published, it'

[issue45777] Issue in reading files with a path longer than 256 letters after latest update

2021-11-10 Thread Steve Dower
Steve Dower added the comment: > Did my accidental breakage of the resource files make it into the last 3.9 > release? Turns out, no, it didn't. So this is something else. When I get to work later today I'll take a look. -- __

[issue45777] Issue in reading files with a path longer than 256 letters after latest update

2021-11-10 Thread Steve Dower
Steve Dower added the comment: Oh, no, wait. Did my accidental breakage of the resource files make it into the last 3.9 release? If so, we probably lost the manifest option to opt-in to supporting long paths, and perhaps Windows 11 has decided to start honouring that (Windows 10 ignored it

[issue45777] Issue in reading files with a path longer than 256 letters after latest update

2021-11-10 Thread Steve Dower
Steve Dower added the comment: I wonder if the Windows 11 upgrade process disables this registry key when it's set directly? That's not something we can fix (I don't think?), so we may just have to list it as an option. If you can, check whether running a Repair of your

[issue45776] abc submodule not an attribute of collections on Python 3.10.0 on Windows

2021-11-10 Thread Steve Dower
Steve Dower added the comment: Since collections.abc is a module, it should work if you import it: >>> import collections.abc >>> collections.abc.Container Submodules being implicitly imported is not part of any API guarantee, which will be why somebody changed it withou

[issue45220] Windows builds sometimes fail on Azure and GitHub Action: fatal error RC1116: RC terminating after preprocessor errors

2021-11-09 Thread Steve Dower
Steve Dower added the comment: New changeset a56fbad85ea655631bce68d4c0f47f1a8b500abd by Steve Dower in branch 'main': bpo-45220: Ensure RT_MANIFEST is defined when compiling Windows resource files (GH-29501) https://github.com/python/cpython/commit/a56fbad85ea655631bce68d4c0f47f

[issue45220] Windows builds sometimes fail on Azure and GitHub Action: fatal error RC1116: RC terminating after preprocessor errors

2021-11-09 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +27750 pull_request: https://github.com/python/cpython/pull/29501 ___ Python tracker <https://bugs.python.org/issue45

[issue45354] test_winconsoleio fails on Windows 11

2021-11-09 Thread Steve Dower
Steve Dower added the comment: FYI, adding a fix for this on issue45220 -- ___ Python tracker <https://bugs.python.org/issue45354> ___ ___ Python-bugs-list m

[issue45732] Update python.org Windows and macOS installers to use Tk 8.6.12

2021-11-09 Thread Steve Dower
Steve Dower added the comment: New changeset 4d1cdd7006def053c815c354bd6f266b4850bd97 by Steve Dower in branch '3.9': bpo-45732: Update bundled Tcl/Tk on Windows to 8.6.12 (GH-29477) https://github.com/python/cpython/commit/4d1cdd7006def053c815c354bd6f26

[issue45732] Update python.org Windows and macOS installers to use Tk 8.6.12

2021-11-09 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +27746 pull_request: https://github.com/python/cpython/pull/29496 ___ Python tracker <https://bugs.python.org/issue45

[issue45732] Update python.org Windows and macOS installers to use Tk 8.6.12

2021-11-09 Thread Steve Dower
Steve Dower added the comment: New changeset 340ecafdf3bfb1377a1b8584addbb8e7bb423459 by Steve Dower in branch '3.10': bpo-45732: Update bundled Tcl/Tk on Windows to 8.6.12 (GH-29477) https://github.com/python/cpython/commit/340ecafdf3bfb1377a1b8584addbb8

[issue45732] Update python.org Windows and macOS installers to use Tk 8.6.12

2021-11-09 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +27742 pull_request: https://github.com/python/cpython/pull/29493 ___ Python tracker <https://bugs.python.org/issue45

[issue45732] Update python.org Windows and macOS installers to use Tk 8.6.12

2021-11-09 Thread Steve Dower
Steve Dower added the comment: New changeset bcc4e46832010469bb35a97c1d1e962a82ee7fd9 by Steve Dower in branch 'main': bpo-45732: Update bundled Tcl/Tk on Windows to 8.6.12 (GH-29477) https://github.com/python/cpython/commit/bcc4e46832010469bb35a97c1d1e96

[issue45354] test_winconsoleio fails on Windows 11

2021-11-09 Thread Steve Dower
Steve Dower added the comment: > bpo-45220 removed the winuser.h include from the PC\*.rc files, so the > RT_MANIFEST resource type macro isn't defined. It needs to be defined in the > file or a common header. For example: > > #define RT_MANIFEST 24

[issue45732] Update python.org Windows and macOS installers to use Tk 8.6.12

2021-11-08 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +27727 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29477 ___ Python tracker <https://bugs.python.org/issu

[issue45732] Update python.org Windows and macOS installers to use Tk 8.6.12

2021-11-08 Thread Steve Dower
Steve Dower added the comment: I guess I've actually got to fix my build process now :) -- ___ Python tracker <https://bugs.python.org/issue45732> ___ ___

[issue45720] Remove shlwapi dependency on Windows

2021-11-05 Thread Steve Dower
Steve Dower added the comment: New changeset 5017306c8732b3ceda878db13088f8c2cf0c5e71 by Miss Islington (bot) in branch '3.9': bpo-45720: Drop references to shlwapi.dll on Windows (GH-29417) https://github.com/python/cpython/commit/5017306c8732b3ceda878db13088f8

[issue45720] Remove shlwapi dependency on Windows

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

[issue45720] Remove shlwapi dependency on Windows

2021-11-05 Thread Steve Dower
Steve Dower added the comment: New changeset 804ea41211b042fa20c3cd8c0457bbfa3873128a by Steve Dower in branch '3.10': bpo-45720: Drop references to shlwapi.dll on Windows (GH-29417) https://github.com/python/cpython/commit/804ea41211b042fa20c3cd8c0457bb

[issue45720] Remove shlwapi dependency on Windows

2021-11-05 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +27689 pull_request: https://github.com/python/cpython/pull/29435 ___ Python tracker <https://bugs.python.org/issue45

[issue45720] Remove shlwapi dependency on Windows

2021-11-05 Thread Steve Dower
Steve Dower added the comment: New changeset a4774f42e35861c4bb16928cffb011c2d8a285ac by Steve Dower in branch 'main': bpo-45720: Drop references to shlwapi.dll on Windows (GH-29417) https://github.com/python/cpython/commit/a4774f42e35861c4bb16928cffb011

[issue45720] Remove shlwapi dependency on Windows

2021-11-04 Thread Steve Dower
Steve Dower added the comment: FTR, I see about 1-1.5ms improvement (using timeit to do a check_call) out of ~32ms total startup time. I also don't actually see gdi32 being transitively loaded as claimed in the Twitter thread, even back to 3.8. So presumably there's something els

<    1   2   3   4   5   6   7   8   9   10   >