[issue38597] C Extension import limit

2021-02-03 Thread Steve Dower
Steve Dower added the comment: Distutils is now deprecated (see PEP 632) and all tagged issues are being closed. From now until removal, only release blocking issues will be considered for distutils. If this issue does not relate to distutils, please remove the component and reopen it. If y

[issue38597] C Extension import limit

2020-05-16 Thread P12 Pfx
Change by P12 Pfx : -- nosy: +P12 Pfx ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org

[issue38597] C Extension import limit

2020-03-02 Thread miss-islington
miss-islington added the comment: New changeset 0d20364b132014eec609b900997c34779a4d548c by Miss Islington (bot) in branch '3.8': bpo-38597: Never statically link extension initialization code on Windows (GH-18724) https://github.com/python/cpython/commit/0d20364b132014eec609b900997c34779a4d

[issue38597] C Extension import limit

2020-03-02 Thread miss-islington
miss-islington added the comment: New changeset 8a5f7ad5e423b74ea612e25472e5bff3adf1ea87 by Steve Dower in branch '3.7': [3.7] bpo-38597: Never statically link extension initialization code on Windows (GH-18724) (GH-18759) https://github.com/python/cpython/commit/8a5f7ad5e423b74ea612e25472e5

[issue38597] C Extension import limit

2020-03-02 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +18114 pull_request: https://github.com/python/cpython/pull/18759 ___ Python tracker ___ _

[issue38597] C Extension import limit

2020-03-02 Thread Steve Dower
Steve Dower added the comment: New changeset ce3a4984089b8e0ce5422ca32d75ad057b008074 by Steve Dower in branch 'master': bpo-38597: Never statically link extension initialization code on Windows (GH-18724) https://github.com/python/cpython/commit/ce3a4984089b8e0ce5422ca32d75ad057b008074 --

[issue38597] C Extension import limit

2020-03-02 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 11.0 -> 12.0 pull_requests: +18113 pull_request: https://github.com/python/cpython/pull/18758 ___ Python tracker ___

[issue38597] C Extension import limit

2020-03-02 Thread Steve Dower
Steve Dower added the comment: > don't know if you still need it but here is what you requested. Thanks. That basically confirms that something is interfering with distutils. Skipping the check entirely should avoid it. -- versions: +Python 3.8, Python 3.9 __

[issue38597] C Extension import limit

2020-03-01 Thread Xinfa Zhu
Xinfa Zhu added the comment: Steve, don't know if you still need it but here is what you requested. Sorry for the slow move (I was working on something else). Seems mine is finding the x64 before the OneCore, though I don't know the significance. Python 3.7.1 (default, Dec 10 2018, 22:54:23)

[issue38597] C Extension import limit

2020-03-01 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +18080 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18724 ___ Python tracker ___

[issue38597] C Extension import limit

2020-03-01 Thread Steve Dower
Steve Dower added the comment: In thinking about this, I think the best way forward is to just remove the logic that might statically link the initialization code, and instead commit to CPython releases always including vcruntime140.dll even if we switch to a newer version one day. Hopefull

[issue38597] C Extension import limit

2020-02-27 Thread Steve Dower
Steve Dower added the comment: Hmm, just ran it on my own and it's finding the OneCore file first, which is not a problem (yet) but could become one. So we at least need to replace the "**" with a "*" in Lib/distutils/_msvccompiler.py#L109. Not sure if that will help in this other case or n

[issue38597] C Extension import limit

2020-02-27 Thread Steve Dower
Steve Dower added the comment: Thanks, it does seem like it's finding the correct MSVC, but is not finding the redistributable DLL: > cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT ... The "/MT" means to statically the CRT, and then we use link settings later to dynamically link the part instal

[issue38597] C Extension import limit

2020-02-27 Thread Xinfa Zhu
Xinfa Zhu added the comment: FYI when I reduced my package to 106 extension modules, I could run without the DLL error. -- ___ Python tracker ___

[issue38597] C Extension import limit

2020-02-26 Thread Xinfa Zhu
Xinfa Zhu added the comment: I have had wheel installed. Following this SO answer (https://stackoverflow.com/a/50314071/7269441), I added "import setuptools" before distutils (my setup.py attached). Following is the log, where we see the VS path it is using. BTW, I am trying to reduce my pa

[issue38597] C Extension import limit

2020-02-25 Thread Steve Dower
Steve Dower added the comment: You should be able to install "wheel" without setuptools to get the bdist_wheel command. Can you confirm that the build process is actually using that Visual Studio install? If it's going through the regular distutils detection process then it ought to be find

[issue38597] C Extension import limit

2020-02-23 Thread Xinfa Zhu
Xinfa Zhu added the comment: Thanks Steve. Here is what you requested. xinfa@LAPTOP-71TBJKSA MINGW64 /c/Program Files (x86)/Microsoft Visual Studio $ ./Installer/vswhere.exe Visual Studio Locator version 2.7.1+180c706d56 [query version 2.3.2200.14893] Copyright (C) Microsoft Corporation. All r

[issue38597] C Extension import limit

2020-02-23 Thread Steve Dower
Steve Dower added the comment: Okay, looking at _find_vcvarsall in distutils, I'm guessing that something about how your machines are set up means that the vcredist search is failing. First, could you specify which versions of Visual Studio you have installed, and if possible which one is be

[issue38597] C Extension import limit

2020-02-23 Thread Xinfa Zhu
Xinfa Zhu added the comment: I have a similar issue. Do we have an estimate how long it may take to fix this bug? Thanks. I can help but would need some mentoring. -- nosy: +xinfazhu ___ Python tracker

[issue38597] C Extension import limit

2020-01-05 Thread Stefan Behnel
Stefan Behnel added the comment: Cython doesn't interfere with the C compiler setup in any way, that's left to distutils/setuptools (and the user). -- ___ Python tracker ___ _

[issue38597] C Extension import limit

2020-01-05 Thread Steve Dower
Steve Dower added the comment: I haven't looked into _why_ yet, but the first PYD I grabbed from the GitHub link above has had the CRT statically linked. This is not the default (or it should not be), because when we made it the default this exact issue occurred :) If somehow the default lin

[issue38597] C Extension import limit

2020-01-04 Thread Kevin Schlossser
Kevin Schlossser added the comment: Thank you msg356892 for spear heading this for me. I family things to attend to so I apologize for opening this bug report and then walking away.. As far as recreating this issue. It simple to do. you can either use cython or you can put together a quick s

[issue38597] C Extension import limit

2019-11-18 Thread Yurii Leonov
Yurii Leonov added the comment: Done: .pyd files are added in https://github.com/Yuriy-Leonov/cython_imports_limit_issue/commit/2f9e7c02798fb52185dabfe6ce3811c439ca2839 folder with name "dist_example_with_error" -- versions: +Python 3.6 -Python 3.7, Python 3.8, Python 3.9 __

[issue38597] C Extension import limit

2019-11-18 Thread Steve Dower
Steve Dower added the comment: Could you share just one of your .pyd files? Without being able to see whether they are compiled incorrectly, it's hard to be sure whether this is the same cause as before. It certainly looks like distutils is still going to link correctly. -- versions

[issue38597] C Extension import limit

2019-11-17 Thread Юрий Леонов
Юрий Леонов added the comment: Looks like I have same problem for Windows 10 (version 1809, build - 17763.864). I created repository with steps for reproducing - https://github.com/Yuriy-Leonov/cython_imports_limit_issue -- components: -Interpreter Core, Windows nosy: +Юрий Леонов ve

[issue38597] C Extension import limit

2019-10-28 Thread Steve Dower
Steve Dower added the comment: There is an implicit cap due to the C runtime (specifically vcruntime140.dll) allocating fibre local storage on load, which seems like the one you are hitting. However, we discovered this before the first 3.5 release and fixed it. How are you compiling your pac

[issue38597] C Extension import limit

2019-10-26 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- components: +Interpreter Core, Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___

[issue38597] C Extension import limit

2019-10-26 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- components: -Extension Modules ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue38597] C Extension import limit

2019-10-26 Thread Kevin Schlossser
New submission from Kevin Schlossser : System Windows 7 x64 SP2 Ram 16GB 6 Core AMD @ 3.2ghz CPython 3.7.2 C Extension (pyd) import cap. There seems to be a cap on the number of extensions that a package is able to contain. I am able to import 123 extension modules that my package has but w