• Home
  • Raw
  • Download

Lines Matching +full:packages +full:- +full:dir

1 """Append module search paths for third-party packages to sys.path.
8 needed to use site-specific modules would place ``import site''
13 This will append site-specific paths to the module search path. On
16 lib/python<version>/site-packages as well as lib/site-python.
18 prefixes directly, as well as with lib/site-packages appended. The
24 to be added to sys.path. Non-existing directories (or
25 non-directories) are never added to sys.path; no directory is added to
30 /usr/local and there is a directory /usr/local/lib/python2.5/site-packages
47 /usr/local/lib/python2.5/site-packages/bar
48 /usr/local/lib/python2.5/site-packages/foo
56 site-specific customizations. If this import fails with an
66 # Prefixes for site-packages; add additional prefixes like /usr/local here
68 # Enable per user site-packages directory
80 dir = os.path.join(*paths)
82 dir = os.path.abspath(dir)
85 return dir, os.path.normcase(dir)
92 continue # don't mess with a PEP 302-supplied __file__
106 for dir in sys.path:
107 # Filter out duplicate paths (on case-insensitive file systems also
110 dir, dircase = makepath(dir)
112 L.append(dir)
121 for dir in sys.path:
123 if os.path.isdir(dir):
124 dir, dircase = makepath(dir)
132 """Process a .pth file within the site-packages directory:
155 dir, dircase = makepath(sitedir, line)
156 if not dircase in known_paths and os.path.exists(dir):
157 sys.path.append(dir)
206 # GOOGLE(nanzhang): Don't enable user-site directories,
239 """Returns the user-specific site-packages directory path.
263 """Add a per user site-package to sys.path
265 Each user has its own python directory with site-packages in the
268 # get the per user site-package path
277 """Returns a list containing all global site-packages directories
278 (and possibly site-python).
281 will find its `site-packages` subdirectory depending on the system
293 sitepackages.append(os.path.join(prefix, "Lib", "site-packages"))
297 "site-packages"))
298 sitepackages.append(os.path.join(prefix, "lib", "site-python"))
301 sitepackages.append(os.path.join(prefix, "lib", "site-packages"))
305 """Add site-packages (and possibly site-python) to sys.path"""
320 dllpath = os.path.join(sys.prefix, "Lib", "lib-dynload")
322 if libpath[-1]:
325 libpath[-1] = dllpath
337 eof = 'Cmd-Q'
339 eof = 'Ctrl-Z plus Return'
341 eof = 'Ctrl-D (i.e. EOF)'
377 for dir in self.__dirs:
379 filename = os.path.join(dir, filename)
486 # On Non-Unicode builds this will raise an AttributeError...
501 "'import sitecustomize' failed; use -v for traceback"
515 "'import usercustomize' failed; use -v for traceback"
549 %s [--user-base] [--user-site]
555 Exit codes with --user-base or --user-site:
556 0 - user site directory is enabled
557 1 - user site directory is disabled by user
558 2 - uses site directory is disabled by super user
560 >2 - unknown error
565 for dir in sys.path:
566 print " %r," % (dir,)
576 if '--user-base' in args:
578 if '--user-site' in args: