def conda_package_to_pip(package):
if package in EXCLUDE:<EOL><INDENT>return<EOL><DEDENT>package = re.sub('<STR_LIT>', '<STR_LIT>', package).strip()<EOL>for compare in ('<STR_LIT>', '<STR_LIT>', '<STR_LIT>'):<EOL><INDENT>if compare not in package:<EOL><INDENT>continue<EOL><DEDENT>pkg, version = package.split(compare)<EOL>if pkg in RENAME:<EOL><INDENT>return '<STR_LIT>'.join((RENAME[pkg], compare, version))<EOL><DEDENT>break<EOL><DEDENT>return package<EOL>
Convert a conda package to its pip equivalent.

In most cases they are the same, those are the exceptions:
- Packages that should be excluded (in `EXCLUDE`)
- Packages that should be renamed (in `RENAME`)
- A package requiring a specific version, in conda is defined with a single
  equal (e.g. ``pandas=1.0``) and in pip with two (e.g. ``pandas==1.0``)