[Jython-checkins] jython: #1892 site-packages is not in sys.path

frank.wierzbicki jython-checkins at python.org
Tue May 22 17:52:30 CEST 2012


http://hg.python.org/jython/rev/5896873707bc
changeset:   6662:5896873707bc
user:        Frank Wierzbicki <fwierzbicki at gmail.com>
date:        Tue May 22 08:52:20 2012 -0700
summary:
  #1892 site-packages is not in sys.path

Thanks for the bug report Stephane!

files:
  Lib/site.py           |  2 +-
  Lib/test/test_site.py |  2 +-
  NEWS                  |  3 +++
  3 files changed, 5 insertions(+), 2 deletions(-)


diff --git a/Lib/site.py b/Lib/site.py
--- a/Lib/site.py
+++ b/Lib/site.py
@@ -65,7 +65,7 @@
 
 import platform as _platform
 
-_is_jython = _platform.python_implementation == "Jython"
+_is_jython = _platform.python_implementation() == "Jython"
 if _is_jython:
     _ModuleType = type(os)
 
diff --git a/Lib/test/test_site.py b/Lib/test/test_site.py
--- a/Lib/test/test_site.py
+++ b/Lib/test/test_site.py
@@ -227,7 +227,7 @@
         site.PREFIXES = ['xoxo']
         dirs = site.getsitepackages()
 
-        if sys.platform in ('os2emx', 'riscos'):
+        if sys.platform in ('os2emx', 'riscos') or is_jython:
             self.assertEqual(len(dirs), 1)
             wanted = os.path.join('xoxo', 'Lib', 'site-packages')
             self.assertEqual(dirs[0], wanted)
diff --git a/NEWS b/NEWS
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,8 @@
 Jython NEWS
 
+Jython 2.7a2
+    - [ 1892 ] site-packages is not in sys.path
+
 Jython 2.7a1
   Bugs Fixed
     - [ 1880 ] Sha 224 library not present in Jython

-- 
Repository URL: http://hg.python.org/jython


More information about the Jython-checkins mailing list