Re: [pygame] Re: Freezing Pygame projects in Windows

2016-05-07 Thread Thomas Kluyver
Hi Scott,

On 8 May 2016 at 06:00, scottmeup  wrote:

> I was hoping to obfuscate my code a little this time, do you know if this
> is
> a possibility?
>

Pynsist doesn't have any particular support for obfuscation. But you could
run some tool beforehand that strips out comments and docstrings, renames
variables, etc.

Thomas


[pygame] Re: Freezing Pygame projects in Windows

2016-05-07 Thread scottmeup
Thanks for the reply Thomas,
That looks like a great tool. 
I was hoping to obfuscate my code a little this time, do you know if this is
a possibility?



--
View this message in context: 
http://pygame-users.25799.x6.nabble.com/Freezing-Pygame-projects-in-Windows-tp2384p2388.html
Sent from the pygame-users mailing list archive at Nabble.com.


[pygame] Re: Freezing Pygame projects in Windows

2016-05-07 Thread scottmeup
Hey, thanks for the reply.
I've tried slightly re-working your spec file to fit my project and freezing
with pyinstall but haven't had much luck so far :(
With console=False the executable seems to quietly exit on launch.
If I set console=True it hangs, as it did before.

Console is something I was hoping to have access to, I'm not sure if that's
a problem? I might have to cut back on some functionality if it isn't
possible. 



--
View this message in context: 
http://pygame-users.25799.x6.nabble.com/Freezing-Pygame-projects-in-Windows-tp2384p2387.html
Sent from the pygame-users mailing list archive at Nabble.com.


Re: [pygame] Freezing Pygame projects in Windows

2016-05-07 Thread Thomas Kluyver
I have a tool called Pynsist that can build an installer directly, without
going through a freeze tool:
http://pynsist.readthedocs.io/en/latest/

There's an example for using it with pygame:
https://github.com/takluyver/pynsist/tree/master/examples/pygame

This isn't exactly what you're asking, but it may be an alternative
approach - I've designed Pynsist to avoid some of the most common issues
with freeze tools like PyInstaller.

Thomas

On 7 May 2016 at 08:18, scottmeup  wrote:

> Hey All,
> Sorry if this has been asked & answered, I couldn't find anything specific
> by searching so far so hopefully not :)
>
> I'm trying to freeze a project made with pygame / SimpleGUICS2Pygame. Every
> tool I've tried apart from pygame2exe results in an executable that stops
> responding. Most of them print a pygame parachute segmentation fault.
>
> I've had success freezing with pygame2exe but I'd like to be able to use a
> different freezing tool for a few reasons, and I'm a little bit too green
> to
> work out how to make the changes made in pygame2exe work with other tools.
>
> I might be mistaken but from what I've read I think the problem may have
> something to do with the font settings?
>
> Could someone point me in the right direction of something I can do to make
> pyinstaller & other tools create working executables for pygame?
>
> Thanks in advance!
>
>
>
> --
> View this message in context:
> http://pygame-users.25799.x6.nabble.com/Freezing-Pygame-projects-in-Windows-tp2384.html
> Sent from the pygame-users mailing list archive at Nabble.com.
>


Re: [pygame] Freezing Pygame projects in Windows

2016-05-07 Thread Rob Hagemans
I recall I couldn't make py2exe work either, but that's a long time ago. I'm 
using PyInstaller without problems to create executable packages of a PyGame 
project. I'm using a standard spec file as per 
http://pythonhosted.org/PyInstaller/spec-files.html. I then use NSIS 
https://sourceforge.net/projects/nsis/ to create an installer EXE. Have a look 
at the files in 
https://github.com/robhagemans/pcbasic/tree/master/packaging/windows for a 
working example with a spec file for pyinstaller and a script for NSIS.
PyInstaller can also produce a single executable file, but I'm not doing this 
so I don't know if that causes any problems with PyGame.
Rob 

On Saturday, 7 May 2016, 8:18, scottmeup  wrote:
 

 Hey All,
Sorry if this has been asked & answered, I couldn't find anything specific
by searching so far so hopefully not :)

I'm trying to freeze a project made with pygame / SimpleGUICS2Pygame. Every
tool I've tried apart from pygame2exe results in an executable that stops
responding. Most of them print a pygame parachute segmentation fault.

I've had success freezing with pygame2exe but I'd like to be able to use a
different freezing tool for a few reasons, and I'm a little bit too green to
work out how to make the changes made in pygame2exe work with other tools.

I might be mistaken but from what I've read I think the problem may have
something to do with the font settings?

Could someone point me in the right direction of something I can do to make
pyinstaller & other tools create working executables for pygame?

Thanks in advance! 



--
View this message in context: 
http://pygame-users.25799.x6.nabble.com/Freezing-Pygame-projects-in-Windows-tp2384.html
Sent from the pygame-users mailing list archive at Nabble.com.


  

[pygame] Freezing Pygame projects in Windows

2016-05-07 Thread scottmeup
Hey All,
Sorry if this has been asked & answered, I couldn't find anything specific
by searching so far so hopefully not :)

I'm trying to freeze a project made with pygame / SimpleGUICS2Pygame. Every
tool I've tried apart from pygame2exe results in an executable that stops
responding. Most of them print a pygame parachute segmentation fault.

I've had success freezing with pygame2exe but I'd like to be able to use a
different freezing tool for a few reasons, and I'm a little bit too green to
work out how to make the changes made in pygame2exe work with other tools.

I might be mistaken but from what I've read I think the problem may have
something to do with the font settings?

Could someone point me in the right direction of something I can do to make
pyinstaller & other tools create working executables for pygame?

Thanks in advance! 



--
View this message in context: 
http://pygame-users.25799.x6.nabble.com/Freezing-Pygame-projects-in-Windows-tp2384.html
Sent from the pygame-users mailing list archive at Nabble.com.