Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Staff meeting in the conference room in %d minutes.


devel / comp.lang.python / Re: Windows installer from python source code without access to source code

SubjectAuthor
* Re: Windows installer from python source code without access toChris Angelico
`* Re: Windows installer from python source code without access tojkn
 `- Re: Windows installer from python source code without access toThomas Passin

1
Re: Windows installer from python source code without access to source code

<mailman.2470.1680264532.20444.python-list@python.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=27113&group=comp.lang.python#27113

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: rosuav@gmail.com (Chris Angelico)
Newsgroups: comp.lang.python
Subject: Re: Windows installer from python source code without access to
source code
Date: Fri, 31 Mar 2023 23:08:39 +1100
Lines: 28
Message-ID: <mailman.2470.1680264532.20444.python-list@python.org>
References: <01fd01d963c8$547e9090$fd7bb1b0$.ref@sbcglobal.net>
<01fd01d963c8$547e9090$fd7bb1b0$@sbcglobal.net>
<CAPTjJmosVBVuNfzv0TUsA=xSWe+_uNOARPVcp5-JEmNE5vX5jg@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: news.uni-berlin.de XpFs1DgV9reB8UqzmmMWEgHPwkTNsaAYTLDoCaS8BJnw==
Return-Path: <rosuav@gmail.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=gmail.com header.i=@gmail.com header.b=FWSr3ITu;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.002
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python?': 0.03;
'subject:python': 0.06; '2023': 0.07; 'mar': 0.07;
'subject:Windows': 0.07; 'subject:without': 0.07; 'installer':
0.09; 'problem?': 0.09; 'chrisa': 0.16; 'does,': 0.16;
'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16;
'received:209.85.208.44': 0.16; 'received:mail-
ed1-f44.google.com': 0.16; 'subject:code': 0.16; 'subject:source':
0.16; 'wrote:': 0.16; 'python': 0.16; 'code.': 0.17; 'to:addr
:python-list': 0.20; 'written': 0.22; 'fri,': 0.22; 'install':
0.23; 'code': 0.23; 'anything': 0.25; 'python,': 0.25; 'anyone':
0.25; 'this?': 0.29; 'it,': 0.29; 'think': 0.32; 'concerned':
0.32; 'message-id:@mail.gmail.com': 0.32; 'but': 0.32;
'distribute': 0.33; 'server': 0.33; 'windows': 0.34; 'header:In-
Reply-To:1': 0.34; 'received:google.com': 0.34; 'running': 0.34;
'from:addr:gmail.com': 0.35; 'people': 0.36; 'source': 0.36;
'subject:from': 0.37; 'using': 0.37; "it's": 0.37;
'received:209.85': 0.37; 'way': 0.38; 'put': 0.38; 'received:209':
0.39; 'changes': 0.39; 'received:209.85.208': 0.39; 'distributed':
0.39; 'want': 0.40; 'law': 0.60; "there's": 0.61; 'your': 0.64;
'let': 0.66; 'themselves.': 0.69; 'too.': 0.70; 'copyright': 0.84;
'subject: \n ': 0.84
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20210112; t=1680264530;
h=to:subject:message-id:date:from:in-reply-to:references:mime-version
:from:to:cc:subject:date:message-id:reply-to;
bh=AZm3jXTmx0baMeTrtoUTAYCSs+OExANG8UhI09vmLkw=;
b=FWSr3ITuIzKYggyJeThIjQNhJqQh/GPatXCJx/KSFPPsgSZg1z+C4GBjCFsIOlbjgc
MxYztvpVSoxU0KGnyGxYLZCXgXx0ML6Hv0bI1t+TGlp+ZCTVmHw2dYRbY7NvXf+6+HkN
cqszULG3r5SCuo/NJvbdkuptiLsZYc4ml4n1oFJ4KV5U2tiDK0OCQWYKg/nwAvGt7/vv
nHcVs03T1oQCPZ+5do512l8QV/iiV+7/AUxeVRrO6j9S+ebVtcwl+FR5YP8+c7JV56tv
lbGvjFkUBfJ+XlruuOZm/3z9fgjRJiypwdBrdG8xEvDP4luC81tSxo9RMsPIPZw4FMaR
Q9kA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112; t=1680264530;
h=to:subject:message-id:date:from:in-reply-to:references:mime-version
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=AZm3jXTmx0baMeTrtoUTAYCSs+OExANG8UhI09vmLkw=;
b=Ss6JD7Ji/3mW+58gyvRa1FWrpPwYVaylHTyqP02nC3296SEKXqsA7Ts0IMV4UHjU12
keP3wrLO3r8vChO4JnfJW/dUOjaL/1cqiXRZv5QeCUvAXm32VNqhoOd+y+SpUW6GYoAO
CPfarXfBdvdbyXWPg08aEqU+vkxmlhwJODtOCJS0nSn/WGbg1wsCo7qcF6pxagTJJ6hN
R2wwgHHirA25iMlxMkrperrtViHTcx6HuOZaI5riLX1SOc/rMvtXp7lGJzlDBW3pA22L
R5WG5Stx9n4iEVUW/99t4C8dVZiwr3udaSZhlfATEMbE11MlJRZcSpEDNis1okNnGEWW
P+5w==
X-Gm-Message-State: AAQBX9f1Vu2sGRvEuQoCIjzacmmbp9XN+TZOD2tB3H2hXQS5vdx0cavO
Ou4YqZW1n7nHicri4JpMqVDqZSw5SGd7VaYIstAy/KPk
X-Google-Smtp-Source: AKy350Z9rMKFYY0yIa4rQIyNxwjEXqdYSVZP4L//wQiQqv8Sg/HkhGxOYYzUCNg+kvFGxaW10zHr4DvZ8jTSpq0c/hI=
X-Received: by 2002:a17:906:5584:b0:93a:6e4d:e772 with SMTP id
y4-20020a170906558400b0093a6e4de772mr5825602ejp.7.1680264530112; Fri, 31 Mar
2023 05:08:50 -0700 (PDT)
In-Reply-To: <01fd01d963c8$547e9090$fd7bb1b0$@sbcglobal.net>
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <CAPTjJmosVBVuNfzv0TUsA=xSWe+_uNOARPVcp5-JEmNE5vX5jg@mail.gmail.com>
X-Mailman-Original-References: <01fd01d963c8$547e9090$fd7bb1b0$.ref@sbcglobal.net>
<01fd01d963c8$547e9090$fd7bb1b0$@sbcglobal.net>
 by: Chris Angelico - Fri, 31 Mar 2023 12:08 UTC

On Fri, 31 Mar 2023 at 23:01, Jim Schwartz <jschwar@sbcglobal.net> wrote:
>
> I want a windows installer to install my application that's written in
> python, but I don't want the end user to have access to my source code.
>
>
>
> Is that possible using python? I was using cx-freeze, but that has the
> source code available. So does pyinstaller. I think gcc does, too.
>
>
>
> Does anyone know of a way to do this?
>

Fundamentally no, it's not. Python code will always be distributed as
some form of bytecode. The only way to make it available without
revealing anything is to put it on a server and let people access it
without running it themselves.

But why is that a problem? Copyright law protects you from people
stealing your code and making unauthorized changes to it, and if
you're not worried about them making changes, there's no reason to
hide the source code (whatever you distribute would be just as
copiable). Are you concerned that people will see your bugs? We all
have them.

ChrisA

Re: Windows installer from python source code without access to source code

<c2cf3613-7a56-49c3-957b-d8b3c5dedab8n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=27117&group=comp.lang.python#27117

  copy link   Newsgroups: comp.lang.python
X-Received: by 2002:ad4:4ae7:0:b0:56f:a4:d7f8 with SMTP id cp7-20020ad44ae7000000b0056f00a4d7f8mr4736752qvb.8.1680272082869;
Fri, 31 Mar 2023 07:14:42 -0700 (PDT)
X-Received: by 2002:a05:6871:abca:b0:177:adf6:4fa3 with SMTP id
wu10-20020a056871abca00b00177adf64fa3mr8661679oab.2.1680272082660; Fri, 31
Mar 2023 07:14:42 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.python
Date: Fri, 31 Mar 2023 07:14:42 -0700 (PDT)
In-Reply-To: <mailman.2470.1680264532.20444.python-list@python.org>
Injection-Info: google-groups.googlegroups.com; posting-host=84.92.96.37; posting-account=xy4V0QkAAAAoGgkMsSsv6bfFPHkQXvOY
NNTP-Posting-Host: 84.92.96.37
References: <01fd01d963c8$547e9090$fd7bb1b0$.ref@sbcglobal.net>
<CAPTjJmosVBVuNfzv0TUsA=xSWe+_uNOARPVcp5-JEmNE5vX5jg@mail.gmail.com>
<01fd01d963c8$547e9090$fd7bb1b0$@sbcglobal.net> <mailman.2470.1680264532.20444.python-list@python.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <c2cf3613-7a56-49c3-957b-d8b3c5dedab8n@googlegroups.com>
Subject: Re: Windows installer from python source code without access to
source code
From: jkn_gg@nicorp.f9.co.uk (jkn)
Injection-Date: Fri, 31 Mar 2023 14:14:42 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2766
 by: jkn - Fri, 31 Mar 2023 14:14 UTC

On Friday, March 31, 2023 at 1:09:12 PM UTC+1, Chris Angelico wrote:
> On Fri, 31 Mar 2023 at 23:01, Jim Schwartz <jsc...@sbcglobal.net> wrote:
> >
> > I want a windows installer to install my application that's written in
> > python, but I don't want the end user to have access to my source code.
> >
> >
> >
> > Is that possible using python? I was using cx-freeze, but that has the
> > source code available. So does pyinstaller. I think gcc does, too.
> >
> >
> >
> > Does anyone know of a way to do this?
> >
> Fundamentally no, it's not. Python code will always be distributed as
> some form of bytecode. The only way to make it available without
> revealing anything is to put it on a server and let people access it
> without running it themselves.
>
> But why is that a problem? Copyright law protects you from people
> stealing your code and making unauthorized changes to it, and if
> you're not worried about them making changes, there's no reason to
> hide the source code (whatever you distribute would be just as
> copiable). Are you concerned that people will see your bugs? We all
> have them.
>
> ChrisA

The OP is asking for source code not to be available, not bytecode.
There are obfuscating tools like PyArmor you might want to have a look at.

Re: Windows installer from python source code without access to source code

<mailman.2473.1680274410.20444.python-list@python.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=27118&group=comp.lang.python#27118

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: list1@tompassin.net (Thomas Passin)
Newsgroups: comp.lang.python
Subject: Re: Windows installer from python source code without access to
source code
Date: Fri, 31 Mar 2023 10:53:16 -0400
Lines: 38
Message-ID: <mailman.2473.1680274410.20444.python-list@python.org>
References: <01fd01d963c8$547e9090$fd7bb1b0$.ref@sbcglobal.net>
<CAPTjJmosVBVuNfzv0TUsA=xSWe+_uNOARPVcp5-JEmNE5vX5jg@mail.gmail.com>
<01fd01d963c8$547e9090$fd7bb1b0$@sbcglobal.net>
<mailman.2470.1680264532.20444.python-list@python.org>
<c2cf3613-7a56-49c3-957b-d8b3c5dedab8n@googlegroups.com>
<c6a03f8b-a0d8-b654-02de-24ce6149fe3a@tompassin.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de KZ4fkktPWK7IEN2g0hAe0gMHamP+funmHr35oC1gtEUg==
Return-Path: <list1@tompassin.net>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=tompassin.net header.i=@tompassin.net header.b=tF9jSxYN;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.001
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python?': 0.03; '31,':
0.05; 'subject:python': 0.06; '2023': 0.07; 'mar': 0.07;
'subject:Windows': 0.07; 'subject:without': 0.07; 'angelico':
0.09; 'byte': 0.09; 'installer': 0.09; 'problem?': 0.09;
'received:23.83.212': 0.09; 'received:elm.relay.mailchannels.net':
0.09; 'chrisa': 0.16; 'does,': 0.16; 'received:10.0.0': 0.16;
'received:64.90': 0.16; 'received:64.90.62': 0.16;
'received:64.90.62.162': 0.16; 'received:dreamhost.com': 0.16;
'subject:code': 0.16; 'subject:source': 0.16; 'wrote:': 0.16;
'python': 0.16; 'code.': 0.17; 'to:addr:python-list': 0.20;
'written': 0.22; 'fri,': 0.22; 'install': 0.23; 'code': 0.23;
'anything': 0.25; 'python,': 0.25; 'anyone': 0.25; 'available,':
0.26; 'friday,': 0.26; '>>>': 0.28; 'chris': 0.28; 'this?': 0.29;
'it,': 0.29; 'header:User-Agent:1': 0.30; 'attempt': 0.31; 'am,':
0.31; 'think': 0.32; 'concerned': 0.32; 'received:10.0': 0.32;
'received:mailchannels.net': 0.32;
'received:relay.mailchannels.net': 0.32; 'but': 0.32; 'there':
0.33; 'distribute': 0.33; 'march': 0.33; 'server': 0.33;
'windows': 0.34; 'someone': 0.34; 'same': 0.34; 'header:In-Reply-
To:1': 0.34; 'running': 0.34; 'files': 0.36; 'people': 0.36;
'source': 0.36; 'subject:from': 0.37; 'using': 0.37; "it's": 0.37;
'class': 0.37; 'way': 0.38; 'put': 0.38; 'changes': 0.39;
'distributed': 0.39; 'wants': 0.40; 'want': 0.40; 'law': 0.60;
"there's": 0.61; 'your': 0.64; 'look': 0.65; 'let': 0.66;
'header:Received:6': 0.67; 'received:64': 0.67; 'themselves.':
0.69; 'too.': 0.70; 'tools': 0.74; 'successful': 0.78;
'copyright': 0.84; '10:14': 0.84; 'subject: \n ': 0.84
X-Sender-Id: dreamhost|x-authsender|tpassin@tompassin.net
ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1680274398; a=rsa-sha256;
cv=none;
b=amxGMp/O2tJm61yPBQ1tWT67BcKnhstsvnjRKuLbuGO42ueJ9h1I01gCfSskzh+ojENV1L
wbRZ4i8+vuycjh1rZTuI50NbD3tJDEfziVpoEGDGUc5UXjGv99BEVMHq1MyuvpIwTDGGfP
8fr5wcrb6GICIv4WvCBmeSDj6RGQloctIfZZX1mIPUmsw0gkaPaRY7rp5ymWE+Z+fBxXpL
VfHJlv3pKZ2DaJ4p3jrY1YxDTHDVhtv2pozeRxGDxwcirmJatPpPtNaZKBc61alpmsw5Da
d2VYehkDqPM1QThN1sDNa0bHhTHepxlZ46OxkZmPinSWQHtRj6Q7faE3tPpBlw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed;
d=mailchannels.net; s=arc-2022; t=1680274398;
h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
to:to:cc:mime-version:mime-version:content-type:content-type:
content-transfer-encoding:content-transfer-encoding:
in-reply-to:in-reply-to:references:references:dkim-signature;
bh=gwQgdzyv+yricXNOGRIfStAkZz58RFvE4H3oTDRj6V8=;
b=v6wHuowsnFYSNIbWGes3lxl5SpXpIIZy1QjN7MaSLUVw9daGLzv3gYNMYaEhlxxCVG4+yB
vRkLimjVEISbCPbvcN0imuTK+yr5bpcWJyyjqpyMKnB7biNUHvifFgDacuavTJXzMH351g
a8IVYsRbMw8VEMf4r+LovZQ0t9D8ETngSg9TML2Otp/rQ5o1QfArWZL9OjNRPQABR36skd
XbrfPOdpmE2PgrWDjtmihbVVos80r60s/JbYwNdUwz20pOXhwUHeTNcNAx0Tu3LQoIoe99
uco9PEAYOZJbWPa5+y8d+JqYhzDPzzkBApX5OjoU1+zTYaWVOU4mntOSK8LqyQ==
ARC-Authentication-Results: i=1; rspamd-5468d68f6d-dlq7f;
auth=pass smtp.auth=dreamhost smtp.mailfrom=list1@tompassin.net
X-Sender-Id: dreamhost|x-authsender|tpassin@tompassin.net
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|tpassin@tompassin.net
X-MailChannels-Auth-Id: dreamhost
X-Stretch-Spill: 6b4dcf6964514f31_1680274398637_819471995
X-MC-Loop-Signature: 1680274398637:703658267
X-MC-Ingress-Time: 1680274398637
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tompassin.net;
s=dreamhost; t=1680274398;
bh=gwQgdzyv+yricXNOGRIfStAkZz58RFvE4H3oTDRj6V8=;
h=Date:Subject:To:From:Content-Type:Content-Transfer-Encoding;
b=tF9jSxYNADnr7QOcuR7uVqPwUf/LO5BCq9oLbSwh95MWkVORsEXPaxdLceii3a+RK
IkekREYz+RZb+fDE7pHwbiGYIWp0mK8bAppfuvybqQYAU36+ML46NyA5CvAH7cT/BB
A/eqXVTvAdLbCS5wsjyv9tTGxd9wJWfP2LEJDuu6a7CDM9xjPXMbuyP/2r1u8xDiTz
SrY57esdhSy2Mz9CPWYMzf1olH84SIwv2DFGRF6wGnLBFJ+XpUMuyh5LBHCyywpQwA
/ts/r+/KznFKZc8fqyXAV51PTg3tj9OOwxtw0saKBSj9iicCoN2R4KcGELy/4qOmph
8Tuky2V04RcqA==
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.9.0
Content-Language: en-US
In-Reply-To: <c2cf3613-7a56-49c3-957b-d8b3c5dedab8n@googlegroups.com>
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <c6a03f8b-a0d8-b654-02de-24ce6149fe3a@tompassin.net>
X-Mailman-Original-References: <01fd01d963c8$547e9090$fd7bb1b0$.ref@sbcglobal.net>
<CAPTjJmosVBVuNfzv0TUsA=xSWe+_uNOARPVcp5-JEmNE5vX5jg@mail.gmail.com>
<01fd01d963c8$547e9090$fd7bb1b0$@sbcglobal.net>
<mailman.2470.1680264532.20444.python-list@python.org>
<c2cf3613-7a56-49c3-957b-d8b3c5dedab8n@googlegroups.com>
 by: Thomas Passin - Fri, 31 Mar 2023 14:53 UTC

On 3/31/2023 10:14 AM, jkn wrote:
> On Friday, March 31, 2023 at 1:09:12 PM UTC+1, Chris Angelico wrote:
>> On Fri, 31 Mar 2023 at 23:01, Jim Schwartz <jsc...@sbcglobal.net> wrote:
>>>
>>> I want a windows installer to install my application that's written in
>>> python, but I don't want the end user to have access to my source code.
>>>
>>>
>>>
>>> Is that possible using python? I was using cx-freeze, but that has the
>>> source code available. So does pyinstaller. I think gcc does, too.
>>>
>>>
>>>
>>> Does anyone know of a way to do this?
>>>
>> Fundamentally no, it's not. Python code will always be distributed as
>> some form of bytecode. The only way to make it available without
>> revealing anything is to put it on a server and let people access it
>> without running it themselves.
>>
>> But why is that a problem? Copyright law protects you from people
>> stealing your code and making unauthorized changes to it, and if
>> you're not worried about them making changes, there's no reason to
>> hide the source code (whatever you distribute would be just as
>> copiable). Are you concerned that people will see your bugs? We all
>> have them.
>>
>> ChrisA
>
> The OP is asking for source code not to be available, not bytecode.
> There are obfuscating tools like PyArmor you might want to have a look at.

The byte code can be decompiled, though, so the attempt to hide the code
won't be completely successful if someone wants to make the effort. The
same is true, e.g., about Java. The class files don't include the
source, but they can be decompiled.


devel / comp.lang.python / Re: Windows installer from python source code without access to source code

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor