Py2Exe with Kivy?

1,473 views
Skip to first unread message

Syn

unread,
Oct 30, 2012, 7:32:01 PM10/30/12
to kivy-...@googlegroups.com
Is Py2Exe a possible way to create an .exe with Kivy?
How would I be able to add the kivy hooks (such as in the PyInstaller method)?

Thanks.

Mathieu Virbel

unread,
Oct 30, 2012, 7:37:51 PM10/30/12
to kivy-...@googlegroups.com
Hi,

The hooks are made only for PyInstaller. I guess Py2exe would require a
full work too, because they have their own approach of the problem.
Why do you want to avoid pyinstaller ?

Mathieu

Le 31/10/2012 00:32, Syn a �crit :
> --
>
>

Syn

unread,
Oct 30, 2012, 7:56:04 PM10/30/12
to kivy-...@googlegroups.com
I am making a Kivy game designer tool for beginners so they can make their own programs without the need to learn how to code. This tool is mostly for getting students into computer science (I am looking to get it into a few schools). So far, progress is going very good and it generates a .py file containing all the Kivy code (along with a few other files). I am at the stage where I would like to make an executable out of this .py file.

I'm having a bit of trouble trying to do this 'exe process' with PyInstaller. It would seem that the user would have to download python if they wanted to make an .exe out of their program using PyInstaller.

I tried execfile("pyinstaller\\pyinstaller.py"), from pyinstaller import pyinstaller and I am still currently trying other ways.
I won't get any error, but I will not get an exe (Still exploring why this is happening).

I hope that py2exe or cx_freeze will solve this problem.

Thanks.

On Tuesday, October 30, 2012 8:37:45 PM UTC-3, Mathieu Virbel wrote:
Hi,

The hooks are made only for PyInstaller. I guess Py2exe would require a
full work too, because they have their own approach of the problem.
Why do you want to avoid pyinstaller ?

Mathieu

Le 31/10/2012 00:32, Syn a �crit :

Mathieu Virbel

unread,
Oct 30, 2012, 7:58:53 PM10/30/12
to kivy-...@googlegroups.com
They just need the Kivy portable package. Pyexe or others methods would
not change anything, if you want to build an exe, you also need the
additionnals libraries. Even if it's shipped in your exe :)

If they use the portable package, then you can just add the pyinstaller
into it, or even do a command for downloading automatically, and
generate the appropriate files.

The method doesn't require an external python... because we already
provide one!

Le 31/10/2012 00:56, Syn a �crit :
> I am making a Kivy game designer tool for beginners so they can make
> their own programs without the need to learn how to code. This tool is
> mostly for getting students into computer science (I am looking to get
> it into a few schools). So far, progress is going very good and it
> generates a .py file containing all the Kivy code (along with a few
> other files). I am at the stage where I would like to make an executable
> out of this .py file.
>
> I'm having a bit of trouble trying to do this 'exe process' with
> PyInstaller. It would seem that the user would have to download python
> if they wanted to make an .exe out of their program using PyInstaller.
>
> I tried execfile("pyinstaller\\pyinstaller.py"), from pyinstaller import
> pyinstaller and I am still currently trying other ways.
> I won't get any error, but I will not get an exe (Still exploring why
> this is happening).
>
> I hope that py2exe or cx_freeze will solve this problem.
>
> Thanks.
>
> On Tuesday, October 30, 2012 8:37:45 PM UTC-3, Mathieu Virbel wrote:
>
> Hi,
>
> The hooks are made only for PyInstaller. I guess Py2exe would require a
> full work too, because they have their own approach of the problem.
> Why do you want to avoid pyinstaller ?
>
> Mathieu
>
> Le 31/10/2012 00:32, Syn a �crit :
> > Is Py2Exe a possible way to create an .exe with Kivy?
> > How would I be able to add the kivy hooks (such as in the PyInstaller
> > method)?
> >
> > Thanks.
> >
> > --
> >
> >
>
> --
>
>

Syn

unread,
Oct 30, 2012, 8:10:21 PM10/30/12
to kivy-...@googlegroups.com
Hmm I was hoping to avoid including the portable package as it is a quite big, I guess this might be my only option. 

On Tuesday, October 30, 2012 8:58:50 PM UTC-3, Mathieu Virbel wrote:
They just need the Kivy portable package. Pyexe or others methods would
not change anything, if you want to build an exe, you also need the
additionnals libraries. Even if it's shipped in your exe :)

If they use the portable package, then you can just add the pyinstaller
into it, or even do a command for downloading automatically, and
generate the appropriate files.

The method doesn't require an external python... because we already
provide one!

Le 31/10/2012 00:56, Syn a �crit :
> I am making a Kivy game designer tool for beginners so they can make
> their own programs without the need to learn how to code. This tool is
> mostly for getting students into computer science (I am looking to get
> it into a few schools). So far, progress is going very good and it
> generates a .py file containing all the Kivy code (along with a few
> other files). I am at the stage where I would like to make an executable
> out of this .py file.
>
> I'm having a bit of trouble trying to do this 'exe process' with
> PyInstaller. It would seem that the user would have to download python
> if they wanted to make an .exe out of their program using PyInstaller.
>
> I tried execfile("pyinstaller\\pyinstaller.py"), from pyinstaller import
> pyinstaller and I am still currently trying other ways.
> I won't get any error, but I will not get an exe (Still exploring why
> this is happening).
>
> I hope that py2exe or cx_freeze will solve this problem.
>
> Thanks.
>
> On Tuesday, October 30, 2012 8:37:45 PM UTC-3, Mathieu Virbel wrote:
>
>     Hi,
>
>     The hooks are made only for PyInstaller. I guess Py2exe would require a
>     full work too, because they have their own approach of the problem.
>     Why do you want to avoid pyinstaller ?
>
>     Mathieu
>
>     Le 31/10/2012 00:32, Syn a �crit :
Reply all
Reply to author
Forward
0 new messages