Commits

Vinay Sajip  committed 785bb1b

Updated backported sysconfig module to do relative package name computation.

  • Participants
  • Parent commits ef7d5f5

Comments (0)

Files changed (2)

 Change log for ``distlib``
 --------------------------
 
+
 0.1.4
 ~~~~~
 
 Released: Not yet.
 
+- scripts
+
+    - Updated the logic for finding the distlib package using a relative,
+      rather than absolute method. This fixes a problem for pip, where
+      distlib is kept in the pip.vendor.distlib package.
+
+- _backports/sysconfig
+
+    - The same change as for scripts above.
 
 0.1.3
 ~~~~~
 
-Released: 2013-10-18.
+Released: 2013-10-18
 
 - database
 

File distlib/_backport/sysconfig.py

     global _cfg_read
     if not _cfg_read:
         from distlib.resources import finder
-        _finder = finder('distlib._backport')
+        backport_package = __name__.rsplit('.', 1)[0]
+        _finder = finder(backport_package)
         _cfgfile = _finder.find('sysconfig.cfg')
         assert _cfgfile, 'sysconfig.cfg exists'
         with _cfgfile.as_stream() as s: