Reputation: 57
My goal is to deploy an application I developed in python. I have a mac and I am trying to download cx_Freeze from:
https://pypi.python.org/pypi?:action=display&name=cx_Freeze&version=5.0.2#downloadsenter
When I download cx_Freeze, it tells me that I have to select an application to run the program. So, I tried selecting Idle because I used python to develop the app. However, it continuously fails to decode the download.
I have a setup script written in python and saved as setup.py in my applications folder.
import sys
from cx_Freeze import setup, Executable
base = None
if sys.platform == 'Win32' : base = 'Win32GUI'
setup( name ='Bid Score Calculator',
version = '1.0',
description = 'Bid Score Calculator',
author = 'Brian Haney',
options = {'build_exe': opts },
executables = [Executeable( 'Bid Draft Interface.py', base= base)])
Ultimately, I am unsure of how to deploy my application. My questions are 1) What application supports a cx_Freeze download? 2) How do I use the setup script, to deploy the app.
Thanks in advance for any help or comments- I really appreciate it.
Disclaimer - I have been trying to use cx_Freeze for going on two hours, I have read and researched online and have been unable to find anything that helps. Further, I believe an answer to this question will serve a wide audience.
Upvotes: 2
Views: 6494
Reputation: 11603
You definitely need to check out this page. Obviously it will not open with the IDLE since it is stored to be installed. What you really need at this stage is to open up a terminal in the dictionary where your whl file (in other words cx_Freeze) was installed and run:
python36 -m pip install somepackagename.whl
DO NOT RENAME.
OR
You could just run:
python36 -m pip install cx_Freeze
which will download and install for you.
Your setup script looks fine except you have not defined opts
in the script.
Upvotes: 2