Nov-16-2016, 09:57 PM
I am having a problem. I want to convert a project of mine to an exe file. So I just created a test file to attempt to figure out how to do it. Here is my problem. I have a simple script in a file named Main. All it does is just open a pygame window.
The thing is that when I then create the exe the exe file does not have any of the information I give it. The name of it is just the same as the file with the script in it.(Main) It has not version number and no description. The only thing it does have is the icon image. Also it wants to put every python file that comes with python into the zip file that is created even though I don't use all of that in my program, but that also could just be how it works. The point is how do I at least get it to give the exe file the proper information? P.S. I run it by opening the command window and typing python setup.py build which is how every youtube video shows to do it but none of them ever explain why this problem is happening.
import pygame screen = pygame.display.set_mode([300,300])Then I have the file with the information to create the exe file.
import sys from cx_Freeze import setup, Executable base = None if sys.platform == 'win32': base = 'Win32GUI' executables = [ Executable('Main.py', base=base, icon="icon.ico") ] setup(name='test', version='0.1', description='test', executables=executables )
The thing is that when I then create the exe the exe file does not have any of the information I give it. The name of it is just the same as the file with the script in it.(Main) It has not version number and no description. The only thing it does have is the icon image. Also it wants to put every python file that comes with python into the zip file that is created even though I don't use all of that in my program, but that also could just be how it works. The point is how do I at least get it to give the exe file the proper information? P.S. I run it by opening the command window and typing python setup.py build which is how every youtube video shows to do it but none of them ever explain why this problem is happening.