Skip to content

Is there a command to run a postinstall script only after a source install, and NOT whilst building wheels? #4791

Answered by abravalheri
Avasam asked this question in Q&A
Discussion options

You must be logged in to vote

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 of bdist_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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Avasam
Comment options

Answer selected by Avasam
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants