0

I just created a small game w/ the PyGame library. I also figured out how to convert a PyGame to an executable through cx_Freeze's application's setup.py script.

But, when opening the build folder there is no "executable" but only the exe.macosx-10.9-x86_64-3.7 folder containing a lib folder and a Python and pythonGame (name of the original file) file.

here is my code of the setup (which is pretty straightforward and as much default as it can be):

import cx_Freeze

executables = [cx_Freeze.Executable("pythonGame.py")]

cx_Freeze.setup(
    name="Game",
    options={"build_exe": {"packages":["pygame"],
                           "include_files":["myimage.png"]}}, #icon
    executables = executables

    )

What could be the problem for not having the executable after running this setup.py script? I thank you for your help in advance. P.s.: I already tried other setup.py files as well as changed all fonts to system fonts.

gero
  • 119
  • 11
  • With respect to what you wrote in [your more recent question](https://stackoverflow.com/q/54785072/8516269): if you've been able to solve the present issue, please provide your solution as an answer if you think it is valuable or delete the present question if not. – jpeg Feb 20 '19 at 12:08
  • ok I will delete this post then! thank you for your advice. I would also appreciate if you could help me out considering my most recent post. – gero Feb 20 '19 at 12:26
  • I would love to help but I don't know the `macos` universe and I also don't have access to any such system to make tests before making proposals... – jpeg Feb 20 '19 at 12:36

0 Answers0