Home | History | Annotate | Download | only in Modules

Lines Matching refs:EXEC_PREFIX

17  * dependent directory (exec_prefix), containing the shared library
18 * modules. Note that prefix and exec_prefix can be the same directory,
21 * Py_GetPath() carries out separate searches for prefix and exec_prefix.
23 * file or directory is found. If no prefix or exec_prefix is found, a
25 * EXEC_PREFIX are used (even though they will not work); python carries on
43 * are performed for prefix and for exec_prefix, but with a different
50 * not quite, what we need). For exec_prefix, the landmark is
54 * lib/python$VERSION/os.py and the exec_prefix will always be
63 * it points to prefix and exec_prefix. $PYTHONHOME can be a single
64 * directory, which is used for both, or the prefix and exec_prefix
67 * Step 3. Try to find prefix and exec_prefix relative to argv0_path,
69 * step to succeed. Note that if prefix and exec_prefix are different,
70 * exec_prefix is more likely to be found; however if exec_prefix is a
74 * PREFIX and EXEC_PREFIX. These are supplied by the Makefile but can be
79 * Well, almost. Once we have determined prefix and exec_prefix, the
84 * prefix and exec_prefix globals are tweaked so they reflect the values
90 * known use of sys.prefix and sys.exec_prefix is for the ILU installation
99 #if !defined(PREFIX) || !defined(EXEC_PREFIX) || !defined(VERSION) || !defined(VPATH)
100 #error "PREFIX, EXEC_PREFIX, VERSION, and VPATH must be constant defined"
116 static char exec_prefix[MAXPATHLEN+1];
320 strncpy(exec_prefix, delim+1, MAXPATHLEN);
322 strncpy(exec_prefix, home, MAXPATHLEN);
323 joinpath(exec_prefix, lib_python);
324 joinpath(exec_prefix, "lib-dynload");
328 // GOOGLE(nanzhang): Always set exec_prefix with hermetic executable full path.
329 strcpy(exec_prefix, argv0_path);
335 joinpath(exec_prefix, "pybuilddir.txt");
336 if (isfile(exec_prefix)) {
337 FILE *f = fopen(exec_prefix, "r");
346 strcpy(exec_prefix, argv0_path);
347 joinpath(exec_prefix, rel_builddir_path);
353 copy_absolute(exec_prefix, argv0_path);
355 n = strlen(exec_prefix);
356 joinpath(exec_prefix, lib_python);
357 joinpath(exec_prefix, "lib-dynload");
358 if (isdir(exec_prefix))
360 exec_prefix[n] = '\0';
361 reduce(exec_prefix);
362 } while (exec_prefix[0]);
364 /* Look at configure's EXEC_PREFIX */
365 strncpy(exec_prefix, EXEC_PREFIX, MAXPATHLEN);
366 joinpath(exec_prefix, lib_python);
367 joinpath(exec_prefix, "lib-dynload");
368 if (isdir(exec_prefix))
398 // We don't reduce the path of prefix, and exec_prefix.
588 "Could not find platform dependent libraries <exec_prefix>\n");
589 strncpy(exec_prefix, EXEC_PREFIX, MAXPATHLEN);
590 joinpath(exec_prefix, "lib/lib-dynload");
592 /* If we found EXEC_PREFIX do *not* reduce it! (Yet.) */
596 "Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]\n");
624 bufsz += strlen(exec_prefix) + 1;
678 strcat(buf, exec_prefix);
684 /* Reduce prefix and exec_prefix to their essence,
701 reduce(exec_prefix);
702 reduce(exec_prefix);
703 reduce(exec_prefix);
704 if (!exec_prefix[0])
705 strcpy(exec_prefix, separator);
708 strncpy(exec_prefix, EXEC_PREFIX, MAXPATHLEN);
735 return exec_prefix;