Index: setuptools/tests/test_resources.py
===================================================================
--- setuptools/tests/test_resources.py	(revision 59929)
+++ setuptools/tests/test_resources.py	(working copy)
@@ -255,13 +255,9 @@
             else: raise AssertionError("Should've been bad", ep)
 
     def checkSubMap(self, m):
-        self.assertEqual(str(m),
-            "{'feature2': EntryPoint.parse("
-                "'feature2 = another.module:SomeClass [extra1,extra2]'), "
-            "'feature3': EntryPoint.parse('feature3 = this.module [something]'), "
-            "'feature1': EntryPoint.parse("
-                "'feature1 = somemodule:somefunction')}"
-        )
+        self.assertEqual(len(m), len(self.submap_expect))
+        for key, ep in self.submap_expect.iteritems():
+            self.assertEqual(repr(m.get(key)), repr(ep))
 
     submap_str = """
             # define features for blah blah
@@ -270,6 +266,13 @@
             feature3 = this.module [something]
     """
 
+    submap_expect = dict(feature1=EntryPoint('feature1', 'somemodule',
+                                             ['somefunction']),
+                      feature2=EntryPoint('feature2', 'another.module',
+                                          ['SomeClass'], ['extra1','extra2']),
+                      feature3=EntryPoint('feature3', 'this.module',
+                                          extras=['something']))
+
     def testParseList(self):
         self.checkSubMap(EntryPoint.parse_group("xyz", self.submap_str))
         self.assertRaises(ValueError, EntryPoint.parse_group, "x a", "foo=bar")
Index: setuptools/command/easy_install.py
===================================================================
--- setuptools/command/easy_install.py	(revision 59929)
+++ setuptools/command/easy_install.py	(working copy)
@@ -998,7 +998,10 @@
             for f in to_chmod:
                 mode = ((os.stat(f)[stat.ST_MODE]) | 0555) & 07777
                 log.debug("changing mode of %s to %o", f, mode)
-                os.chmod(f, mode)
+                try:
+                    os.chmod(f, mode)
+                except (AttributeError, os.error):
+                    pass
 
 
     def byte_compile(self, to_compile):
