Commit Graph

381 Commits

Author SHA1 Message Date
Ned Deily 3f1d0b3121 Issue 22878: PEP 477 - "make install" and "make altinstall" integration
The backport of ensurepip to 2.7.9 allows pip to optionally be installed
or upgraded using the bundled pip provided by the new ensurepip module.
The option can be specified persistently using the configure option:

    ./configure --with-ensurepip[=upgrade|install|no]

It can also be overridden on either the "install" or "altinstall" targets:

    make [alt]install ENSUREPIP=[upgrade|install|no]

For Python 2, the default option is "no" (do not install pip).
2014-11-20 02:11:03 -08:00
Donald Stufft 8aaff54db3 Implement PEP 477 - Backport ensurepip (PEP 453) to 2.7
* 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.
2014-11-11 10:24:11 -05:00
Ned Deily 8cb673816b Issue #21166: fix typo in comment 2014-08-23 18:09:25 -07:00
Ned Deily 983df8688d Issue #21166: Prevent possible segfaults and other random failures of
python --generate-posix-vars in pybuilddir.txt build target by ensuring
that pybuilddir.txt is always regenerated when configure is run and
that the newly built skeleton python does not inadvertently import
modules from previously installed instances.
2014-08-22 13:30:59 -07:00
Benjamin Peterson daeb925cc8 backport many ssl features from Python 3 (closes #21308)
A contribution of Alex Gaynor and David Reid with the generous support of
Rackspace. May God have mercy on their souls.
2014-08-20 14:14:50 -05:00
Ned Deily ac1bb81732 Issue #21383: Allow "make touch" to work when building outside of the
source directory.
2014-05-22 15:26:34 -07:00
Ned Deily 1964d5bdf7 Issue #19990: Install test/imghdrdata. 2014-02-02 13:59:26 -08:00
Charles-François Natali 7a2fe9c83c Issue #19965: Make sure that Python-ast.h is properly taken into account in the
makefile.
2013-12-15 19:07:44 +01:00
Ned Deily 00365f1e8e Issue #15392: Install idlelib/idle_test. 2013-11-03 20:08:17 -08:00
Ned Deily a2a9f571a5 Issue #1584: Provide options to override default search paths for Tcl and Tk
when building _tkinter.  configure has two new options; if used, both must
be specified:

  ./configure \
      --with-tcltk-includes="-I/opt/local/include" \
      --with-tcltk-libs="-L/opt/local/lib -ltcl8.5 -ltk8.5"

In addition, the options can be overridden with make:

   make \
       TCLTK_INCLUDES="-I/opt/local/include" \
       TCLTK_LIBS="-L/opt/local/lib -ltcl8.6 -ltk8.6"
2013-10-25 00:30:10 -07:00
Serhiy Storchaka 25f6893720 Issue #18919: Add test/audiodata to LIBSUBDIRS. 2013-10-14 21:18:29 +03:00
Martin v. Löwis 6d7f7e8819 Drop buildbottouch again; the master is using "make touch" now. 2013-10-02 17:03:05 +02:00
Martin v. Löwis 5ddb0a30fd Add fake buildbottouch target. 2013-09-30 16:18:31 +02:00
Eric V. Smith e38905b4fa Closes #18312: 'make distclean' no longer deletes files in dot-directories. 2013-07-02 09:02:03 -04:00
doko@ubuntu.com 6cb4343d0d - Issue #13150, #17512: sysconfig no longer parses the Makefile and config.h
files when imported, instead doing it at build time.  This makes importing
  sysconfig faster and reduces Python startup time by 20%.
2013-04-08 21:20:09 +02:00
Benjamin Peterson 469ee9d84c backout 66e30c4870bb for breaking OSX (#13150) 2013-03-22 09:37:13 -05:00
doko@ubuntu.com 28b7c05131 - Issue #13150: sysconfig no longer parses the Makefile and config.h files
when imported, instead doing it at build time.  This makes importing
  sysconfig faster and reduces Python startup time by 20%.
2013-03-21 15:02:16 -07:00
Ezio Melotti 617e2c186d #16004: Add `make touch`. 2013-03-11 09:14:09 +02:00
Serhiy Storchaka da5c2a0646 Issue #4591: Uid and gid values larger than 2**31 are supported now. 2013-02-12 09:27:53 +02:00
Serhiy Storchaka 083c0aac32 Clean trailing whitespaces in Makefile.pre.in and grpmodule.c. 2013-02-12 09:20:19 +02:00
Ned Deily ed1e4382c4 Issue #17161: make install now also installs a python2 and python man page. 2013-02-08 22:51:52 -08:00
doko@python.org d65e2bab3b - Issue #17086: Backport the patches from the 3.3 branch to cross-build
the package.
2013-01-31 23:52:03 +01:00
doko@python.org 4e63fbe04d - Issue #17029: Let h2py search the multiarch system include directory. 2013-01-25 13:08:27 +01:00
Christian Heimes 4fc0082602 - Issue #16593: Have BSD 'make -s' do the right thing, thanks to Daniel Shahaf 2012-12-02 08:14:50 +01:00
Trent Nelson abf205149c Issue #15819: use standard autoconf preset output variables.
Reported by: Roumen Petrov
2012-10-17 04:32:49 -04:00
Trent Nelson d86ceecf21 Issue #15819: additional fixes for out-of-tree builds from read-only src.
Unlike 3.2, 3.3 and 3.x, which add "-IObjects -IPython -IInclude" to
BASECPPFLAGS when building out-of-tree, 2.7 only needs to add -IInclude
(for Python-ast.h and graminit.h).
2012-10-16 09:42:45 -04:00
Ned Deily 10fc104fed Issue #15822: Fix installation of lib2to3 grammar pickles to ensure
they are created in the install locations and with the proper timestamp.
(Solution suggested by MvL)
2012-09-08 18:47:27 -07:00
Christian Heimes f84dcffcb9 Fix for fcc629208842
BSD's make doesn't support some of the features.
2012-09-07 02:24:58 +02:00
Christian Heimes f2acf63487 Issue #15591 and Issue #11715: silence output of setup.py when make is run with -s option. 2012-09-07 00:58:26 +02:00
Trent Nelson f6407a184d Issue #15819: Fix out-of-tree builds from a readonly source. 2012-08-30 14:56:13 +00:00
Matthias Klose 25cf30faf9 - fix typo introduced in http://hg.python.org/cpython/rev/f918d4a06c64 2012-08-28 19:23:56 +02:00
Matthias Klose 555b9e07ed - fix paste error (whitespace) from previous commit 2012-08-28 19:07:08 +02:00
Matthias Klose 63c6f511c3 - Issue #15591: Fix parsing MAKEFLAGS in the sharedmods target. 2012-08-28 18:52:28 +02:00
Ned Deily 8622f09d98 Issue #15645: Ensure 2to3 grammar pickles are properly installed.
(Patch by Ronald Oussoren)
2012-08-22 23:26:06 -07:00
Matthias Klose 3cef2a931c - rename configure.in to configure.ac
- change references from configure.in to configure.ac
2012-03-14 23:39:33 +01:00
Benjamin Peterson aee9dfba4a merge 2.6 with hash randomization fix 2012-02-20 21:44:56 -05:00
Barry Warsaw 1e13eb084f - Issue #13703: oCERT-2011-003: add -R command-line option and PYTHONHASHSEED
environment variable, to provide an opt-in way to protect against denial of
  service attacks due to hash collisions within the dict and set types.  Patch
  by David Malcolm, based on work by Victor Stinner.
2012-02-20 20:42:21 -05:00
Nick Coghlan e6010061fc Implement PEP 394 for Python 2.7 2012-02-17 22:10:38 +10:00
Éric Araujo fe5c297ee2 Fix find command in makefile “funny” target 2011-08-19 08:40:10 +02:00
Ned Deily 63144c6444 Issue #12141: Install a copy of template C module file so that
test_build_ext of test_distutils is no longer silently skipped when
run outside of a build directory.
2011-06-28 00:39:19 -07:00
Ned Deily c4f97f4fdc Issue #12205: Fix test_subprocess failure due to uninstalled test data. 2011-05-29 02:36:17 -07:00
Victor Stinner e2d9e26a10 Issue #12057: Add cjkencodings directory to the Makefile and Tools/msi/msi.py 2011-05-25 01:19:57 +02:00
Ronald Oussoren 19199830f7 Issue #1099: Fix the build on MacOSX when building a framework with pydebug using GCC 4.0. 2011-03-14 11:57:39 -04:00
Thomas Wouters 5edae7ea5e Issue #11411: Fix typo in the Makefile that prevented 'make DESTDIR=' from
working correctly with a relative path.
2011-03-06 11:48:05 -08:00
Georg Brandl 3a5508e2c0 Port build identification from default branch. 2011-03-06 10:42:21 +01:00
Georg Brandl 71f4fbb0b7 Merged revisions 88426 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r88426 | georg.brandl | 2011-02-15 16:44:51 +0100 (Di, 15 Feb 2011) | 1 line

  #941346: Fix broken shared library build on AIX. Patch by Sebastien Sable, review by Antoine Pitrou.
........
2011-02-25 11:04:50 +00:00
Antoine Pitrou 9828b56347 Merged revisions 84068,87558 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r84068 | martin.v.loewis | 2010-08-15 17:47:25 +0200 (dim., 15 août 2010) | 2 lines

  Don't run pgen twice when using make -j.
........
  r87558 | victor.stinner | 2010-12-29 00:14:17 +0100 (mer., 29 déc. 2010) | 1 line

  Don't ignore pgen error (on "make Parser/pgen.stamp")
........
2011-01-03 19:11:32 +00:00
Antoine Pitrou 3125f5039d Merged revisions 85472 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r85472 | antoine.pitrou | 2010-10-14 13:29:16 +0200 (jeu., 14 oct. 2010) | 3 lines

  Add make variable to allow testing of different interpreter flags in buildbot runs
........
2010-10-14 11:37:30 +00:00
Antoine Pitrou 58dab67f2d Merged revisions 85353 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r85353 | antoine.pitrou | 2010-10-10 11:37:12 +0200 (dim., 10 oct. 2010) | 3 lines

  Issue #9437: Fix building C extensions with non-default LDFLAGS.
........
2010-10-10 09:54:59 +00:00
Alexander Belopolsky 7a84877de1 Merged revisions 84803 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r84803 | alexander.belopolsky | 2010-09-14 10:12:19 -0400 (Tue, 14 Sep 2010) | 1 line

  Issue 9315: Added test/tracedmodules to LIBSUBDIRS
........
2010-09-14 14:24:58 +00:00