Commits

Anonymous committed 52fee24

Made activate() have no effect for .dist-info's

  • Participants
  • Parent commits d255a1d

Comments (0)

Files changed (5)

File pkg_resources.py

                     if os.path.isdir(fullpath):
                         metadata = DistInfoMetadata(fullpath)
                         yield Distribution.from_location(fullpath, entry, metadata)
-                    
-                    
+
 register_finder(ImpWrapper,find_on_path)
 
 _namespace_handlers = {}
         """Insert self.location in path before its nearest parent directory"""
 
         if self.location and self.location.endswith('.dist-info'):
-            loc = loc or self.location[:-10] # trim off .dist-info
+            return # do nothing
         else:
             loc = loc or self.location
         if not loc:

File tests/fake_dists/grammar-1.0a4/grammar/__init__.py

-# -*- coding: utf-8 -*-
-

File tests/fake_dists/grammar-1.0a4/grammar/utils.py

-# -*- coding: utf-8 -*-
-from random import randint
-
-def is_valid_grammar(sentence):
-    return 42

File tests/fake_dists/grammar/__init__.py

+# -*- coding: utf-8 -*-
+

File tests/fake_dists/grammar/utils.py

+# -*- coding: utf-8 -*-
+from random import randint
+
+def is_valid_grammar(sentence):
+    return 42