| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
found (GH-101544)
(cherry picked from commit 7a253103d4c64fcca4c0939a584c2028d8da6829)
Co-authored-by: Steve Dower <steve.dower@python.org>
|
| |
|
|
| |
of the normal location (GH-100947)
|
| |
|
|
|
|
|
|
|
|
|
| |
Before python3.11, when in a venv the zip path is calculated
from prefix on POSIX platforms. In python3.11 the behavior is
accidentally changed to calculating from default prefix. This
change will break venv created from a non-installed python
with a stdlib zip file. This commit restores the behavior back
to before python3.11.
(cherry picked from commit e3d4fed07429670af631e5662086b76c1ec098c4)
Co-authored-by: Kai Zhang <kylerzhang11@gmail.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Check to see if `base_executable` exists. If it does not, attempt
to use known alternative names of the python binary to find an
executable in the path specified by `home`.
If no alternative is found, previous behavior is preserved.
Signed-off-by: Vincent Fazio <vfazio@gmail.com>
(cherry picked from commit c41b13d39ccc2d6e239782de99ba8e3cdd061e5a)
Co-authored-by: Vincent Fazio <vfazio@gmail.com>
Signed-off-by: Vincent Fazio <vfazio@gmail.com>
|
| |
|
|
| |
contains PYD files instead (GH-98936)
|
| |
|
|
|
|
|
|
| |
(GH-96038)
- On WASI `ENOTCAPABLE` is now mapped to `PermissionError`.
- The `errno` modules exposes the new error number.
- `getpath.py` now ignores `PermissionError` when it cannot open landmark
files `pybuilddir.txt` and `pyenv.cfg`.
|
| |
|
|
|
|
|
| |
calculation (GH-93641)
(cherry picked from commit 38af903506e9b18c6350c1dadcb489f057713f36)
Co-authored-by: neonene <53406459+neonene@users.noreply.github.com>
|
| |
|
|
|
|
|
| |
(GH-92980)
(cherry picked from commit 403d16fa28764718dcd0536ccb3ab8d05768465d)
Co-authored-by: Steve Dower <steve.dower@python.org>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Add the -P command line option and the PYTHONSAFEPATH environment
variable to not prepend a potentially unsafe path to sys.path.
* Add sys.flags.safe_path flag.
* Add PyConfig.safe_path member.
* Programs/_bootstrap_python.c uses config.safe_path=0.
* Update subprocess._optim_args_from_interpreter_flags() to handle
the -P command line option.
* Modules/getpath.py sets safe_path to 1 if a "._pth" file is
present.
|
| |
|
|
|
|
|
|
|
| |
macOS (GH-31958)
The side effect of this bug was that venv environments directly
used the main interpreter instead of the intermediate stub executable,
which can cause problems when a script uses system APIs that
require the use of an application bundle.
|
| | |
|
| | |
|
| |
|
|
| |
registry (GH-30466)
|
| | |
|
| |
|
| |
This defines VPATH differently in PGO instrumentation builds, to account for a different default output directory. It also adds sys._vpath on Windows to make the value available to sysconfig so that it can be used in tests.
|
| |
|
| |
Also ensures that pybuilddir.txt is written early enough in the build to be picked up by later steps.
|
| |
|
|
| |
directories (GH-29979)
|
| | |
|
|
|
The getpath.py file is frozen at build time and executed as code over a namespace. It is never imported, nor is it meant to be importable or reusable. However, it should be easier to read, modify, and patch than the previous code.
This commit attempts to preserve every previously tested quirk, but these may be changed in the future to better align platforms.
|