Re: [Python-ideas] Calling python from C completely statically

2018-07-10 Thread Barry
> On 10 Jul 2018, at 19:12, Alberto Garcia wrote: > > Thank you Barry, > > but I see that the the way yo do it is dropping files to disk. I want to > prevent any file to touch the disk except for the actual binary that has > everything embedded in it. What file are you refering to? The zip

Re: [Python-ideas] Calling python from C completely statically

2018-07-10 Thread Barry
> On 9 Jul 2018, at 21:11, Alberto Garcia wrote: > > Hi, > > thank you for your response. I've downloaded the sources but I couldn't find > any documentation. In addition I see that there is not a single C/C++ file. > What I want to do is calling python from C. > Am I missing something? You

Re: [Python-ideas] Calling python from C completely statically

2018-07-09 Thread Alberto Garcia
Hi, thank you for your response. I've downloaded the sources but I couldn't find any documentation. In addition I see that there is not a single C/C++ file. What I want to do is calling python from C. Am I missing something? Cheers On Mon, Jul 9, 2018 at 12:20 PM Barry Scott wrote: > I think

Re: [Python-ideas] Calling python from C completely statically

2018-07-09 Thread Barry Scott
I think you might find Gordon McMillian's installer interesting to look at. It has a lot f the tech that I think you are looking for. Works up to python 2.7. I ended up taking over when Gordon stopped maintaining it and kept it going up to python 2.7. In principle the same ideas could be made to

Re: [Python-ideas] Calling python from C completely statically

2018-07-09 Thread Alberto Garcia
Does the zip need to reside in disk to be loaded. Or can it be loaded from memory? I don't want it to be loaded from disk but from Memory On Mon, Jul 9, 2018 at 9:59 AM Alberto Garcia wrote: > O I guess you mean this: > > https://github.com/anthony-tuininga/cx_Freeze/blob/master/sourc

Re: [Python-ideas] Calling python from C completely statically

2018-07-09 Thread Alberto Garcia
O I guess you mean this: https://github.com/anthony-tuininga/cx_Freeze/blob/master/source/bases/Common.c Right? On Mon, Jul 9, 2018 at 9:48 AM Alberto Garcia wrote: > Thank you for your response, > > I was thinking on creating that zip file with the content of the Lib > folder and havi

Re: [Python-ideas] Calling python from C completely statically

2018-07-09 Thread Alberto Garcia
Thank you for your response, I was thinking on creating that zip file with the content of the Lib folder and having my c code to download it over the network and have it in memory. I guess that the zip file should have no compression at all right? When you say that I need to use the cx_freeze app

Re: [Python-ideas] Calling python from C completely statically

2018-07-09 Thread Nick Coghlan
On 9 July 2018 at 03:10, Alberto Garcia wrote: > Hey there, > > Yes, the part of having the pyd modules built in in library is already done. > I followed the instructions in the README. What I would like to know now is > how to embed the non frozen python (py) modules. Can you guys please point >

Re: [Python-ideas] Calling python from C completely statically

2018-07-08 Thread Alberto Garcia
Hey there, Yes, the part of having the pyd modules built in in library is already done. I followed the instructions in the README. What I would like to know now is how to embed the non frozen python (py) modules. Can you guys please point me in the right direction. Thank you On Sun, Jul 8, 2018

Re: [Python-ideas] Calling python from C completely statically

2018-07-08 Thread Nick Coghlan
On 8 July 2018 at 21:34, Paul Moore wrote: > This question is probably more appropriate for python-list, but yes, > you certainly can do this. The "Embedded" distributions of Python for > Windows essentially do this already. IIRC, they are only available for > Python 3.x, so you may find you have

Re: [Python-ideas] Calling python from C completely statically

2018-07-08 Thread Paul Moore
On 8 July 2018 at 09:01, Alberto Garcia wrote: > Hi, > > I've been working for a while on having the entire python interpreter with > all his modules statically linked in a binary that can be called with > arbitrary argument which will be passed to the python interpreter. > > I've been able to sta