Replies: 2 comments 3 replies
-
Bump. Is this feasible? And how ? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Sorry for the delay. This is a highly specialised customisation and probably tricky to achieve. At the stage |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
pywin32 used to have a few manual steps as part of building and packaging the project. Which included having pywin32 already installed since it used its own built extensions as part of build scripts.
I managed to solve one of those "catch-22" by migrating a script to pure python (using ctypes) mhammond/pywin32#2349 but recently hit another issue: pywin32 used to ship with a
PyWin32.chm
help file generated from its source code. Which required running a script manually before the build. And I'd like to restore that functionality as part of a single automated build.The problem is that the "documentation from Python" script https://github.com/mhammond/pywin32/blob/c717bfa4b06bab5984ba4c9eb62fcc4e6dcf99ef/AutoDuck/pywin32.mak#L118-L125 + https://github.com/mhammond/pywin32/blob/main/AutoDuck/py2d.py uses runtime inspection of imports. Meaning that, once again, pywin32 needs to already be installed to run ! I tried running it as part of a custom
install
step, but I still need to tell the wheel to pickup that file. I can't add it todata_files
because it doesn't exist yet as part of the local install process.I could attempt to drastically change the doc generation script, hoping that static analysis is sufficient, but before embarking on that.
Is there any way I could:
Here's the current setup file: https://github.com/mhammond/pywin32/blob/main/setup.py
This is part of my ongoing effort to modernize pywin32's installation and packaging to be automated from the CI, be fully PEP-517 compliant, support editable installs, and stop using deprecated APIs like
distutils
or callingsetup.py
directly.Beta Was this translation helpful? Give feedback.
All reactions