[issue26598] Embbedable zip does not import modules in (zip)subdirectory

2016-03-22 Thread Steve Dower
Steve Dower added the comment: Unless you're working on CPython itself, I'd suggest just installing the debug binaries through the installer. I've made a note to write a blog post on how to use the embeddable distro, so when that comes out (in a few weeks, probably) hopefully it will help answ

[issue26598] Embbedable zip does not import modules in (zip)subdirectory

2016-03-22 Thread Zachary Ware
Zachary Ware added the comment: Each of the .pyd files has its own .vcxproj in PCbuild. You might be able to make use of pcbuild.sln or pcbuild.proj, each of which include all of the various project files. -- resolution: -> not a bug stage: -> resolved status: open -> closed __

[issue26598] Embbedable zip does not import modules in (zip)subdirectory

2016-03-22 Thread Simon
Simon added the comment: Not sure if I should be closing the issue or if you should. I think it is not an issue. -- ___ Python tracker ___ ___

[issue26598] Embbedable zip does not import modules in (zip)subdirectory

2016-03-22 Thread Simon
Simon added the comment: Yes, it was a debug build, I didn't know it only works in release, that's the part I was clearly missing. It would be great if we could have a debug embeddable zip file, but I understand that it might be asking for a bit much. Is the project that builds all the pyds a

[issue26598] Embbedable zip does not import modules in (zip)subdirectory

2016-03-22 Thread Steve Dower
Steve Dower added the comment: Are you making a debug build? It might be looking for _ctypes_d.pyd in that case. You'll need a release build for the embeddable distro, as well as including the pyds from the zip in sys.path - they need to be standalone files. The embeddable release is meant onl

[issue26598] Embbedable zip does not import modules in (zip)subdirectory

2016-03-21 Thread Simon
Simon added the comment: Sorry I should add that 1- I do *not* have python installed on my dev machine. 2- VS2015 Enterprise. 3- Windows 10 - x64 4- *Not* running as admin Everything else is fairly standard. -- ___ Python tracker

[issue26598] Embbedable zip does not import modules in (zip)subdirectory

2016-03-21 Thread Simon
Simon added the comment: 1- New solution Win32 "console application", (left all default settings). 2- downloaded "Gzipped source tarball" from https://www.python.org/downloads/release/python-351/ 3- Extracted everything, (didn't change anything). 4- Added "pythoncore.vcxproj" in "Python-3.5.1\PC

[issue26598] Embbedable zip does not import modules in (zip)subdirectory

2016-03-21 Thread Steve Dower
Steve Dower added the comment: I used the python35.dll in the embeddable install, along with the python35.zip included in there. I linked against python.h and python35.lib from a full install, but put the resulting exe in the directory with the embeddable install so it uses that instead of the

[issue26598] Embbedable zip does not import modules in (zip)subdirectory

2016-03-21 Thread Zachary Ware
Zachary Ware added the comment: I am also unable to reproduce. I've attached the exact code I used, and built it with: cl /I "C:\Program Files\Python35\include" embtest.c /link /libpath:"C:\Program Files\Python35\libs" Output is the expected result of 'import ctypes;print(dir(ctypes))'. Sim

[issue26598] Embbedable zip does not import modules in (zip)subdirectory

2016-03-21 Thread Simon
Simon added the comment: I have tried with the zip file in both the exe alongside the zip and not alongside it, (mine was not). And I get the same error in both cases. I am using Windows 10, VS2015. I compile the Python35.dll directly and my config is default, I don't change anything really.

[issue26598] Embbedable zip does not import modules in (zip)subdirectory

2016-03-21 Thread Steve Dower
Steve Dower added the comment: I can't reproduce this - I used almost exactly your code and it worked fine. The one change I made was to use either L"python35.zip" alone (as my exe was alongside the zip) or a full path to the zip file. Both of these worked. If the zip file is not found, you'll

[issue26598] Embbedable zip does not import modules in (zip)subdirectory

2016-03-20 Thread Simon
Changes by Simon : -- components: +Interpreter Core, Windows ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue26598] Embbedable zip does not import modules in (zip)subdirectory

2016-03-20 Thread Simon
New submission from Simon: I downloaded the Embeddable zip file from the Python site, (https://www.python.org/downloads/release/python-351/) and rand the code below. When I run the code below certain modules are not imported while others are imported fine. The modules that are not imported see