parameters: (package_list)
return_statement: return "\n".join(set(packages))
docstring: Run find_packages the way we intend.
docstring_summary: Run find_packages the way we intend.
docstring_tokens: Run find_packages the way we intend .
function: def smart_find_packages(package_list):
      """Run find_packages the way we intend."""
      packages = []
      for pkg in package_list.strip().split("\n"):
          pkg_path = pkg.replace('.', os.path.sep)
          packages.append(pkg)
          packages.extend(['%s.%s' % (pkg, f)
                           for f in setuptools.find_packages(pkg_path)])
      return "\n".join(set(packages))
function_tokens: def smart_find_packages ( package_list ) : packages = [ ] for pkg in package_list . strip ( ) . split ( "\n" ) : pkg_path = pkg . replace ( '.' , os . path . sep ) packages . append ( pkg ) packages . extend ( [ '%s.%s' % ( pkg , f ) for f in setuptools . find_packages ( pkg_path ) ] ) return "\n" . join ( set ( packages ) )