Use prepare_command instead of post_install to avoid deprecation