I have a small pygame script and I want to compile it; I used this file as setup.py:
import sys
from cx_Freeze import setup, Executable
setup(
name = "AlGem",
version = "0.1",
description = "AlGem",
executables = [Executable("algem.py", base = "Win32GUI")])
but I get a syntax error in one of openGL package files...
File "C:\Python33\lib\site-packages\OpenGL\constants.py", line 46 except TypeError, err: ^ SyntaxError: invalid syntax
What did I miss?
A clean install of cx_Freeze fixed the problem for me.
Pygame doesn't depend on OpenGL, so there's no reason for cx_Freeze to be snooping around there.