
Hi Group, I have successfully used C-Python (3) in a software project in unix and its great stuff! The environment was cmake using g++ in Linux Now when i want to get my project compiled in windows, whats the easiest development chain ? Is there something like a python.dll which i can link to my project and having an embedded python interpreter ? Maybe the question is too simple, but i could not yet find the right place to read docs. Thank you for your hints!

Guenther Sohler writes: Hi, Guenther!
Congratulations!
Now when i want to get my project compiled in windows, whats the easiest development chain ?
That depends. One option is one of the environments (MSYS or Cygwin) based on the GNU compiler chain. There is a python DLL supplied in the Windows environment. Mingwin (+ MSYS?) should work with that, I'm not sure if Cygwin does. Cygwin is more Unix-like, Mingwin is just a GNU compiler chain for Windows. The other is the standard (and I believe free) Visual C compiler from Microsoft. Try https://docs.python.org/3/ for the docs you want: "Extending and Embedding" and "Python/C API". By the way, this isn't the appropriate place for this question. This list is for development discussion of Python itself, and in fact is very close to being phased out in favor of forums on discuss.python.org. For further discussion, you probably want the "python-list@python.org" mailing list, or the "python help" "discuss" channel for "development *with* Python" questions.

On 15Jan2023 0922, Guenther Sohler wrote:
There's an overview of our embeddable package and some discussion of how to use it at https://docs.python.org/3/using/windows.html#windows-embeddable You'll likely also need a full install to get all the developer kit pieces (such as the headers and libs files), but the embeddable package is one you can include straight into your project and redistribute. The binaries are the same, it's just laid out differently. And yes, discuss.python.org is the best place to ask these days. Cheers, Steve

Guenther Sohler writes: Hi, Guenther!
Congratulations!
Now when i want to get my project compiled in windows, whats the easiest development chain ?
That depends. One option is one of the environments (MSYS or Cygwin) based on the GNU compiler chain. There is a python DLL supplied in the Windows environment. Mingwin (+ MSYS?) should work with that, I'm not sure if Cygwin does. Cygwin is more Unix-like, Mingwin is just a GNU compiler chain for Windows. The other is the standard (and I believe free) Visual C compiler from Microsoft. Try https://docs.python.org/3/ for the docs you want: "Extending and Embedding" and "Python/C API". By the way, this isn't the appropriate place for this question. This list is for development discussion of Python itself, and in fact is very close to being phased out in favor of forums on discuss.python.org. For further discussion, you probably want the "python-list@python.org" mailing list, or the "python help" "discuss" channel for "development *with* Python" questions.

On 15Jan2023 0922, Guenther Sohler wrote:
There's an overview of our embeddable package and some discussion of how to use it at https://docs.python.org/3/using/windows.html#windows-embeddable You'll likely also need a full install to get all the developer kit pieces (such as the headers and libs files), but the embeddable package is one you can include straight into your project and redistribute. The binaries are the same, it's just laid out differently. And yes, discuss.python.org is the best place to ask these days. Cheers, Steve
participants (3)
-
Guenther Sohler
-
Stephen J. Turnbull
-
Steve Dower