Lines Matching defs:exec_prefix

63 #   If None, 'prefix' and 'exec_prefix' may be updated in config
81 # dependent directory (exec_prefix), containing the shared library
82 # modules. Note that prefix and exec_prefix can be the same directory,
85 # This script carries out separate searches for prefix and exec_prefix.
87 # file or directory is found. If no prefix or exec_prefix is found, a
112 # performed for prefix and for exec_prefix, but with different landmarks.
138 # is assumed to point to prefix and exec_prefix. $PYTHONHOME can be a
139 # single directory, which is used for both, or the prefix and exec_prefix
142 # Step 5. Try to find prefix and exec_prefix relative to executable_dir,
144 # step to succeed. Note that if prefix and exec_prefix are different,
145 # exec_prefix is more likely to be found; however if exec_prefix is a
154 # Well, almost. Once we have determined prefix and exec_prefix, the
159 # in a build directory, both prefix and exec_prefix are reset to the
163 # known use of sys.prefix and sys.exec_prefix is for the ILU installation
224 exec_prefix = config.get('exec_prefix')
308 # In a framework build the binary in {sys.exec_prefix}/bin is
430 # This is the directory used to find prefix/exec_prefix if necessary.
485 # Detect a build marker and use it to infer prefix, exec_prefix,
523 if not exec_prefix:
524 exec_prefix = build_prefix
525 # Do not warn, because 'exec_prefix' never equals 'build_prefix' on POSIX
526 #elif not venv_prefix and exec_prefix != build_prefix:
527 # warn('Detected development environment but exec_prefix is already set')
532 # CALCULATE prefix AND exec_prefix
537 # and exec_prefix to the empty string.
538 prefix = exec_prefix = ''
541 # Read prefix and exec_prefix from explicitly set home
544 # split into prefix:exec_prefix
545 prefix, had_delim, exec_prefix = home.partition(DELIM)
547 exec_prefix = prefix
598 # Detect exec_prefix by searching from executable for the platstdlib_dir
599 if PLATSTDLIB_LANDMARK and not exec_prefix:
604 exec_prefix = prefix
605 if not exec_prefix and executable_dir:
606 exec_prefix = search_up(executable_dir, PLATSTDLIB_LANDMARK, test=isdir)
607 if not exec_prefix and EXEC_PREFIX:
608 exec_prefix = EXEC_PREFIX
609 if not exec_prefix or not isdir(joinpath(exec_prefix, PLATSTDLIB_LANDMARK)):
612 # that they're in exec_prefix
620 platstdlib_dir = exec_prefix
622 warn('Could not find platform dependent libraries <exec_prefix>')
625 # Fallback: assume exec_prefix == prefix
626 if not exec_prefix:
627 exec_prefix = prefix
630 if not prefix or not exec_prefix:
631 warn('Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]')
634 # For a venv, update the main prefix/exec_prefix but leave the base ones unchanged
638 # base_exec_prefix = exec_prefix
639 # prefix = exec_prefix = venv_prefix
714 if not platstdlib_dir and exec_prefix:
715 platstdlib_dir = joinpath(exec_prefix, PLATSTDLIB_LANDMARK)
740 # POSIX prefix/exec_prefix QUIRKS
743 # QUIRK: Non-Windows replaces prefix/exec_prefix with defaults when running
747 exec_prefix = config.get('exec_prefix') or EXEC_PREFIX or prefix
782 config['exec_prefix'] = exec_prefix
784 config['base_exec_prefix'] = base_exec_prefix or exec_prefix