Closed tangyinqi closed 3 months ago
@tangyinqi Do you have the full error log? The tests do run the install script on Python 3.12 (although not in debug mode), so I'm tempted to say it's likely an issue with your environment. https://github.com/mhammond/pywin32/blob/371f784d7a13edf6db407f25f1db286a6e9200f8/.github/workflows/main.yml#L19-L40
distutils was removed in python 3.12, which was still used in setup.py. So is that the reason?
setuptools stills vendors and patches-in distutils. So no I don't think so.
minor note as I was searching for bug notes before filing one as I found an issue in 306 using Python 3.12 on Windows... the imp
module has been deprecated
imp is used in win32comext\axscript\client\pyscript.py
at line 213 (in 306)
@smanross that has been resolved in https://github.com/mhammond/pywin32/pull/2113 but isn't released yet.
If you need it, you can look at artefacts from the "CI" action: https://github.com/mhammond/pywin32/actions/workflows/main.yml?query=is%3Asuccess+branch%3Amain
Both https://github.com/mhammond/pywin32/pull/2169 and #2113 are merged. The error shown by OP looks like issues related to missing the proper build tools on their environment. Please read https://github.com/mhammond/pywin32/blob/main/build_env.md .
If you still have this issue, please provide a complete log.
For all bugs, please provide the following information:
Expected behavior and actual behavior
Steps to reproduce the problem
Build 306 of pywin32 cannot be built with python 3.12. But build 306 of pywin32 can be built with python 3.86 (I built it in virtual windows environment) distutils was removed in python 3.12, which was still used in setup.py. So is that the reason?
Anyone who has successfully built pywin32 with python 3.12?
Below is where it failed building:
This is the command I use to build:
System information
Python version and distribution:
pywin32 version: build 306
Installed from PyPI or exe installer:
Windows Version:
DLL locations: