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 <jsch...@sbcglobal.net> 
Sent: Friday, April 7, 2023 5:33 AM
To: 'Eryk Sun' <eryk...@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 <eryk...@gmail.com>
Sent: Thursday, April 6, 2023 8:06 PM
To: Jim Schwartz <jsch...@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 <jsch...@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

Reply via email to