Is there a command to run a postinstall script only after a source install, and NOT whilst building wheels? #4791
-
In mhammond/pywin32#2447 I re-enabled a code path that is meant to only be run after a successful installation of pywin32. It could still be run automatically after an install from source. However, I noticed that the Is there a command or flow I could use to run code when I'm also considering removing that code path entirely, but I wanna make sure I'm not missing anything first. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I don't think there is a way of specifying post-install hooks for wheels, as the wheel installation workflow is controlled by The build process, which is the one controlled by setuptools, has to be generic enough so that it can happen in a separated machine. The I believe that in the |
Beta Was this translation helpful? Give feedback.
I don't think there is a way of specifying post-install hooks for wheels, as the wheel installation workflow is controlled by
pip
/uv
, and as far as I know, these tools don't provide post-install hooks.The build process, which is the one controlled by setuptools, has to be generic enough so that it can happen in a separated machine. The
install
command that runs inside ofbdist_wheel
merely "installs" the files to a temporary location that is then further zipped into an archive with the.whl
extension.I believe that in the
conda
ecosystem there might be hooks for post-installs.