Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,152,050 members, 7,814,603 topics. Date: Wednesday, 01 May 2024 at 03:57 PM

How To Port Python Programs Into .exe - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / How To Port Python Programs Into .exe (1401 Views)

Need To Secure Your Compiled Software (.msi Or .exe) To 1/PC? / How Do I Fix "Player.exe Has Stopped Working" Error Message. / How Do I Convert .mdb Files To .exe Files (2) (3) (4)

(1) (Reply) (Go Down)

How To Port Python Programs Into .exe by Nobody: 2:30pm On Nov 04, 2012
Is there any way I can really turn my python 3 programs into .exe I know about py2exe and cx_Freeze. But, is that all there is to it??

Is there a way I can make my app open like let say - yahoo messenger?? (with cx_Freeze- before the app opens, the cmd will come up first - i don't like that)

help me out it is urgent - thanks Gurus.

http://godvillawess..com/
Re: How To Port Python Programs Into .exe by Nobody: 12:42pm On Nov 05, 2012
set the base to Win32GUI
like this

Executable(
script="yourapp.py",
base="Win32GUI",
icon="yourapp.ico"
)
Re: How To Port Python Programs Into .exe by Nobody: 1:54am On Nov 06, 2012
webdezzi: set the base to Win32GUI
like this

Executable(
script="yourapp.py",
base="Win32GUI",
icon="yourapp.ico"
)
please Sir, I don't understand what you mean.
This is the code in my
setup.py
.
from cx_Freeze import setup, Executable

setup(
name = "ejykeproject " ,
version ="0.1" ,
description = "testing" ,
executables = [Executable("ejykeproject.py)] ,
)

.
Sir, do you use cx_Freeze?
.
Where exactly do you want me to set the base?
Thanks for your help.
Re: How To Port Python Programs Into .exe by Nobody: 1:25am On Nov 07, 2012
can we drop the sirs?

yes, i use cx_freeze,

this should work for you

from cx_Freeze import setup, Executable

exe = Executable(
script="ejykeproject.py",
base="Win32GUI",
icon="ejykeproject.ico",
compress=False
)

buildOptions = {"optimize": 0 }



setup(name = "ejykeproject",
version = "0.1",
description = "this application does this and that",
executables = [exe],
options = dict(build_exe = buildOptions))

Re: How To Port Python Programs Into .exe by Nobody: 10:06am On Nov 07, 2012
webdezzi: can we drop the sirs?

yes, i use cx_freeze,

this should work for you

Let me try it out - thanks by the way.
Re: How To Port Python Programs Into .exe by AkinDavid2: 3:50pm On Nov 08, 2012
I'm just learning Python..just basics can any one help please?
Re: How To Port Python Programs Into .exe by Nobody: 9:09am On Nov 16, 2012
Akin-David:
I'm just learning Python..just basics can any one help please?
go to youtube and type "burky python beginner", you would enjoy his mode of teaching
Re: How To Port Python Programs Into .exe by Nobody: 6:37pm On Nov 16, 2012
i thought am the only one here who listens to bucky roberts.

(1) (Reply)

Java : How Can I Add Combo Box To A Table / Programming / I Want To Learn Web / App Development

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 9
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.