Staging
v0.5.1
https://github.com/python/cpython
Revision 8aaff54db30b902702feb99344e60d77ddd6a551 authored by Donald Stufft on 11 November 2014, 15:24:11 UTC, committed by Donald Stufft on 11 November 2014, 15:24:11 UTC
* Backports ensurepip to the 2.7 branch
* Backports some of the improved documentation to the 2.7 branch.
* Adds a private backport of the 3.x mock library as test._mock_backport
  to enable saner testing of ensurepip.

Key Differences from 3.x:

* Ensurepip does not have any Makefile integration, specifically
  it is not ran by default in the Makefile.
* There is no venv module in 2.7, so downstream distributors can
  completely disable ensurepip, ideally with a message redirecting
  to the correct way to install pip.
* To match the ``python`` command in 2.7, ensurepip will install
  the unversioned ``pip`` command as well.
* No-op and hide --default-pip and add --no-default-pip to restore
  the 3.x behavor on 2.7.
1 parent 04eee63
Raw File
Tip revision: 8aaff54db30b902702feb99344e60d77ddd6a551 authored by Donald Stufft on 11 November 2014, 15:24:11 UTC
Implement PEP 477 - Backport ensurepip (PEP 453) to 2.7
Tip revision: 8aaff54
_math.h
double _Py_acosh(double x);
double _Py_asinh(double x);
double _Py_atanh(double x);
double _Py_expm1(double x);
double _Py_log1p(double x);

#ifdef HAVE_ACOSH
#define m_acosh acosh
#else
/* if the system doesn't have acosh, use the substitute
   function defined in Modules/_math.c. */
#define m_acosh _Py_acosh
#endif

#ifdef HAVE_ASINH
#define m_asinh asinh
#else
/* if the system doesn't have asinh, use the substitute
   function defined in Modules/_math.c. */
#define m_asinh _Py_asinh
#endif

#ifdef HAVE_ATANH
#define m_atanh atanh
#else
/* if the system doesn't have atanh, use the substitute
   function defined in Modules/_math.c. */
#define m_atanh _Py_atanh
#endif

#ifdef HAVE_EXPM1
#define m_expm1 expm1
#else
/* if the system doesn't have expm1, use the substitute
   function defined in Modules/_math.c. */
#define m_expm1 _Py_expm1
#endif

/* Use the substitute from _math.c on all platforms:
   it includes workarounds for buggy handling of zeros. */
#define m_log1p _Py_log1p
back to top