Matthias Klose
5ce31cc4fc
merge 3.2
2012-03-14 23:17:31 +01:00
Matthias Klose
d83be23689
merge 3.1
2012-03-14 23:14:35 +01:00
Matthias Klose
0f4c16e29c
- rename configure.in to configure.ac
...
- change references from configure.in to configure.ac
2012-03-14 23:10:15 +01:00
Georg Brandl
2fb477c0f0
Merge 3.2: Issue #13703 plus some related test suite fixes.
2012-02-21 00:33:36 +01:00
Georg Brandl
8848255d8a
Run tests with -R on "make test" and the buildbots.
2012-02-20 21:34:31 +01:00
Georg Brandl
09a7c72cad
Merge from 3.1: Issue #13703 : add a way to randomize the hash values of basic types (str, bytes, datetime)
...
in order to make algorithmic complexity attacks on (e.g.) web apps much more complicated.
The environment variable PYTHONHASHSEED and the new command line flag -R control this
behavior.
2012-02-20 21:31:46 +01:00
Georg Brandl
2daf6ae249
Issue #13703 : add a way to randomize the hash values of basic types (str, bytes, datetime)
...
in order to make algorithmic complexity attacks on (e.g.) web apps much more complicated.
The environment variable PYTHONHASHSEED and the new command line flag -R control this
behavior.
2012-02-20 19:54:16 +01:00
Nick Coghlan
4fcad3c7ab
Change the python3 hardlink to a symlink, and correct some misuse of the PYTHON var in the makefile
2012-02-17 23:17:34 +10:00
Benjamin Peterson
1f918c1480
make Python-ast.c depend on Python-ast.h
2012-01-13 08:45:55 -05:00
Victor Stinner
e0a669e50c
Close #13596 : Only recompile Lib/_sysconfigdata.py when needed
2011-12-15 21:48:39 +01:00
Stefan Krah
221ea5d931
Merge fix for issue #13547 .
2011-12-08 23:31:40 +01:00
Stefan Krah
383dd58533
Issue #13547 : clean Lib/_sysconfigdata.py and Modules/_testembed
2011-12-08 23:25:15 +01:00
Antoine Pitrou
0a3229de6b
Issue #13417 : speed up utf-8 decoding by around 2x for the non-fully-ASCII case.
...
This almost catches up with pre-PEP 393 performance, when decoding needed
only one pass.
2011-11-21 20:39:13 +01:00
Antoine Pitrou
3e623243d5
Issue #13217 : add missing header dependencies in the Makefile for unicodeobject.o.
...
Patch by John O'Connor.
2011-11-13 19:37:58 +01:00
Petri Lehtinen
6ab96e41bd
Remove __pycache__ directories correctly on OpenBSD
...
Closes #13326 .
2011-11-05 21:24:45 +02:00
Petri Lehtinen
bc74ee039c
Remove __pycache__ directories correctly on OpenBSD
...
The find utility of OpenBSD doesn't support the "-exec cmd {} +"
action. Change it to use "-depth -exec cmd {} ;" instead.
Also, remove __pycache__ before *.py[co], as most bytecode files are
in __pycache__ directories. Only those generated by Python 2 under
Doc/tools are not.
Closes #13326 .
2011-11-05 21:17:08 +02:00
Antoine Pitrou
1e73a2467f
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%.
2011-10-18 17:52:24 +02:00
Antoine Pitrou
dd4e2f0153
Issue #13155 : Optimize finding the optimal character width of an unicode string
2011-10-13 00:02:27 +02:00
Victor Stinner
69f55cc033
Issue #13157 : Fix building Python outside its source tree
2011-10-12 22:09:40 +02:00
Antoine Pitrou
c61c8d7a5e
Issue #12911 : Fix memory consumption when calculating the repr() of huge tuples or lists.
...
This introduces a small private API for this common pattern.
The issue has been discovered thanks to Martin's huge-mem buildbot.
2011-10-06 19:04:12 +02:00
Antoine Pitrou
eeb7eea1f9
Issue #12911 : Fix memory consumption when calculating the repr() of huge tuples or lists.
...
This introduces a small private API for this common pattern.
The issue has been discovered thanks to Martin's huge-mem buildbot.
2011-10-06 18:57:27 +02:00
Victor Stinner
dfb866d127
Enhance Py_ARRAY_LENGTH(): fail at build time if the argument is not an array
...
Move other various macros to pymcacro.h
Thanks Rusty Russell for having written these amazing C macros!
2011-09-29 01:12:24 +02:00
Martin v. Löwis
d63a3b8beb
Implement PEP 393.
2011-09-28 07:41:54 +02:00
Martin v. Löwis
91ef21f2b6
merged
2011-09-25 17:36:31 +02:00
Martin v. Löwis
6fb44728bb
Depend setobject.o and dictobject.o on stringlib/eq.h.
2011-09-25 17:36:11 +02:00
Éric Araujo
65d81f4f98
Merge Makefile fix from 3.2 (thanks Georg)
2011-08-16 19:11:00 +02:00
Éric Araujo
b5da6e9e48
Revert change that was not a syntax fix but actually a behavior change
2011-08-16 19:05:56 +02:00
Éric Araujo
14eba5fa41
Brench merge
2011-08-12 17:59:25 +02:00
Benjamin Peterson
b684702259
make only files which use AST depend on Python-ast.h
2011-08-11 14:46:26 -05:00
Éric Araujo
e9715b9001
Merge 3.2
2011-08-10 21:42:23 +02:00
Éric Araujo
1c608e3847
Fix find command in makefile “funny” target
2011-08-10 02:01:32 +02:00
Nadeem Vawda
3c01d16ed9
Issue #11651 : Move options for running tests into a Python script.
...
This will be particularly useful to Windows users.
run_tests.py originally written by Brett Cannon.
2011-08-01 23:48:26 +02:00
Nadeem Vawda
4fbff6c631
Oops, "make buildbottest" isn't supposed to use -j0.
2011-07-31 13:58:05 +02:00
Nadeem Vawda
ecd3e38ff8
Issue #11651 : Improve Makefile test targets.
...
- Use -j0 option by default
- Remove duplicate test run in "make test" and "make testuniversal"
- Remove "make memtest" altogether
2011-07-31 01:09:04 +02:00
Ned Deily
368ff10c4d
Issue #12497 : Install test/data to prevent failures of the various codecmaps
...
tests.
2011-07-04 19:11:14 -07:00
Ned Deily
e2d519035f
Issue #12497 : Install test/data to prevent failures of the various codecmaps
...
tests.
2011-07-04 19:06:20 -07:00
Ned Deily
4bd3e5d799
Issue #12496 : Install test/capath directory to prevent test_connect_capath
...
testcase failure in test_ssl.
2011-07-04 17:51:48 -07:00
Ned Deily
8215f5df87
Issue #12496 : Install test/capath directory to prevent test_connect_capath
...
testcase failure in test_ssl.
2011-07-04 17:48:01 -07:00
Benjamin Peterson
e4a51e6543
use the Include in srcdir
2011-06-28 09:26:39 -05:00
Ned Deily
4a1ec12999
Issue #12141 : Install copies of template C module file so that
...
test_build_ext of test_distutils and test_command_build_ext of
test_packaging are no longer silently skipped when
run outside of a build directory.
2011-06-28 00:53:54 -07:00
Ned Deily
58f27b203c
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:42:50 -07:00
Benjamin Peterson
4b4b673eae
remove duplicate -I
2011-06-19 17:17:30 -05:00
R David Murray
92cafb85dd
#12313 : update Makefile.pre.in to account for email tests moving to 'test' dir
2011-06-17 11:41:49 -04:00
Barry Warsaw
04fe64bf17
Make sure all the Lib/packaging subdirectories get installed.
2011-06-14 16:51:58 -04:00
Éric Araujo
edd95dd3cb
Remove *.egg-info from Makefile.pre.in (follow-up to d615eb7bce33, #12218 )
2011-06-10 03:48:04 +02:00
Victor Stinner
9e586c2b35
Issue #12250 : modify "make buildbottest" command line instead of TESTOPTS
...
Add TESTTIMEOUT variable (default: 3600 seconds). Use TESTTIMEOUT=0 to disable
the timeout.
***
fix
2011-06-06 12:04:36 +02:00
Victor Stinner
301968874b
Close #12250 : Disable the regrtest timeout by default
...
Keep a timeout of 1 hour for buildbots.
2011-06-03 12:53:26 +02:00
Ralf Schmitt
069456267e
disable ASDLGEN if hg won't work, or if python is not installed.
...
This change makes configure check for
- the existence of a hg repository
- the hg executable itself
- the python executable
Running $(srcdir)/Parser/asdl_c.py (i.e. ASDLGEN) will fail if any of
the above prerequisites is missing, so we now disable it instead.
closes #12225
2011-05-31 17:10:03 -05:00
Ralf Schmitt
023f3a7cf6
disable ASDLGEN if hg won't work, or if python is not installed.
...
This change makes configure check for
- the existence of a hg repository
- the hg executable itself
- the python executable
Running $(srcdir)/Parser/asdl_c.py (i.e. ASDLGEN) will fail if any of
the above prerequisites is missing, so we now disable it instead.
closes #12225
2011-05-31 17:10:03 -05:00
Tarek Ziade
90fb9283fc
promoted pysetup3 to a top-level script
2011-05-31 08:31:50 +02:00
Ned Deily
d5a91961dd
Issue #12205 : Fix test_subprocess failure due to uninstalled test data.
2011-05-29 02:39:02 -07:00
Victor Stinner
c520a1856f
(Merge 3.2) Issue #12057 : Add cjkencodings directory to the Makefile and
...
Tools/msi/msi.py
2011-05-25 01:16:49 +02:00
Victor Stinner
5b3265906f
(Merge 3.1) Issue #12057 : Add cjkencodings directory to the Makefile and
...
Tools/msi/msi.py
2011-05-25 01:15:59 +02:00
Victor Stinner
46f8264b8e
Issue #12057 : Add cjkencodings directory to the Makefile and Tools/msi/msi.py
2011-05-25 01:13:59 +02:00
Ned Deily
70b3ee5433
Issue #12131 : Ensure that the sysconfig.cfg file, introduced by packaging,
...
is installed into the lib directory: prevents startup exception in site.py.
2011-05-21 16:06:58 -07:00
Martin v. Löwis
4e9da47d8f
merge 11347.
2011-05-09 07:41:32 +02:00
Martin v. Löwis
48e14d3fda
Use --as-needed when linking libpython3.so. Closes #11347 .
...
Patch by Arfrever Frehtes Taifersar Arahesis.
2011-05-09 07:37:45 +02:00
Antoine Pitrou
eec60603a8
Issue #10914 : Add a minimal embedding test to test_capi.
2011-04-25 21:23:26 +02:00
Antoine Pitrou
8e60577693
Issue #10914 : Add a minimal embedding test to test_capi.
2011-04-25 21:21:07 +02:00
Victor Stinner
7f2fee3640
Issue #10785 : Store the filename as Unicode in the Python parser.
2011-04-05 00:39:01 +02:00
Ronald Oussoren
42d0f68458
Issue #1099 : Fix the build on MacOSX when building a framework with pydebug using GCC 4.0.
2011-03-14 11:04:34 -04:00
Ronald Oussoren
250324952e
Fixes #1099 : Mac compile fails with pydebug and framework enabled
...
Without this patch "./configure --with-pydebug --enable-framework CC=gcc-4.0" fails on MacOSX
2011-03-14 10:11:59 -04:00
Ronald Oussoren
a9d397bb05
Issue #1099 : Fix the build on MacOSX when building a framework with pydebug
...
using GCC 4.0.
2011-03-14 11:34:21 -04:00
Thomas Wouters
63bd5f9fe3
Merge 3.2.
2011-03-06 11:52:15 -08:00
Thomas Wouters
6b1034392c
Merge 3.1.
2011-03-06 11:51:24 -08:00
Thomas Wouters
81638f1351
Issue #11411 : Fix typo in the Makefile that prevented 'make DESTDIR=' from
...
working correctly with a relative path.
2011-03-06 11:49:15 -08:00
Georg Brandl
776e586114
Remove sys.subversion and svn build identification leftovers.
2011-03-06 10:35:42 +01:00
Georg Brandl
fe09a54280
Merge build identification to default branch.
2011-03-06 10:26:32 +01:00
Georg Brandl
13039c87f1
Merge build identification to 3.2 branch.
2011-03-06 10:13:00 +01:00
Georg Brandl
1ca2e7965c
Commit the hg build identification patch from the pymigr repo.
2011-03-05 20:51:24 +01:00
Georg Brandl
6baf117d88
Merged revisions 88426 via svnmerge from
...
svn+ssh://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 10:20:45 +00:00
Georg Brandl
5329123ee0
Add new subdirectory to LIBSUBDIRS.
2011-02-23 07:30:12 +00:00
Georg Brandl
6e8d17c062
#11222 : fix non-framework shared library build on Mac, patch by Ned Deily.
2011-02-19 08:47:14 +00:00
Georg Brandl
9a829bed97
#941346 : Fix broken shared library build on AIX. Patch by Sebastien Sable, review by Antoine Pitrou.
2011-02-15 15:44:51 +00:00
Antoine Pitrou
57ab4411c3
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:48 +00:00
Georg Brandl
59b44721e3
Remove mentions of the Demo directory.
2010-12-30 22:12:40 +00:00
Martin v. Löwis
d1fc34d563
Build and install libpython3.so.
2010-12-30 14:55:47 +00:00
Victor Stinner
e1c0c7c7b2
Don't ignore pgen error (on "make Parser/pgen.stamp")
2010-12-28 23:14:17 +00:00
Georg Brandl
ff52f76019
#10679 : install idle, pydoc, 2to3 scripts with X.Y suffix for make altinstall; create symlinks for make install.
2010-12-28 09:51:43 +00:00
Barry Warsaw
771d33e113
Issue 10687. When --without-pymalloc is given, $VERSION is the same as
...
$LDVERSION, which screws up the sym/hard-links. This avoids those games when
$VERSION == $LDVERSION.
Also, include a drive-by fix for an obvious syntax error.
2010-12-13 18:04:23 +00:00
Gregory P. Smith
51ee270876
issue7213: Open the pipes used by subprocesses with the FD_CLOEXEC flag from
...
the C code, using pipe2() when available. Adds unittests for close_fds and
cloexec behaviors.
2010-12-13 07:59:39 +00:00
Barry Warsaw
ad6f877f98
Create the hardlink between python-3.2m and python-3.2 in altbininstall target
...
instead of bininstall target so it shows up when you do 'make altinstall'.
Closes issue 10677.
2010-12-11 21:32:01 +00:00
Ronald Oussoren
0499d0b03a
Two small changes to adjust framework builds to the new stable ABI
...
Both the Makefile and the script that is used on OSX to create the binary
installer refer to the directory containing the Makefile using the name
'config'. This name was changed with the new ABI (with default build flags
it is now named config-3.2m). This patch ensures that both files use the
correct name.
The build-installer.py script contains one other change: it now tests for the
Tcl/Tk framework version by looking at the 'Current' symlink in the framework
instead of runnning a script. This makes it possible to verify the version
that is in the SDK that's used during the build instead of the version that
is installed on the system.
2010-12-07 14:41:05 +00:00
Martin v. Löwis
4d0d471a80
Merge branches/pep-0384.
2010-12-03 20:14:31 +00:00
Alexander Belopolsky
ff27ee0b40
Issue #10572 : Moved json tests to Lib/test/json_tests.
...
Approved by Raymond Hettinger.
2010-11-30 03:03:30 +00:00
Barry Warsaw
14d98ac31b
Final patch for issue 9807.
2010-11-24 19:43:47 +00:00
Éric Araujo
71f8c65b66
Remove traces of setuptools ( #10341 )
2010-11-06 16:06:37 +00:00
Alexander Belopolsky
ea13d9d86b
Issue #10199 : Moved Demo/turtle under Lib/
2010-11-01 17:39:37 +00:00
Brian Quinlan
2c2bfe5bdf
Fixes issue 10120 (concurrent.futures module is not installed properly), patch by Neil Muller
2010-10-16 10:36:11 +00:00
Barry Warsaw
8cf4eae522
First (uncontroversial) part of issue 9807.
...
* Expose the build flags to Python as sys.abiflags
* Shared library libpythonX.Y<abiflags>.so
* python-config --abiflags
* Make two distutils tests that failed with --enable-shared (even before this
patch) succeed.
* Fix a few small style issues.
2010-10-16 01:04:07 +00:00
Alexander Belopolsky
e8f583244a
Issue #9308 : Removed redundant coding cookies. Added tests for
...
importing encoded modules that do not depend on specific stdlib
modules being encoded in a certain way.
2010-10-15 16:28:20 +00:00
Antoine Pitrou
c8ef6436d8
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:35:17 +00:00
Antoine Pitrou
6d7be5f86c
Add make variable to allow testing of different interpreter flags in buildbot runs
2010-10-14 11:29:16 +00:00
Antoine Pitrou
dbec780a0b
Issue #9437 : Fix building C extensions with non-default LDFLAGS.
2010-10-10 09:37:12 +00:00
Victor Stinner
4e31443c4d
Create fileutils.c/.h
...
* _Py_fopen() and _Py_stat() come from Python/import.c
* (_Py)_wrealpath() comes from Python/sysmodule.c
* _Py_char2wchar(), _Py_wchar2char() and _Py_wfopen() come from Modules/main.c
* (_Py)_wstat(), (_Py)_wgetcwd(), _Py_wreadlink() come from Modules/getpath.c
2010-10-07 21:45:39 +00:00
Georg Brandl
57a5e3f0e2
Merged revisions 84249,84264,84326-84327,84407,84476,84480-84482,84484,84530-84531,84553,84619,84684,84915-84916 via svnmerge from
...
svn+ssh://svn.python.org/python/branches/py3k
........
r84249 | georg.brandl | 2010-08-22 01:20:01 +0200 (So, 22 Aug 2010) | 1 line
Remove usage of rexec in tkinter demo.
........
r84264 | georg.brandl | 2010-08-22 22:23:38 +0200 (So, 22 Aug 2010) | 1 line
#9649 : fix default value description.
........
r84326 | georg.brandl | 2010-08-26 16:30:15 +0200 (Do, 26 Aug 2010) | 1 line
#9689 : add links from overview to in-depth class API descriptions.
........
r84327 | georg.brandl | 2010-08-26 16:30:56 +0200 (Do, 26 Aug 2010) | 1 line
#9681 : typo.
........
r84407 | georg.brandl | 2010-09-01 23:02:50 +0200 (Mi, 01 Sep 2010) | 1 line
#9677 : fix link.
........
r84476 | georg.brandl | 2010-09-04 00:14:52 +0200 (Sa, 04 Sep 2010) | 1 line
Use tabs consistently.
........
r84480 | georg.brandl | 2010-09-04 00:33:27 +0200 (Sa, 04 Sep 2010) | 1 line
More inclusive title.
........
r84481 | georg.brandl | 2010-09-04 00:36:22 +0200 (Sa, 04 Sep 2010) | 1 line
#9767 : doctest run over json docs.
........
r84482 | georg.brandl | 2010-09-04 00:40:02 +0200 (Sa, 04 Sep 2010) | 1 line
#9760 : clarify what context expression is.
........
r84484 | georg.brandl | 2010-09-04 00:49:27 +0200 (Sa, 04 Sep 2010) | 1 line
Fix missing word.
........
r84530 | georg.brandl | 2010-09-05 19:07:12 +0200 (So, 05 Sep 2010) | 1 line
#9747 : fix copy-paste error in getresgid() doc.
........
r84531 | georg.brandl | 2010-09-05 19:09:18 +0200 (So, 05 Sep 2010) | 1 line
#9776 : fix some spacing.
........
r84553 | georg.brandl | 2010-09-06 08:49:07 +0200 (Mo, 06 Sep 2010) | 1 line
#9780 : both { and } are not valid fill characters.
........
r84619 | georg.brandl | 2010-09-08 12:43:45 +0200 (Mi, 08 Sep 2010) | 1 line
Add Lukasz.
........
r84684 | georg.brandl | 2010-09-10 22:43:53 +0200 (Fr, 10 Sep 2010) | 1 line
release() is probably not the most important method
........
r84915 | georg.brandl | 2010-09-20 08:27:02 +0200 (Mo, 20 Sep 2010) | 1 line
Fix typo.
........
r84916 | georg.brandl | 2010-09-20 08:29:01 +0200 (Mo, 20 Sep 2010) | 1 line
Mention % as string formatting.
........
2010-10-06 08:54:16 +00:00
Georg Brandl
490014ba4d
Add "concurrent" subdir to Makefile.
2010-09-19 08:55:36 +00:00
Alexander Belopolsky
3a883214ee
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:21:12 +00:00
Alexander Belopolsky
9bfc0f0984
Issue 9315: Added test/tracedmodules to LIBSUBDIRS
2010-09-14 14:12:19 +00:00
Antoine Pitrou
80f45a0998
Merged revisions 84680 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r84680 | antoine.pitrou | 2010-09-10 21:44:44 +0200 (ven., 10 sept. 2010) | 4 lines
Issue #941346 : Improve the build process under AIX and allow Python to
be built as a shared library. Patch by Sébastien Sablé.
........
2010-09-10 19:55:19 +00:00