[issue35299] LGHT0091: Duplicate symbol 'File:include_pyconfig.h' found

2019-02-02 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch, patch pull_requests: +11664, 11665 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue35299] LGHT0091: Duplicate symbol 'File:include_pyconfig.h' found

2019-02-02 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch, patch, patch pull_requests: +11664, 11665, 11666 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue35873] Controlling venv from venv no longer works in 3.7.2

2019-02-02 Thread Steve Dower
Steve Dower added the comment: So with the fix for multiprocessing, we currently rely on __PYVENV_LAUNCHER__ remaining set throughout the process. However, it may be better to add a "sys.base_executable" property instead and clear the __PYVENV_LAUNCHER__ variable once we've r

[issue35872] Creating venv from venv no longer works in 3.7.2

2019-02-02 Thread Steve Dower
Steve Dower added the comment: You can't actually nest virtual environments, at least with venv - it ought to be configuring it all against the original environment. What is in your pyvenv.cfg files here? -- ___ Python tracker &

[issue35872] Creating venv from venv no longer works in 3.7.2

2019-02-02 Thread Steve Dower
Steve Dower added the comment: Is there any reason to not resolve the base executable on creation and make it relative to that? So the second pyvenv.cfg would have the same home directory as the first? My proposed fix for issue35873 (PR soon) is going to make this trivial. -- nosy

[issue35299] LGHT0091: Duplicate symbol 'File:include_pyconfig.h' found

2019-02-02 Thread Steve Dower
Steve Dower added the comment: My PR fixes both issues properly, but adds a minor "feature" to distutils by making distutils.sysconfig.get_python_inc() potentially return a set of include paths (with os.path.pathsep separators). This is fully internal, so right now we know it

[issue35872] Creating venv from venv no longer works in 3.7.2

2019-02-02 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch, patch pull_requests: +11667, 11668 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue35873] Controlling venv from venv no longer works in 3.7.2

2019-02-02 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +11670 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue35873> ___ ___ Py

[issue35872] Creating venv from venv no longer works in 3.7.2

2019-02-02 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +11667 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue35872> ___ ___ Py

[issue35872] Creating venv from venv no longer works in 3.7.2

2019-02-02 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch, patch, patch pull_requests: +11667, 11668, 11669 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue35873] Controlling venv from venv no longer works in 3.7.2

2019-02-02 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch, patch pull_requests: +11670, 11671 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue34691] _contextvars missing in xmaster branch Windows build?

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

[issue35841] Datetime strftime() does not return correct week numbers for 2019

2019-02-02 Thread Steve Dower
Change by Steve Dower : -- nosy: -steve.dower ___ Python tracker <https://bugs.python.org/issue35841> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35692] pathlib.Path.exists() on non-existent drive raises WinError instead of returning False

2019-02-02 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch, patch pull_requests: +11672, 11673 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue35692] pathlib.Path.exists() on non-existent drive raises WinError instead of returning False

2019-02-02 Thread Steve Dower
Change by Steve Dower : -- assignee: -> steve.dower ___ Python tracker <https://bugs.python.org/issue35692> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue35692] pathlib.Path.exists() on non-existent drive raises WinError instead of returning False

2019-02-02 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch, patch, patch pull_requests: +11672, 11673, 11674 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue35692] pathlib.Path.exists() on non-existent drive raises WinError instead of returning False

2019-02-02 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +11672 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue35642] _asynciomodule.c compiled in both pythoncore.vcxproj and _asyncio.vcxproj

2019-02-02 Thread Steve Dower
Change by Steve Dower : -- versions: -Python 3.5, Python 3.6 ___ Python tracker <https://bugs.python.org/issue35642> ___ ___ Python-bugs-list mailing list Unsub

[issue35642] _asynciomodule.c compiled in both pythoncore.vcxproj and _asyncio.vcxproj

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

[issue35890] Cleanup some non-consistent API callings

2019-02-02 Thread Steve Dower
Steve Dower added the comment: New changeset 8ebc6451f36fa213130c316199dbec5ad8a02163 by Steve Dower (Minmin Gong) in branch 'master': bpo-35890 : Fix some API calling consistency (GH-11742) https://github.com/python/cpython/commit/8ebc6451f36fa213130c316199dbec

[issue35890] Cleanup some non-consistent API callings

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

[issue35872] Creating venv from venv no longer works in 3.7.2

2019-02-02 Thread Steve Dower
Steve Dower added the comment: > I don't know why we add argv0_path to sys.path. My guess is that the idea was to be able to load the .pyd files we used to put alongside it, though we found out they weren't being loaded anyway. One potential side effect is that manually creat

[issue35692] pathlib.Path.exists() on non-existent drive raises WinError instead of returning False

2019-02-03 Thread Steve Dower
Steve Dower added the comment: New changeset 2f6fae6e510dba653391cb510a2aca8322eec03b by Steve Dower in branch 'master': bpo-35692: pathlib no longer raises when checking file and directory existence on drives that are not ready (GH-11746) https://github.com/python/cpyt

[issue35872] Creating venv from venv no longer works in 3.7.2

2019-02-03 Thread Steve Dower
Steve Dower added the comment: New changeset a8474d025cab794257d2fd0bea67840779b9351f by Steve Dower in branch 'master': bpo-35872 and bpo-35873: Clears __PYVENV_LAUNCHER__ variable (GH-11745) https://github.com/python/cpython/commit/a8474d025cab794257d2fd0bea6784

[issue35873] Controlling venv from venv no longer works in 3.7.2

2019-02-03 Thread Steve Dower
Steve Dower added the comment: New changeset a8474d025cab794257d2fd0bea67840779b9351f by Steve Dower in branch 'master': bpo-35872 and bpo-35873: Clears __PYVENV_LAUNCHER__ variable (GH-11745) https://github.com/python/cpython/commit/a8474d025cab794257d2fd0bea6784

[issue35872] Creating venv from venv no longer works in 3.7.2

2019-02-03 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +11689 ___ Python tracker <https://bugs.python.org/issue35872> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35872] Creating venv from venv no longer works in 3.7.2

2019-02-03 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +11689, 11690 ___ Python tracker <https://bugs.python.org/issue35872> ___ ___ Python-bugs-list mailing list Unsub

[issue35872] Creating venv from venv no longer works in 3.7.2

2019-02-03 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +11689, 11690, 11691 ___ Python tracker <https://bugs.python.org/issue35872> ___ ___ Python-bugs-list mailing list Unsub

[issue35873] Controlling venv from venv no longer works in 3.7.2

2019-02-03 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +11692 ___ Python tracker <https://bugs.python.org/issue35873> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35706] Make it easier to use a venv with an embedded Python interpreter

2019-02-03 Thread Steve Dower
Steve Dower added the comment: Py_Initialize() is not supposed to set it up. If you are embedding Python, you have to be responsible for configuring the paths that it uses - pyvenv.cfg is configuration for Python interactive, not the shared lib (using Windows terminology, it's configur

[issue35692] pathlib.Path.exists() on non-existent drive raises WinError instead of returning False

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

[issue35872] Creating venv from venv no longer works in 3.7.2

2019-02-04 Thread Steve Dower
Steve Dower added the comment: New changeset 44467e8ea4cea390b0718702291b4cfe8ddd67ed by Steve Dower in branch '3.7': bpo-35872 and bpo-35873: Clears __PYVENV_LAUNCHER__ variable (GH-11745) https://github.com/python/cpython/commit/44467e8ea4cea390b0718702291b4c

[issue35873] Controlling venv from venv no longer works in 3.7.2

2019-02-04 Thread Steve Dower
Steve Dower added the comment: New changeset 44467e8ea4cea390b0718702291b4cfe8ddd67ed by Steve Dower in branch '3.7': bpo-35872 and bpo-35873: Clears __PYVENV_LAUNCHER__ variable (GH-11745) https://github.com/python/cpython/commit/44467e8ea4cea390b0718702291b4c

[issue35872] Creating venv from venv no longer works in 3.7.2

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

[issue35873] Controlling venv from venv no longer works in 3.7.2

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

[issue35706] Make it easier to use a venv with an embedded Python interpreter

2019-02-04 Thread Steve Dower
Steve Dower added the comment: > The idea is that python, in the embedding application, should work as in the > python executable. I disagree that this is the idea. Python in the embedding application should work as in the embedding application, not the standalone one. The emb

[issue35893] distutils fails to build extension on windows when it is a package.__init__

2019-02-04 Thread Steve Dower
Steve Dower added the comment: Agreed that it should go to setuptools in order to support third-party packages. In general, those of us who ever touch distutils these days (basically just me?) are only really maintaining those parts necessary to build Python and its own modules. Since this

[issue35299] LGHT0091: Duplicate symbol 'File:include_pyconfig.h' found

2019-02-04 Thread Steve Dower
Steve Dower added the comment: New changeset 85e102a2b090dd693d0801ae2edb9660cfa0f281 by Steve Dower in branch 'master': bpo-35299: Fixed sysconfig and distutils during PGO profiling (GH-11744) https://github.com/python/cpython/commit/85e102a2b090dd693d0801ae2edb96

[issue35299] LGHT0091: Duplicate symbol 'File:include_pyconfig.h' found

2019-02-04 Thread Steve Dower
Change by Steve Dower : -- assignee: -> steve.dower ___ Python tracker <https://bugs.python.org/issue35299> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue35896] sysconfig.get_platform returns wrong value when Python 32b is running under Windows 64b

2019-02-05 Thread Steve Dower
Steve Dower added the comment: This is intentional. The "platform" here represents the Python platform (for figuring out whether native modules are compatible), and since it's the 32-bit build of Python it should specify the 32-bit platform. To find out information about the

[issue35898] The TARGETDIR variable must be provided when invoking this installer

2019-02-05 Thread Steve Dower
Steve Dower added the comment: The installer hasn't changed since 3.7, so this seems unlikely to be a new issue. I see this line in your log file: MSI (s) (A8:D0) [13:09:39:028]: Ignoring disallowed property TARGETDIR Perhaps your IT department has configured some restrictio

[issue35896] sysconfig.get_platform returns wrong value when Python 32b is running under Windows 64b

2019-02-05 Thread Steve Dower
Steve Dower added the comment: > sys.platform is defined by code path taken while compiling. it is hardcoded > and really represents the os abi used of a *supported* platform Correct, though the examples I'd give are Win32 vs. WinRT vs. Cygwin, which are fundamentally different A

[issue35896] sysconfig.get_platform returns wrong value when Python 32b is running under Windows 64b

2019-02-06 Thread Steve Dower
Steve Dower added the comment: > This includes _getdiskusage, _getfinalpathname, _getfullpathname, > _getvolumepathname, _isdir, and startfile. They have no place in a POSIX > module. Except for startfile, I disagree. They are all there to help implement POSIX compatibility, and a

[issue22213] Make pyvenv style virtual environments easier to configure when embedding Python

2019-02-06 Thread Steve Dower
Steve Dower added the comment: Victor may be thinking about it from time to time (or perhaps it's time to make the rest of the configuration changes plans concrete so we can all help out?), but I'd like to see this as either: * a helper function to fill out the core config struct

[issue35920] Windows 10 ARM32 platform support

2019-02-06 Thread Steve Dower
New submission from Steve Dower : As posted at https://mail.python.org/pipermail/python-dev/2019-February/156229.html, add support for the Windows ARM32 platform. This is related to issue33125, but we are doing ARM32 first before considering ARM64. Paul Monson (Paul.Monson at microsoft.com

[issue35921] Use ccache by default

2019-02-06 Thread Steve Dower
Steve Dower added the comment: I think the caching that MSVC does naturally handles this well enough - certainly rebuilds normally just build those files that have not changed. Besides not rebuilding .o[bj] files where the sources have not changed, what else do these tools do

[issue14094] ntpath.realpath() should use GetFinalPathNameByHandle()

2019-02-07 Thread Steve Dower
Steve Dower added the comment: Posted a review. I suggest a few changes for the sake of tidying up, but I agree that I'd like to see more tests added. -- ___ Python tracker <https://bugs.python.org/is

[issue35935] threading.Event().wait() not interruptable with Ctrl-C on Windows

2019-02-08 Thread Steve Dower
Steve Dower added the comment: I'm not sure it's quite as simple as calling sys.exit, but it would be a great project to bring universal cancellation support to all (regularly) blocking functions. Asyncio has suffered from this as well. Part of the problem is that POSIX APIs o

[issue35944] Python 3.7 install error

2019-02-08 Thread Steve Dower
Steve Dower added the comment: That looks like an incomplete log. Do you have the log file without "000_core_JustForMe" at the end of the name? -- ___ Python tracker <https://bugs.python.o

[issue35944] Python 3.7 install error

2019-02-08 Thread Steve Dower
Steve Dower added the comment: It seems to think the install has been deleted between extracting/verifying it and launching the installer. Do you have any antivirus running that you could disable? Those can sometimes interfere like this

[issue35948] update version of libffi in cpython-sources-dep

2019-02-08 Thread Steve Dower
Steve Dower added the comment: This is complete. Right now it's a straight merge from the libffi repo, as we want to be on their latest to help resolve any remaining bugs. Once they make a stable release, we can snap to that. -- assignee: -> steve.dower resolution: ->

[issue26024] Non-ascii Windows locale names

2019-02-11 Thread Steve Dower
Steve Dower added the comment: We should switch to _wsetlocale, or else come up with a more sensible mapping that makes sense between platforms (like we have for encodings already). I suspect the latter requires proper design and discussion, so it's worth doing the first part immedi

[issue35976] Enable Windows projects to build with platform ARM32

2019-02-12 Thread Steve Dower
New submission from Steve Dower : Just updating the title to reflect what the patch actually does in isolation - you probably should update the PR and NEWS items to match. It's fine (probably preferred) to mention in the issue and PR text that it's been split out from another PR. B

[issue35706] Make it easier to use a venv with an embedded Python interpreter

2019-02-13 Thread Steve Dower
Steve Dower added the comment: That's not a "see also" - it's just a duplicate :) I'll close this one as the other one has been around longer. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Make pyvenv

[issue22213] Make pyvenv style virtual environments easier to configure when embedding Python

2019-02-13 Thread Steve Dower
Steve Dower added the comment: I just closed 35706 as a duplicate of this one (the titles are basically identical, which feels like a good hint ;) ) It seems that the disagreement about the design is fundamentally a disagreement between a "quick, painful but complete fix" and &quo

[issue22213] Make pyvenv style virtual environments easier to configure when embedding Python

2019-02-13 Thread Steve Dower
Steve Dower added the comment: Thanks, Victor, that's great information. > Memory allocator, context, different structures for configuration... it's > really not an easy topic :-( There are so many constraints put into a single > API! This is why I'm keen to des

[issue35920] Windows 10 ARM32 platform support

2019-02-13 Thread Steve Dower
Steve Dower added the comment: Issue35976 was broken out for the more mechanical changes. -- ___ Python tracker <https://bugs.python.org/issue35920> ___ ___

[issue35976] Enable Windows projects to build with platform ARM32

2019-02-14 Thread Steve Dower
Steve Dower added the comment: New changeset 8a1657b93469580ef345c7c91738587f3d76e87d by Steve Dower (Paul Monson) in branch 'master': bpo-35976: Enable Windows projects to build with platform ARM32 (GH-11825) https://github.com/python/cpython/commit/8a1657b93469580ef345c7c9173858

[issue35976] Enable Windows projects to build with platform ARM32

2019-02-14 Thread Steve Dower
Steve Dower added the comment: Thanks, Paul! Hopefully when you rebase the main change on top of this it will be easier to see the actual impact. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Pytho

[issue36010] Please provide a .zip Windows release of Python that is not crippled/for embedding only

2019-02-16 Thread Steve Dower
Steve Dower added the comment: > So is that a no for a regular .zip release here? > https://www.python.org/downloads/windows/ Correct, it's a no. The main reason is because people use it wrong and get into trouble, and we don't want to support that. (More after the docs l

[issue36010] Please provide a .zip Windows release of Python that is not crippled/for embedding only

2019-02-16 Thread Steve Dower
Steve Dower added the comment: The whole point of a venv is to give you a separate directory with a "stand alone" Python. As that's what you just installed with nuget, there's no point in creating a venv - just pip install directly into it. Alternatively, you can pip in

[issue36010] Please provide a .zip Windows release of Python that is not crippled/for embedding only

2019-02-16 Thread Steve Dower
Steve Dower added the comment: There certainly used to be a problem where venv was totally reliant on Python being in the registry to work properly. I'm not sure if that's still the case - possibly with the new redirector in 3.7.2+

[issue36010] Please provide a .zip Windows release of Python that is not crippled/for embedding only

2019-02-16 Thread Steve Dower
Steve Dower added the comment: It would be a great help if you could copy the ensurepip and venv directories from a regular install into an extracted Nuget package and let us know whether your scenario works. As you can see from the discussion, there were problems originally that may have

[issue36010] Please provide a .zip Windows release of Python that is not crippled/for embedding only

2019-02-18 Thread Steve Dower
Steve Dower added the comment: Yeah, I'm okay with it for 3.7.3 and future releases. The only change should need to be for the nuget preset in PC/layout/support/options.py -- ___ Python tracker <https://bugs.python.org/is

[issue1104] msilib.SummaryInfo.GetProperty() truncates the string by one character

2019-02-18 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.o

[issue33935] shutil.copyfile throws incorrect SameFileError on Google Drive File Stream

2019-02-19 Thread Steve Dower
Steve Dower added the comment: Would it make sense to add a parameter to _getfinalpathname that specifies the type of the path? For same[open]file(), we can probably just go to the most unreadable but broadly supported type, whereas the other functions that are actually going to return the

[issue36020] HAVE_SNPRINTF and MSVC std::snprintf support

2019-02-19 Thread Steve Dower
Steve Dower added the comment: We don't support older versions of MSVC at this point, so the version check seems unnecessary. If we need to alias these within the CPython sources for non-MSVC compilers, then we should do it in source files. In general, we never want to pollute the u

[issue36021] [Security][Windows] webbrowser: WindowsDefault uses os.startfile() and so can be abused to run arbitrary commands

2019-02-19 Thread Steve Dower
Steve Dower added the comment: The most I'd be okay with doing here is filtering for "://" in the webbrowser module, and not limiting "scheme" at all except that it must be a valid scheme. Windows allows apps and programs to extend protocol handling in HKEY_CLASS

[issue36040] Python\ast.c(3875): warning C4244: 'initializing': conversion from 'Py_ssize_t' to 'int'

2019-02-19 Thread Steve Dower
Steve Dower added the comment: Eh, just needs to change the local variable to Py_ssize_t. This applies to all platforms. Might be worth asserting that it is no bigger than the largest number of child tokens a node may have, but only if we have an arbitrary limit for that somewhere (I

[issue35941] ssl.enum_certificates() regression

2019-02-19 Thread Steve Dower
Steve Dower added the comment: The PR requires PEP 7 to be applied thoroughly, but I think the concept is sound enough. -- nosy: +nr ___ Python tracker <https://bugs.python.org/issue35

[issue36011] ssl - tls verify on Windows fails

2019-02-19 Thread Steve Dower
Steve Dower added the comment: Thanks. This is a well-known and long-standing issue between OpenSSL and Windows, and the best workaround right now is to use the Mozilla certs directly. One day when OpenSSL is no longer part of the CPython public API, then we can consider switching to an

[issue36021] [Security][Windows] webbrowser: WindowsDefault uses os.startfile() and so can be abused to run arbitrary commands

2019-02-20 Thread Steve Dower
Steve Dower added the comment: > Maybe webbrowser must be changed to become *very strict*. This is the only acceptable suggestion I've seen (since my suggestion ;) ) I'd propose making it very strict by *requiring* a browser to be detected. So remove the os.startfile defau

[issue36020] HAVE_SNPRINTF and MSVC std::snprintf support

2019-02-20 Thread Steve Dower
Steve Dower added the comment: Start by just deleting the definitions in pyerrors.h, and see where the build fails. Then either switch those to use PyOS_snprintf (best), or add the #ifndef checks in the source files (not header files) that need them. Be aware that we shouldn't backpor

[issue35662] Windows #define _PY_EMULATED_WIN_CV 0 bug

2019-02-21 Thread Steve Dower
Steve Dower added the comment: > reveals an expectation that Py_END_ALLOW_THREADS won't change the results of > GetLastError() Fantastic work, Jeff! That's almost certainly the major problem there - Py_END_ALLOW_THREADS can totally change the error code, and we haven

[issue29871] Enable optimized locks on Windows

2019-02-21 Thread Steve Dower
Steve Dower added the comment: > I assume you meant #35662 Yes indeed. I am apparently massively dyslexic when it comes to copying issue numbers into the bpo comment field :) Meanwhile, over on #35662, Jeff has a fix for at least one of the regressions. -- versions: +Python

[issue33944] Deprecate and remove pth files

2019-02-21 Thread Steve Dower
Change by Steve Dower : -- nosy: +steve.dower ___ Python tracker <https://bugs.python.org/issue33944> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35662] Windows #define _PY_EMULATED_WIN_CV 0 bug

2019-02-21 Thread Steve Dower
Steve Dower added the comment: The regular test suite ought to be enough - see devguide.python.org for the info. It was definitely failing in multiprocessing last time I tried this. You could also just push changes and start a PR, as that will run the tests automatically

[issue36085] Enable better DLL resolution

2019-02-22 Thread Steve Dower
New submission from Steve Dower : So the fundamental problem is that the default DLL search path on Windows changes in various contexts, and the only consistent approach is the most difficult to support with current packaging tools. The result is .pyd files that need to resolve .dll

[issue36085] Enable better DLL resolution

2019-02-22 Thread Steve Dower
Steve Dower added the comment: I nosied both Windows and import experts, and I'm about to go ping relevant numpy/scipy people on https://github.com/numpy/numpy/pull/13019 Personally, I would prefer option #1, despite the pain it would cause. It is the better long-term supported option

[issue33944] Deprecate and remove pth files

2019-02-22 Thread Steve Dower
Steve Dower added the comment: I took a look at the docs PR, and honestly I don't even get what the "intended" uses of executable code are supposed to be. The examples are "load 3rd-party import hooks, adjust PATH variable", but the only cases I can think of where

[issue36085] Enable better DLL resolution

2019-02-22 Thread Steve Dower
Steve Dower added the comment: I'm very against doing magic to extract the names from the DLL, but maybe we could have a search path in the parent package? Then add/remove it around importing the module. I think you're right that we just need to update the LoadLibrary flags, but

[issue27593] Deprecate sys._mercurial and create sys._git

2017-03-03 Thread Steve Dower
Changes by Steve Dower : -- pull_requests: +374 ___ Python tracker <http://bugs.python.org/issue27593> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27593] Deprecate sys._mercurial and create sys._git

2017-03-03 Thread Steve Dower
Changes by Steve Dower : -- pull_requests: +375 ___ Python tracker <http://bugs.python.org/issue27593> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27593] Deprecate sys._mercurial and create sys._git

2017-03-03 Thread Steve Dower
Changes by Steve Dower : -- pull_requests: +376 ___ Python tracker <http://bugs.python.org/issue27593> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27593] Deprecate sys._mercurial and create sys._git

2017-03-03 Thread Steve Dower
Changes by Steve Dower : -- pull_requests: +377 ___ Python tracker <http://bugs.python.org/issue27593> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27593] Deprecate sys._mercurial and create sys._git

2017-03-03 Thread Steve Dower
Steve Dower added the comment: Here's some sample output with the change: C:\build\cpython36>PCbuild\win32\python_d.exe Python 3.6.0+ (3.6:95c50e5aed9e5683676e18349dd94b11901a66b3, Mar 4 2017, 06:08:54) [MSC v.1900 32 bit (Intel)] on win32 Type "help", "copyright"

[issue27593] Deprecate sys._mercurial and create sys._git

2017-03-03 Thread Steve Dower
Steve Dower added the comment: copyright==>version string (sys.version) Also, that part is clearly not release blocking. My PR for 2.7 is waiting for Travis to catch up, so once that's done and Ned has finished his backports (or Larry and Ben have backported to their versions?) we c

[issue27593] Deprecate sys._mercurial and create sys._git

2017-03-03 Thread Steve Dower
Steve Dower added the comment: GitHub trims to the first 7 characters. I see no harm in doing that for sys.version (but not tonight) -- ___ Python tracker <http://bugs.python.org/issue27

[issue27593] Deprecate sys._mercurial and create sys._git

2017-03-04 Thread Steve Dower
Steve Dower added the comment: I just did my build for 3.6.1rc1 and it looks like `git name-rev --name-only --tags HEAD` returns "3.6.1rc1^0" for some reason. Perhaps "git describe" is the better command to use here? From what I've seen of that, it should do "

[issue29319] Embedded 3.6.0 distribution cannot run pyz files

2017-03-07 Thread Steve Dower
Steve Dower added the comment: Eric - that sounds like the same issue. Can you test with 3.6.1rc1 to see if it is fixed for you? -- ___ Python tracker <http://bugs.python.org/issue29

[issue29740] Visual C++ CRT security update from 14 June 2011

2017-03-07 Thread Steve Dower
Steve Dower added the comment: We don't use MFC in Python, so we are not affected. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <http://bugs.pyth

[issue29319] Embedded 3.6.0 distribution cannot run pyz files

2017-03-07 Thread Steve Dower
Steve Dower added the comment: Oh, well that's by design. Neither the current working directory nor the directory of the initial script are in sys.path by default - they need to be added explicitly. The intent of this distro is that you know exactly where relative to the executable

[issue29740] Visual C++ CRT security update from 14 June 2011

2017-03-07 Thread Steve Dower
Steve Dower added the comment: There will be no changes to the CRT in the update. It's been released as a major upgrade package rather than a patch, which is why it contains all the files, but the last version field typically (and in this case definitely) indicates no change to the A

[issue29723] 3.6.1rc1 adds the current directory to sys.path when running a subdirectory's __main__.py; previous versions did not

2017-03-07 Thread Steve Dower
Steve Dower added the comment: It's actually "adding" the current directory by not replacing the empty string that's normally there, presumably because it's already been resolved into a path at this stage. The behavior on Windows is correct, so I expect it's

[issue29723] 3.6.1rc1 adds the current directory to sys.path when running a subdirectory's __main__.py; previous versions did not

2017-03-08 Thread Steve Dower
Steve Dower added the comment: > C:\Temp doesn't belong in sys.path in this case Hang on, why not? If I were running a module.py then it would be, so why is a package\__main__.py different (and not able to import itself or its siblings)? The package is the "script" being run

[issue29319] Embedded 3.6.0 distribution cannot run pyz files

2017-03-10 Thread Steve Dower
Steve Dower added the comment: That will work fine. Thanks for checking The process for pulling someone's PR into your own repo is roughly branch then pull from the repo sending the PR. Github should show instructions for this under m hidden behind a "merge manually" button (

[issue29778] _Py_CheckPython3 uses uninitialized dllpath when embedder sets module path with Py_SetPath

2017-03-10 Thread Steve Dower
Steve Dower added the comment: I thought we'd documented that if you set the path when embedding you should also set the program name, but perhaps not (didn't check just now). If not, we should do that. We shouldn't be loading python3.dll anywhere. Are you sure that's in C

[issue23606] ctypes.util.find_library("c") no longer makes sense

2017-03-10 Thread Steve Dower
Steve Dower added the comment: Noted. Did this bite you somehow? Is there something else that should be added/changed? -- ___ Python tracker <http://bugs.python.org/issue23

[issue29778] _Py_CheckPython3 uses uninitialized dllpath when embedder sets module path with Py_SetPath

2017-03-10 Thread Steve Dower
Steve Dower added the comment: Ah, I see. We force load it in PC/getpathp.c to ensure that it's ours and not another version's python3.dll. We should probably refactor the GetModuleFileNameW call into its own function so we can call it from anywhe

[issue29778] _Py_CheckPython3 uses uninitialized dllpath when embedder sets module path with Py_SetPath

2017-03-10 Thread Steve Dower
Changes by Steve Dower : -- stage: -> needs patch type: -> behavior versions: +Python 3.6, Python 3.7 ___ Python tracker <http://bugs.python.org/i

<    27   28   29   30   31   32   33   34   35   36   >