mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
whatsnew: linkify some pip things, and explain why non-inheriting is good.
This commit is contained in:
parent
f446d7a70b
commit
bcf7012d19
3 changed files with 20 additions and 9 deletions
|
@ -76,6 +76,8 @@ Creating virtual environments
|
||||||
without there needing to be any reference to its venv in ``PATH``.
|
without there needing to be any reference to its venv in ``PATH``.
|
||||||
|
|
||||||
|
|
||||||
|
.. _venv-api:
|
||||||
|
|
||||||
API
|
API
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -60,6 +60,8 @@ To install the newest Python versions on OpenSolaris, install `blastwave
|
||||||
prompt.
|
prompt.
|
||||||
|
|
||||||
|
|
||||||
|
.. _building-python-on-unix:
|
||||||
|
|
||||||
Building Python
|
Building Python
|
||||||
===============
|
===============
|
||||||
|
|
||||||
|
|
|
@ -193,15 +193,16 @@ By default, the scripts ``pipX`` and ``pipX.Y`` will be installed (where
|
||||||
X.Y stands for the version of the Python installation), along with the
|
X.Y stands for the version of the Python installation), along with the
|
||||||
``pip`` Python package and its dependencies.
|
``pip`` Python package and its dependencies.
|
||||||
|
|
||||||
The :mod:`venv` module and the :command:`pyvenv` utility make use of this
|
The :ref:`pyvenv <scripts-pyvenv>` command line utility and the :mod:`venv`
|
||||||
module to make ``pip`` readily available in virtual environments. When
|
module make use of the :mod:`ensurepip` module to make ``pip`` readily
|
||||||
using the command line interface, ``pip`` is installed by default, while
|
available in virtual environments. When using the command line utility, ``pip``
|
||||||
for the module API installation of ``pip`` must be requested explicitly.
|
is installed by default, while when using the :mod:`venv` module
|
||||||
|
:ref:`venv-api` installation of ``pip`` must be requested explicitly.
|
||||||
|
|
||||||
For CPython source builds on POSIX systems, the ``make install`` and
|
For CPython :ref:`source builds on POSIX systems <building-python-on-unix>`,
|
||||||
``make altinstall`` commands bootstrap ``pip`` by default. This behaviour
|
the ``make install`` and ``make altinstall`` commands bootstrap ``pip`` by
|
||||||
can be controlled through configure options, and overridden through
|
default. This behaviour can be controlled through configure options, and
|
||||||
Makefile options.
|
overridden through Makefile options.
|
||||||
|
|
||||||
On Windows and Mac OS X, the CPython installers now offer the option to
|
On Windows and Mac OS X, the CPython installers now offer the option to
|
||||||
install ``pip`` along with CPython itself.
|
install ``pip`` along with CPython itself.
|
||||||
|
@ -251,7 +252,13 @@ PEP 446: Newly Created File Descriptors Are Non-Inheritable
|
||||||
-----------------------------------------------------------
|
-----------------------------------------------------------
|
||||||
|
|
||||||
:pep:`446` makes newly created file descriptors :ref:`non-inheritable
|
:pep:`446` makes newly created file descriptors :ref:`non-inheritable
|
||||||
<fd_inheritance>`. New functions and methods:
|
<fd_inheritance>`. In general, this is the behavior an application will
|
||||||
|
want: when launching a new process, having currently open files also
|
||||||
|
open in the new process can lead to all sorts of hard to find bugs,
|
||||||
|
and potentially to security issues.
|
||||||
|
|
||||||
|
However, there are occasions when inheritance is desired. To support
|
||||||
|
these cases, the following new functions and methods are available:
|
||||||
|
|
||||||
* :func:`os.get_inheritable`, :func:`os.set_inheritable`
|
* :func:`os.get_inheritable`, :func:`os.set_inheritable`
|
||||||
* :func:`os.get_handle_inheritable`, :func:`os.set_handle_inheritable`
|
* :func:`os.get_handle_inheritable`, :func:`os.set_handle_inheritable`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue