------------------------------------------------------------
revno: 1675
fixes bug: https://launchpad.net/bugs/1621172
committer: Mark Sapiro <[email protected]>
branch nick: 2.1
timestamp: Wed 2016-09-07 17:00:09 -0700
message:
paths.py now adds dist-packages as well as site-packages to sys.path.
modified:
NEWS
misc/paths.py.in
--
lp:mailman/2.1
https://code.launchpad.net/~mailman-coders/mailman/2.1
Your team Mailman Checkins is subscribed to branch lp:mailman/2.1.
To unsubscribe from this branch go to
https://code.launchpad.net/~mailman-coders/mailman/2.1/+edit-subscription
=== modified file 'NEWS'
--- NEWS 2016-09-04 20:58:20 +0000
+++ NEWS 2016-09-08 00:00:09 +0000
@@ -18,6 +18,9 @@
Bug fixes and other patches
+ - paths.py now adds dist-packages as well as site-packages to sys.path.
+ (LP: #1621172)
+
- INIT INFO has been added to the sample init.d script. (LP: #1620121)
2.1.23 (27-Aug-2016)
=== modified file 'misc/paths.py.in'
--- misc/paths.py.in 2009-02-20 22:01:54 +0000
+++ misc/paths.py.in 2016-09-08 00:00:09 +0000
@@ -1,6 +1,6 @@
# -*- python -*-
-# Copyright (C) 1998-2009 by the Free Software Foundation, Inc.
+# Copyright (C) 1998-2016 by the Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -62,6 +62,11 @@
'site-packages')
sys.path.append(sitedir)
+# Include Python's dist-packages directory.
+distdir = os.path.join(sys.prefix, 'lib', 'python'+sys.version[:3],
+ 'dist-packages')
+sys.path.append(distdir)
+
# In a normal interactive Python environment, the japanese.pth and korean.pth
# files would be imported automatically. But because we inhibit the importing
_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe:
https://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org