@@ -3110,22 +3110,13 @@ def print_post_install_messages(self):
31103110 print_msg (msg , log = self .log )
31113111
31123112 def post_install_step (self ):
3113- """[DEPRECATED] Do some postprocessing."""
3114- # this is for easyblocks calling super(EB_xxx, self).post_install_step()
3115- # deprecation warning is below, in post_processing_step
3116- return self .post_processing_step ()
3117-
3118- def post_processing_step (self ):
31193113 """
3120- Do some postprocessing
3114+ [DEPRECATED] Do some postprocessing
31213115 - run post install commands if any were specified
31223116 """
3123-
3124- if self .post_install_step .__qualname__ != "EasyBlock.post_install_step" :
3125- self .log .deprecated (
3126- "EasyBlock.post_install_step() is deprecated, use EasyBlock.post_processing_step() instead." ,
3127- '6.0' ,
3128- )
3117+ # even though post_install_step is deprecated in easyblocks we need to keep this here until it is
3118+ # removed in 6.0 for easyblocks calling super(EB_xxx, self).post_install_step()
3119+ # The deprecation warning for those is below, in post_processing_step().
31293120
31303121 lib_dir = os .path .join (self .installdir , 'lib' )
31313122 lib64_dir = os .path .join (self .installdir , 'lib64' )
@@ -3153,6 +3144,21 @@ def post_processing_step(self):
31533144
31543145 self .fix_shebang ()
31553146
3147+ def post_processing_step (self ):
3148+ """
3149+ Do some postprocessing
3150+ - run post install commands if any were specified
3151+ """
3152+ # if post_install_step() is present in the easyblock print a deprecation warning
3153+ # with EB 6.0, post_install_step() can be renamed to post_processing_step, and this method deleted.
3154+
3155+ if self .post_install_step .__qualname__ != "EasyBlock.post_install_step" :
3156+ self .log .deprecated (
3157+ "EasyBlock.post_install_step() is deprecated, use EasyBlock.post_processing_step() instead." ,
3158+ '6.0' ,
3159+ )
3160+ return self .post_install_step ()
3161+
31563162 def sanity_check_step (self , * args , ** kwargs ):
31573163 """
31583164 Do a sanity check on the installation
0 commit comments