From 6e5fd3c7fc7b53c63d3394098ab4ecd112dc88d1 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Morin <38703886+JeanChristopheMorinPerso@users.noreply.github.com> Date: Wed, 7 Feb 2024 19:04:09 -0500 Subject: [PATCH] Remove special error message for bez (#1624) Signed-off-by: Jean-Christophe Morin --- src/rez/build_system.py | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/src/rez/build_system.py b/src/rez/build_system.py index 4e4134582..9f27b8e0b 100644 --- a/src/rez/build_system.py +++ b/src/rez/build_system.py @@ -78,38 +78,6 @@ def create_build_system(working_dir, buildsys_type=None, package=None, opts=None clss = get_valid_build_systems(working_dir, package=package) if not clss: - # Special case - bez. This is an old deprecated build system, - # which expects a rezbuild.py file. Include info in error showing - # how to port to a custom build command. - # - if os.path.exists(os.path.join(working_dir, "rezbuild.py")): - msg = ( - "No build system is associated with the path %s.\n" - "\n" - "There is a rezbuild.py file present, suggesting you were " - "using the deprecated bez build system. This functionality " - "will be completely removed in rez 3.0.0.\n" - "You need to use a custom build command instead. " - "You can port your existing " - "rezbuild.py like so:\n" - "\n" - "Add this line to package.py:\n" - "\n" - " build_command = 'python {root}/rezbuild.py {install}'\n" - "\n" - "Add these lines to rezbuild.py:\n" - "\n" - " if __name__ == '__main__':\n" - " import os, sys\n" - " build(\n" - " source_path=os.environ['REZ_BUILD_SOURCE_PATH'],\n" - " build_path=os.environ['REZ_BUILD_PATH'],\n" - " install_path=os.environ['REZ_BUILD_INSTALL_PATH'],\n" - " targets=sys.argv[1:]\n" - " )" - ) - raise BuildSystemError(msg % working_dir) - raise BuildSystemError( "No build system is associated with the path %s" % working_dir)