Mailing List Archive

1 2  View All
RE: Windows installer from python source code without access to source code [ In reply to ]
Is this what you'd recommend doing when distributing a cython-generated code compiled with cl. I want to distribute this in a windows or other operating system installer. I'll start with windows first. I don't think I can use cx_freeze to create the installer, unless I know which files to include in the package and list them.

https://stackoverflow.com/questions/62390978/minimal-set-of-files-required-to-distribute-an-embed-cython-compiled-code-and-ma


-----Original Message-----
From: Jim Schwartz <jschwar@sbcglobal.net>
Sent: Friday, April 7, 2023 5:33 AM
To: 'Eryk Sun' <eryksun@gmail.com>
Cc: 'python-list@python.org' <python-list@python.org>
Subject: RE: Windows installer from python source code without access to source code

Yea, thanks a lot. That makes sense. I was testing it on my development environment and got it to work that way, but I need to package it and test it on my dual boot "user" environment. Thanks again for the help. I've deleted that environment variable.

-----Original Message-----
From: Eryk Sun <eryksun@gmail.com>
Sent: Thursday, April 6, 2023 8:06 PM
To: Jim Schwartz <jschwar@sbcglobal.net>
Cc: python-list@python.org
Subject: Re: Windows installer from python source code without access to source code

On 4/6/23, Jim Schwartz <jschwar@sbcglobal.net> wrote:
> Never mind. I found it on the web. I needed to point my PYTHONPATH
> to
> sitepackages:

In most cases an application should be isolated from PYTHON* environment variables. If you're creating a Python application or embedding Python in an application, use the embeddable distribution, and add any additional required sys.path directories to the included "._pth" file (e.g. "python311._pth").

https://docs.python.org/3/library/sys_path_init.html#pth-files

--
https://mail.python.org/mailman/listinfo/python-list
RE: Windows installer from python source code without access to source code [ In reply to ]
Thanks everyone for the help. I got my app working with using cython to
generate the c code, cl to compile, and visual studio to create the
setup.exe and the msi installer. I appreciate the help.

-----Original Message-----
From: Python-list <python-list-bounces+jschwar=sbcglobal.net@python.org> On
Behalf Of Jim Schwartz
Sent: Friday, April 7, 2023 7:28 AM
To: 'Eryk Sun' <eryksun@gmail.com>
Cc: python-list@python.org
Subject: RE: Windows installer from python source code without access to
source code

Is this what you'd recommend doing when distributing a cython-generated code
compiled with cl. I want to distribute this in a windows or other operating
system installer. I'll start with windows first. I don't think I can use
cx_freeze to create the installer, unless I know which files to include in
the package and list them.

https://stackoverflow.com/questions/62390978/minimal-set-of-files-required-t
o-distribute-an-embed-cython-compiled-code-and-ma


-----Original Message-----
From: Jim Schwartz <jschwar@sbcglobal.net>
Sent: Friday, April 7, 2023 5:33 AM
To: 'Eryk Sun' <eryksun@gmail.com>
Cc: 'python-list@python.org' <python-list@python.org>
Subject: RE: Windows installer from python source code without access to
source code

Yea, thanks a lot. That makes sense. I was testing it on my development
environment and got it to work that way, but I need to package it and test
it on my dual boot "user" environment. Thanks again for the help. I've
deleted that environment variable.

-----Original Message-----
From: Eryk Sun <eryksun@gmail.com>
Sent: Thursday, April 6, 2023 8:06 PM
To: Jim Schwartz <jschwar@sbcglobal.net>
Cc: python-list@python.org
Subject: Re: Windows installer from python source code without access to
source code

On 4/6/23, Jim Schwartz <jschwar@sbcglobal.net> wrote:
> Never mind. I found it on the web. I needed to point my PYTHONPATH
> to
> sitepackages:

In most cases an application should be isolated from PYTHON* environment
variables. If you're creating a Python application or embedding Python in an
application, use the embeddable distribution, and add any additional
required sys.path directories to the included "._pth" file (e.g.
"python311._pth").

https://docs.python.org/3/library/sys_path_init.html#pth-files

--
https://mail.python.org/mailman/listinfo/python-list

--
https://mail.python.org/mailman/listinfo/python-list

1 2  View All