<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def build_deps(self):
 # setup_requires [tests_require, install_requires] """Same as runtime_deps, but build dependencies. Test and install requires are included if package contains test suite to prevent %check phase crashes because of missing dependencies Returns: list of build dependencies of the package """

        build_requires = self.metadata['setup_requires']

        if self.has_test_suite:
            build_requires += self.metadata['tests_require'] + self.metadata[
                'install_requires']

        if 'setuptools' not in build_requires:
            build_requires.append('setuptools')
        return sorted(self.name_convert_deps_list(deps_from_pyp_format(
            build_requires, runtime=False)))