<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def setuptools_install(self, chdir_to, pkg_name, setup_py_path=None, editable=False):
 """Install an sdist or an editable package into the virtualenv :param str chdir_to: The location to change to :param str setup_py_path: The path to the setup.py, if applicable defaults to None :param bool editable: Whether the package is editable, defaults to False """


        install_options = ["--prefix={0}".format(self.prefix.as_posix()),]
        with vistir.contextmanagers.cd(chdir_to):
            c = self.run(
                self.get_setup_install_args(pkg_name, setup_py_path, develop=editable) +
                install_options, cwd=chdir_to
            )
            return c.returncode