• Home
  • Raw
  • Download

Lines Matching full:exec_prefix

18  * dependent directory (exec_prefix), containing the shared library
19 * modules. Note that prefix and exec_prefix can be the same directory,
22 * Py_GetPath() carries out separate searches for prefix and exec_prefix.
24 * file or directory is found. If no prefix or exec_prefix is found, a
26 * EXEC_PREFIX are used (even though they will not work); python carries on
44 * are performed for prefix and for exec_prefix, but with a different
51 * not quite, what we need). For exec_prefix, the landmark is
55 * lib/python$VERSION/os.py and the exec_prefix will always be
64 * it points to prefix and exec_prefix. $PYTHONHOME can be a single
65 * directory, which is used for both, or the prefix and exec_prefix
68 * Step 3. Try to find prefix and exec_prefix relative to argv0_path,
70 * step to succeed. Note that if prefix and exec_prefix are different,
71 * exec_prefix is more likely to be found; however if exec_prefix is a
75 * PREFIX and EXEC_PREFIX. These are supplied by the Makefile but can be
80 * Well, almost. Once we have determined prefix and exec_prefix, the
85 * prefix and exec_prefix globals are tweaked so they reflect the values
91 * known use of sys.prefix and sys.exec_prefix is for the ILU installation
100 #if !defined(PREFIX) || !defined(EXEC_PREFIX) || !defined(VERSION) || !defined(VPATH)
101 #error "PREFIX, EXEC_PREFIX, VERSION, and VPATH must be constant defined"
109 static char exec_prefix[MAXPATHLEN+1]; variable
314 strncpy(exec_prefix, delim+1, MAXPATHLEN); in search_for_exec_prefix()
316 strncpy(exec_prefix, home, MAXPATHLEN); in search_for_exec_prefix()
317 joinpath(exec_prefix, lib_python); in search_for_exec_prefix()
318 joinpath(exec_prefix, "lib-dynload"); in search_for_exec_prefix()
325 strcpy(exec_prefix, argv0_path); in search_for_exec_prefix()
326 joinpath(exec_prefix, "pybuilddir.txt"); in search_for_exec_prefix()
327 if (isfile(exec_prefix)) { in search_for_exec_prefix()
328 FILE *f = fopen(exec_prefix, "r"); in search_for_exec_prefix()
337 strcpy(exec_prefix, argv0_path); in search_for_exec_prefix()
338 joinpath(exec_prefix, rel_builddir_path); in search_for_exec_prefix()
344 copy_absolute(exec_prefix, argv0_path); in search_for_exec_prefix()
346 n = strlen(exec_prefix); in search_for_exec_prefix()
347 joinpath(exec_prefix, lib_python); in search_for_exec_prefix()
348 joinpath(exec_prefix, "lib-dynload"); in search_for_exec_prefix()
349 if (isdir(exec_prefix)) in search_for_exec_prefix()
351 exec_prefix[n] = '\0'; in search_for_exec_prefix()
352 reduce(exec_prefix); in search_for_exec_prefix()
353 } while (exec_prefix[0]); in search_for_exec_prefix()
355 /* Look at configure's EXEC_PREFIX */ in search_for_exec_prefix()
356 strncpy(exec_prefix, EXEC_PREFIX, MAXPATHLEN); in search_for_exec_prefix()
357 joinpath(exec_prefix, lib_python); in search_for_exec_prefix()
358 joinpath(exec_prefix, "lib-dynload"); in search_for_exec_prefix()
359 if (isdir(exec_prefix)) in search_for_exec_prefix()
536 "Could not find platform dependent libraries <exec_prefix>\n"); in calculate_path()
537 strncpy(exec_prefix, EXEC_PREFIX, MAXPATHLEN); in calculate_path()
538 joinpath(exec_prefix, "lib/lib-dynload"); in calculate_path()
540 /* If we found EXEC_PREFIX do *not* reduce it! (Yet.) */ in calculate_path()
544 "Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]\n"); in calculate_path()
575 bufsz += strlen(exec_prefix) + 1; in calculate_path()
633 strcat(buf, exec_prefix); in calculate_path()
640 /* Reduce prefix and exec_prefix to their essence, in calculate_path()
657 reduce(exec_prefix); in calculate_path()
658 reduce(exec_prefix); in calculate_path()
659 reduce(exec_prefix); in calculate_path()
660 if (!exec_prefix[0]) in calculate_path()
661 strcpy(exec_prefix, separator); in calculate_path()
664 strncpy(exec_prefix, EXEC_PREFIX, MAXPATHLEN); in calculate_path()
691 return exec_prefix; in Py_GetExecPrefix()