Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #92745

Re: Creating .exe file in Python

References (5 earlier) <2de8f2c1-5a92-4f8b-be2d-c793de69d463@googlegroups.com> <mailman.518.1434470627.13271.python-list@python.org> <9e068291-09c2-4b2a-8e1c-8803050cfba1@googlegroups.com> <mailman.547.1434547236.13271.python-list@python.org> <mlrssm$j8p$1@dont-email.me>
Date 2015-06-17 23:52 +1000
Subject Re: Creating .exe file in Python
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.549.1434549125.13271.python-list@python.org> (permalink)

Show all headers | View raw


On Wed, Jun 17, 2015 at 11:33 PM, hamilton <hamilton@nothere.com> wrote:
> On 6/17/2015 7:20 AM, Chris Angelico wrote:
>>
>> On Wed, Jun 17, 2015 at 11:10 PM,  <subhabrata.banerji@gmail.com> wrote:
>>>
>>> Thank you all. It seems going fine now. I have one additional question if
>>> I run the .exe files created in Non Python Windows environment. Linux has
>>> Python builtin but in Non Python environment how may I run it? Is there any
>>> set of prequisites I have to follow. I am not finding much web help, if any
>>> one may kindly suggest.
>>>
>>
>> There have been some proposals to make an easy way to produce a single
>> package that has a Windows executable header, but can be easily
>> unpacked and run using a system-provided Linux or Mac OS Python.
>> However, I don't think any have been deployed yet. So the simple
>> answer is: You can't do what you're trying to do. Instead, take a step
>> back, and look at just getting your Python program to run on all
>> platforms... and that's easy, just distribute the .py files. Much MUCH
>> easier, more reliable, and simpler.
>>
>> ChrisA
>>
> Yes, this is easy.
>
> However, the python source can be read by anyone.
>
> As a .exe, the source can not be read.
>
> Just because the interpreter is open source,
> does not mean my application should be.

Actually, all you've done is obscure your code. This is a very common
fallacy; people think that since they cannot themselves read the code
out of what they're distributing, nor can anyone else. There's no way
to completely stop people from reading your code other than to not
give them the code.

If you truly want to protect your code from prying eyes, therefore,
there's only one way to do it: host it on a server, and let people
access the server without seeing the code. This is true of all
languages, not just Python, and it's always been the way. You can try
to put legal guards around your code ("opening this package
constitutes acceptance, blah blah, you agree that you will not reverse
engineer, disassemble, blah blah"), but that won't stop people. It's
best to either give them the code and let them see it clearly (open
source) or keep the code away from them in all forms (server-side
deployment).

ChrisA

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Creating .exe file in Python subhabrata.banerji@gmail.com - 2015-06-15 04:42 -0700
  Re: Creating .exe file in Python Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-06-15 13:07 +0100
    Re: Creating .exe file in Python sohcahtoa82@gmail.com - 2015-06-15 10:09 -0700
  Re: Creating .exe file in Python Laura Creighton <lac@openend.se> - 2015-06-15 15:01 +0200
    Re: Creating .exe file in Python subhabrata.banerji@gmail.com - 2015-06-15 06:42 -0700
      Re: Creating .exe file in Python Laura Creighton <lac@openend.se> - 2015-06-15 16:44 +0200
  Re: Creating .exe file in Python subhabrata.banerji@gmail.com - 2015-06-15 07:03 -0700
    Re: Creating .exe file in Python subhabrata.banerji@gmail.com - 2015-06-15 07:40 -0700
  Re: Creating .exe file in Python subhabrata.banerji@gmail.com - 2015-06-15 09:11 -0700
    Re: Creating .exe file in Python Laura Creighton <lac@openend.se> - 2015-06-15 18:29 +0200
      Re: Creating .exe file in Python subhabrata.banerji@gmail.com - 2015-06-16 03:46 -0700
      Re: Creating .exe file in Python subhabrata.banerji@gmail.com - 2015-06-16 06:56 -0700
        Re: Creating .exe file in Python Laura Creighton <lac@openend.se> - 2015-06-16 17:04 +0200
          Re: Creating .exe file in Python subhabrata.banerji@gmail.com - 2015-06-16 08:17 -0700
            Re: Creating .exe file in Python Ian Kelly <ian.g.kelly@gmail.com> - 2015-06-16 10:00 -0600
            Re: Creating .exe file in Python Chris Angelico <rosuav@gmail.com> - 2015-06-17 02:03 +1000
              Re: Creating .exe file in Python subhabrata.banerji@gmail.com - 2015-06-16 09:23 -0700
              Re: Creating .exe file in Python subhabrata.banerji@gmail.com - 2015-06-17 06:10 -0700
                Re: Creating .exe file in Python Chris Angelico <rosuav@gmail.com> - 2015-06-17 23:20 +1000
                Re: Creating .exe file in Python hamilton <hamilton@nothere.com> - 2015-06-17 07:33 -0600
                Re: Creating .exe file in Python Chris Angelico <rosuav@gmail.com> - 2015-06-17 23:52 +1000
                Re: Creating .exe file in Python Steven D'Aprano <steve@pearwood.info> - 2015-06-18 01:39 +1000
                Re: Creating .exe file in Python subhabrata.banerji@gmail.com - 2015-06-17 08:46 -0700
                Re: Creating .exe file in Python Chris Angelico <rosuav@gmail.com> - 2015-06-18 01:58 +1000
                Re: Creating .exe file in Python random832@fastmail.us - 2015-06-17 10:17 -0400
                Re: Creating .exe file in Python subhabrata.banerji@gmail.com - 2015-06-17 07:30 -0700
                Re: Creating .exe file in Python Chris Angelico <rosuav@gmail.com> - 2015-06-18 00:38 +1000
                Re: Creating .exe file in Python subhabrata.banerji@gmail.com - 2015-06-17 06:33 -0700
                Re: Creating .exe file in Python Laura Creighton <lac@openend.se> - 2015-06-17 15:54 +0200
                Re: Creating .exe file in Python subhabrata.banerji@gmail.com - 2015-06-17 07:04 -0700
  Re: Creating .exe file in Python subhabrata.banerji@gmail.com - 2015-06-17 07:16 -0700
    Re: Creating .exe file in Python Laura Creighton <lac@openend.se> - 2015-06-17 17:21 +0200
      Re: Creating .exe file in Python subhabrata.banerji@gmail.com - 2015-06-17 08:30 -0700

csiph-web