Trent Nelson
611c86b7d1
Fix the x64 Windows build environment used by the buildbots. %VS90COMNTOOLS%\vsvars32.bat is fine for 32-bit builds, but doesn't work for x64 builds, regardless of /MACHINE:AMD64 and /USECL:MS_OPTERON flags passed to cl.exe. Launch the x86_64 cross compilation environment via '%VS90COMNTOOLS%\..\..\VC\vcvarsall.bat x86_amd64'. I don't have access to any systems *without* Visual Studio 2008 Professional installed (i.e. just Express Edition), so I can't test if x64 compilation works w/ VS Express at the moment.
...
Additionally, force a clean in our build.bat files before building, just whilst we're going through these build system updates.
And finally, add in the missing MACHINE=AMD64 option to our Tcl/Tk x64 build.
2008-03-19 21:11:55 +00:00
Raymond Hettinger
0ccfe5f2a0
Remove itertools warnings I had added before the 2-to-3 handled the migration.
2008-03-19 18:01:58 +00:00
Raymond Hettinger
10dca6e282
The filter() function does support a None argument in Py3.0.
2008-03-19 17:58:59 +00:00
Raymond Hettinger
05387861ea
Issue 2354: Fix-up compare warning. Patch contributed by Jeff Balogh.
2008-03-19 17:45:19 +00:00
Brett Cannon
977eb021f3
Use sys.py3kwarning instead of trying to trigger a Py3k-related warning.
2008-03-19 17:37:43 +00:00
Brett Cannon
7919d98d56
test_nis would fail if test.test_support.verbose was true but NIS was not set
...
up on the machine.
Closes issue2411. Thanks Michael Bishop.
2008-03-19 16:50:13 +00:00
Thomas Heller
12b580b2c6
Checkout sqlite-source when it is not there.
2008-03-19 16:10:57 +00:00
Eric Smith
8ff4963594
Trivial typo.
2008-03-19 12:15:10 +00:00
Eric Smith
e504445972
Use test.test_support.captured_stdout instead of a custom contextmanager.
...
Thanks Nick Coghlan.
2008-03-19 12:09:55 +00:00
Trent Nelson
4f4738f015
Lets have another try at getting the Windows buildbots in a consistent state before rebuilding using the new process.
2008-03-19 09:23:08 +00:00
Trent Nelson
4fbaacaa12
Fix the tcl-8.4.18.1 path and make sure we cd into the right directory when building tcl/tk.
2008-03-19 08:06:03 +00:00
Georg Brandl
97e863eaf8
Another one.
2008-03-19 07:57:57 +00:00
Georg Brandl
482d752dcb
Remove footnote from versionchanged as it upsets LaTeX.
2008-03-19 07:56:40 +00:00
Trent Nelson
2b1ec17ceb
Remove extraneous apostrophe and semi-colon from AdditionalIncludeDirectories.
2008-03-19 07:56:39 +00:00
Trent Nelson
05a96641b4
Refine the Visual Studio 2008 build solution in order to improve how we deal with external components, as well as fixing outstanding issues with Windows x64 build support. Introduce two new .vcproj files, _bsddb44.vcproj and sqlite3.vcproj, which replace the previous pre-link event scripts for _bsddb and _sqlite3 respectively. The new project files inherit from our property files as if they were any other Python module. This has numerous benefits. First, the components get built with exactly the same compiler flags and settings as the rest of Python. Second, it makes it much easier to debug problems in the external components when they're part of the build system. Third, they'll benefit from profile guided optimisation in the release builds, just like the rest of Python core.
...
I've also introduced a slightly new pattern for managing externals in subversion. New components get checked in as <name>-<version>.x, where <version> matches the exact vendor version string. After the initial import of the external component, the .x is tagged as .0 (i.e. tcl-8.4.18.x -> tcl-8.4.18.0). Some components may not need any tweaking, whereas there are others that might (tcl/tk fall into this bucket). In that case, the relevant modifications are made to the .x branch, which will be subsequently tagged as .1 (and then n+1 going forward) when they build successfully and all tests pass. Buildbots will be converted to rely on these explicit tags only, which makes it easy for us to switch them over to a new version as and when required. (Simple change to external(-amd64).bat: if we've bumped tcl to 8.4.18.1, change the .bat to rmdir 8.4.18.0 if it exists and check out a new .1 copy.)
2008-03-19 07:45:19 +00:00
Trent Nelson
b27745fb6d
Issue2290: Support x64 Windows builds that live in pcbuild/amd64. Without it, sysutils._python_build() returns the wrong directory, which causes the test_get_config_h_filename method in Lib/distutils/tests/test_sysconfig.py to fail.
2008-03-19 06:28:24 +00:00
Martin v. Löwis
16b2e6bd7f
Import relimport using a relative import.
2008-03-19 06:00:28 +00:00
Martin v. Löwis
ab41b370a3
Merged revisions 61598-61599,61601 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r61598 | david.wolever | 2008-03-18 23:58:33 -0500 (Di, 18 Mär 2008) | 1 line
Added fixer for zip, and refactored a bit of code in the process. Closing #2171 .
........
r61599 | david.wolever | 2008-03-19 00:04:26 -0500 (Mi, 19 Mär 2008) | 3 lines
Removed a bunch of duplicate code -- it's in util now.
........
r61601 | martin.v.loewis | 2008-03-19 00:21:12 -0500 (Mi, 19 Mär 2008) | 2 lines
Fix whitespace.
........
2008-03-19 05:22:42 +00:00
Martin v. Löwis
aad2b61f44
Initialized merge tracking via "svnmerge" with revisions "1-61595" from
...
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
2008-03-19 04:58:04 +00:00
Martin v. Löwis
5e37baea80
Import lib2to3.
2008-03-19 04:43:46 +00:00
Martin v. Löwis
a4d77898db
Issue #2400 : Allow relative imports to "import *".
2008-03-19 04:39:13 +00:00
Raymond Hettinger
de48d8406f
Fix compiler warning.
2008-03-19 03:56:59 +00:00
Gregory P. Smith
bf02e3bb21
Fix the struct module DeprecationWarnings that zipfile was triggering by
...
removing all use of signed struct values.
test_zipfile and test_zipfile64 pass. no more warnings.
2008-03-19 03:14:41 +00:00
Eric Smith
14cae96fa6
Another test for __future__ print_function.
2008-03-19 03:13:34 +00:00
David Wolever
2724ab99c8
Added zip, map, filter to future_bultins ( #2171 )
2008-03-19 02:35:45 +00:00
David Wolever
fbe7c55905
Added my name to ACKS
2008-03-19 02:26:57 +00:00
Eric Smith
5d5c63f462
Fixed compiler module so __future__ print_function is compilable.
2008-03-19 02:11:30 +00:00
Gregory P. Smith
b89a096d6d
Use zlib's crc32 routine instead of binascii when available. zlib's is faster
...
when compiled properly optimized and about the same speed otherwise.
2008-03-19 01:46:10 +00:00
Gregory P. Smith
bde40078b0
Mention that crc32 and adler32 are available in a different module (zlib).
...
Some people look for them in hashlib.
2008-03-19 01:38:35 +00:00
Andrew M. Kuchling
0279f43950
Add Jeff Rush
2008-03-19 01:05:35 +00:00
Eric Smith
7c47894a2a
Backport of the print function, using a __future__ import.
...
This work is substantially Anthony Baxter's, from issue
1633807. I just freshened it, made a few minor tweaks,
and added the test cases. I also created issue 2412,
which is to check for 2to3's behavior with the print
function. I also added myself to ACKS.
2008-03-18 23:45:49 +00:00
Raymond Hettinger
6c0ff8aacd
Issue: 2354: Add 3K warning for the cmp argument to list.sort() and sorted().
2008-03-18 23:33:08 +00:00
Raymond Hettinger
9a47e6201f
Speed-up isinstance() for one easy case.
2008-03-18 23:22:29 +00:00
Gregory P. Smith
c856fa811d
Add a test to make sure zlib.crc32 and binascii.crc32 return the same thing.
...
Fix a buglet in binascii.crc32, the second optional argument could previously
have a signedness mismatch with the C variable its going into.
2008-03-18 22:27:41 +00:00
Steven Bethard
6a644f92ef
Add py3k warnings for code and method inequality comparisons. This should resolve issue 2373. The codeobject.c and methodobject.c changes are both just backports of the Python 3 code.
2008-03-18 22:08:20 +00:00
Steven Bethard
e8e22cf3c0
Have regrtest skip test_py3kwarn when the -3 flag is missing.
2008-03-18 21:30:13 +00:00
David Wolever
8e6ec2ff02
Added a warning when -3 is enabled and None is passed to filter as the first argument.
2008-03-18 21:20:25 +00:00
Brett Cannon
30f3680db7
Ignore BIG5HKSCS-2004.TXT which is downloaded as part of a test.
2008-03-18 21:12:42 +00:00
Gregory P. Smith
37f3f430b8
news entry for the chown fix
2008-03-18 20:40:01 +00:00
Neal Norwitz
0c1ef470f8
Import the test properly. This is especially important for py3k.
2008-03-18 20:30:38 +00:00
Steven Bethard
a7a3e28e4e
Fix test_atexit so that it still passes when -3 is supplied. (It was catching the warning messages on stdio from using the reload() function.)
2008-03-18 19:59:14 +00:00
Gregory P. Smith
f48da8fbcd
Fix chown on 64-bit linux. It needed to take a long (64-bit on 64bit linux) as
...
uid and gid input to accept values >=2**31 as valid while still accepting
negative numbers to pass -1 to chown for "no change".
Fixes issue1747858.
This should be backported to release25-maint.
2008-03-18 19:05:32 +00:00
Steven Bethard
8906575380
_have_soundcard() is a bad check for winsound.Beep, since you can have a soundcard but have the beep driver disabled. This revision basically disables the beep tests by wrapping them in a try/except. The Right Way To Do It is to come up with a _have_enabled_beep_driver() and use that.
2008-03-18 19:04:32 +00:00
Steven Bethard
b865f05a0f
cell_compare needs to return -2 instead of NULL.
2008-03-18 19:03:50 +00:00
Neal Norwitz
5fe5cf6df2
Get regrtest working when re-running tests
2008-03-18 17:58:02 +00:00
Steven Bethard
ae42f33cdf
Add py3k warnings for object, type, cell and dict comparisons. This should resolve issue2342 and partly resolve issue2373.
2008-03-18 17:26:10 +00:00
Brett Cannon
a8b09fd4c3
Add Tools/scripts/patchcheck.py. Invoked from ``make check``, the script does
...
some verification:
- Runs reindent.py on all .py files.
- Checks if any changes in Doc exist.
- Whether Misc/ACKS was changed.
- Whether Misc/NEWS was changed.
The hope is that ``make check`` can become a command anybody can run to get
reminders about what all the requisite steps needed to create a proper
patch/checkin.
2008-03-18 17:25:13 +00:00
Sean Reifscheider
493894c3e0
Issue 1577: shutil.move() where destination is a directory was doing a
...
copy, now it is doing a os.rename() if it's on the same file-system.
2008-03-18 17:24:12 +00:00
Brett Cannon
c81d3dc853
Cast the arguments to PyString_AsStringAndSize() to silence compiler warnings
...
on OS X.
2008-03-18 16:47:51 +00:00
Steven Bethard
ed427e7be9
Use test_support.unlink instead of os.unlink in tearDown(). (Seems to fix an occasional failure in Windows Vista.)
2008-03-18 16:00:19 +00:00