Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Denis McMahon Newsgroups: comp.lang.python Subject: Re: Converting py files to .exe and .dmg Date: Mon, 28 Dec 2015 15:48:08 -0000 (UTC) Organization: A noiseless patient Spider Lines: 18 Message-ID: References: <9b206057-0593-4560-af40-442d03111770@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Mon, 28 Dec 2015 15:48:08 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="66ffcfa4470a58bcddbdcd1913f98ab4"; logging-data="29410"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/+by/xU/+mNEe1HzVAdeayzeXIaQCQpAU=" User-Agent: Pan/0.136 (I'm far too busy being delicious; GIT 926a150 git://git.gnome.org/pan2) Cancel-Lock: sha1:IM7eCZnjmqWPqFw/RV3swVUqNTo= Xref: csiph.com comp.lang.python:100934 On Mon, 28 Dec 2015 07:35:18 -0800, Brian Simms wrote: > I have done a lot of looking around online to find out how to convert > Python files to .exe and .dmg files, but I am confused. Could someone > provide pointers/advice as to how I can turn a Python file into a > Windows .exe and Mac .dmg file. Python files are scripts, they need to be run by an interpreter. If you want an executable file, you need to compile them. I don't know if this is possible. Otherwise, if you want to distribute the .py files, then the people you distribute them to will need to install a python interpreter on the machine they wish to execute them on. -- Denis McMahon, denismfmcmahon@gmail.com