Windows installer from python source code without access to source code

Jim Schwartz jschwar at sbcglobal.net
Fri Apr 7 08:28:20 EDT 2023


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 at sbcglobal.net> 
Sent: Friday, April 7, 2023 5:33 AM
To: 'Eryk Sun' <eryksun at gmail.com>
Cc: 'python-list at python.org' <python-list at 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 at gmail.com>
Sent: Thursday, April 6, 2023 8:06 PM
To: Jim Schwartz <jschwar at sbcglobal.net>
Cc: python-list at python.org
Subject: Re: Windows installer from python source code without access to source code

On 4/6/23, Jim Schwartz <jschwar at 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



More information about the Python-list mailing list