def requirements(self, requires):
if requires:<EOL><INDENT>if isinstance(requires, basestring) andos.path.isfile(os.path.abspath(requires)):<EOL><INDENT>self._requirements_file = os.path.abspath(requires)<EOL><DEDENT>else:<EOL><INDENT>if isinstance(self._requirements, basestring):<EOL><INDENT>requires = requires.split()<EOL><DEDENT>self._requirements_file = None<EOL>self._requirements = requires<EOL><DEDENT><DEDENT>else:<EOL><INDENT>if os.path.isfile(self._requirements_file):<EOL><INDENT>return<EOL><DEDENT>self._requirements, self._requirements_file = None, None<EOL><DEDENT>
Sets the requirements for the package.

It will take either a valid path to a requirements file or
a list of requirements.