One expert told me to do the following when compiling via cython and cl:

cython -3 --embed -o c_file_name    python_file_name

Then, assuming python is installed in your apps directory and not your program 
files directory:

set "PYTHON_DIR=%LocalAppData%\Programs\Python\Python311" 

or whatever directory you put python in.

cl /O2 /I"%PYTHON_DIR%\Include" c_file_name  /link /libpath:"%PYTHON_DIR%\libs"

If that doesn't work, that's all I have.  Sorry.

-----Original Message-----
From: Python-list <python-list-bounces+jschwar=sbcglobal....@python.org> On 
Behalf Of Thomas Schweikle via Python-list
Sent: Tuesday, June 13, 2023 1:12 PM
To: Python <python-list@python.org>
Cc: Thomas Schweikle <tschwei...@bfs.de>
Subject: Re: Compiling python on windows with vs



Am Di., 13.Juni.2023 um 19:20:38 schrieb Jim Schwartz:
> What version of visual studio are you using?

Visual Studio 2022, aka 17.6.2.

> What version of python?

python 3.10.11 or 3.11.4

> I’ve had success with using the cython package in python and cl from visual 
> studio, but I haven’t tried visual studio alone.

Same problem at the same place: directory "../modules/..." not found, Renaming 
it from "Modules" to "modules" it is found, but then fails to find "Modules".

Looks like it awaits, compiling in Windows an filesystem only case aware, not 
case sensitive -- I'm assuming this a bug now. Building within cygwin (or MSYS, 
Ubuntu) this works as expected. But there it does not search for "modules" once 
and "Modules" at an other place.

>> On Jun 13, 2023, at 11:59 AM, Thomas Schweikle via Python-list 
>> <python-list@python.org> wrote:
>>
>> Fehler beim Buildvorgang
--
Thomas


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

Reply via email to