(May-19-2018, 02:06 AM)Larz60+ Wrote: if using windows, try py2exe see: https://python-forum.io/Thread-Intermedi...ith-Py2exe
if Linux, pyinstaller
and if OS X, pyapp.
I'm on Python 3.6 and if there is a wheel file I would definitely give it a shot! I haven't seen one as of yet.
Kip...
Larz60+, I got px2exe installed now I'm trying to figure out how to build my setup file to build my executable file. I would prefer to have this be a single file.
Here is the Python code:
import os import sys import subprocess from socket import * subprocess.call("cls", shell=True) theargis = '' if len(sys.argv) > 1: theargis +=str(sys.argv[1]) if theargis > '': host = theargis print ("Using Client Address of: " + theargis) else: host = "53.68.240.47" print ("Using Default Address!") port = 13000 buf = 1024 addr = (host, port) UDPSock = socket(AF_INET, SOCK_DGRAM) UDPSock.bind(addr) print ("Waiting to receive messages...") while True: (data, addr) = UDPSock.recvfrom(buf) print ("Production number: " + data.decode("utf-8")) if data.decode("utf-8").upper() == "EXIT": break UDPSock.close() os._exit(0)But the only example I can find is the tutorial for py2exe which is:
from distutils.core import setup import py2exe setup(console=['hello.py'])To which I swapped out the 'hello.py' for Receiver.py.
This of course didn't work at all.
Any good references, to help me build the setup file I'd need to convert this py to a single file exe.
Thanks,
Kip...