Re: New version of PyNGL

From: Philip Austin <paustin_at_nyahnyahspammersnyahnyah>
Date: Sun, 12 Dec 2004 08:48:52 -0800

Mary Haley writes:
> Thanks Jeff, I'll incorporate this right away and release a new
> version. Do you know why
> site.sitedirs was removed?

It is odd that there doesn't seem to be any discussion of this
on any of the lists. sitedirs is still used internally in
site.py:

 sitedirs = [os.path.join(prefix,
                          "lib",
                          "python" + sys.version[:3],
                          "site-packages"),
             os.path.join(prefix, "lib", "site-python")]

and it's not the only change in the module:

import site_2_4 # precompiled from /nfs/kite/users/phil/site_2_4.pyc
>>> dir(site_2_4)
['_Helper', '_Printer', '__builtin__', '__builtins__', '__doc__',
'__file__', '__name__', '_init_pathinfo', '_test', 'abs__file__',
'addbuilddir', 'addpackage', 'addsitedir', 'addsitepackages',
'aliasmbcs', 'execsitecustomize', 'main', 'makepath', 'os',
'removeduppaths', 'setBEGINLIBPATH', 'setcopyright', 'setencoding',
'sethelper', 'setquit', 'sys']

>>> import site_2_3
# site_2_3.pyc matches site_2_3.py
import site_2_3 # precompiled from site_2_3.pyc

>>> dir(site_2_3)
['_Helper', '_Printer', '__builtin__', '__builtins__', '__doc__',
'__file__', '__name__', '_dirs_in_sys_path', '_init_pathinfo',
'_test', 'addpackage', 'addsitedir', 'encoding', 'here', 'makepath',
'os', 'prefixes', 'sitedirs', 'sys']
Received on Sun Dec 12 2004 - 09:48:52 MST

This archive was generated by hypermail 2.2.0 : Thu Jan 19 2006 - 21:30:17 MST