code: def disable_site_packages():
      
      for entry in sys.path[:]:
          if 'site-packages' in entry or 'Extras' in entry:
              sys.path.remove(entry)
docs: Remove all entries mentioning ``site-packages`` or ``Extras`` from
      :attr:sys.path. Used primarily for testing on OS X within a virtualenv,
      where OS X bundles some ancient version of the :mod:`six` module.