Commit Graph

770 Commits

Author SHA1 Message Date
Oren Milman c7f165fe65 [2.7] bpo-31471: Fix assertion failure in subprocess.Popen() on Windows, in case env has a bad keys() method. (GH-3580) (#3595) 2017-09-15 10:20:11 +03:00
Zachary Ware 986b7ffc65 [2.7] bpo-30450: Pull Windows dependencies from GitHub rather than SVN (GH-1783) (GH-3306)
The Windows build now depends on Python 3.6 to fetch externals, but it
will be downloaded via NuGet (which is downloaded via PowerShell) if it
is not available via `py -3.6`.  This means the only thing that must be
installed on a modern Windows box to do a full build of CPython with all
extensions is Visual Studio.

Cherry-picked from 51599e2bdd, parts of 40a23e8899, parts of 68d663cf85, d5cd21d75a, and possibly others that I've missed.

Also:

* Rename db -> bsddb for disambiguity

* Update sqlite3 to 3.14.2.0 since it's the version we use on 3.x, and it's simpler to just use it than to also upload the old version to cpython-source-deps

* Add PCbuild/*.ilk to .gitignore
2017-09-04 16:05:33 -07:00
Victor Stinner ec4ab09b7c bpo-30947: Update libexpat from 2.2.1 to 2.2.3 (#3106) (#3145)
* bpo-30947: Update libexpat from 2.2.1 to 2.2.3

* Add NEWS entry

* Add new loadlibrary.c

* expat_external.h: restore include "pyexpatns.h"

* PCbuild: add expat/loadlibrary.c

* Define XML_POOR_ENTROPY to compile expat

Python 2.7 backport: add expat/loadlibrary.c to PC/VS9.0/ project
files (_elementtree and pyexpat).

(cherry picked from commit 93d0cb58b4)
2017-08-19 01:06:45 +02:00
Segev Finer d0ae4be443 bpo-30726: Add _CRT_SECURE_NO_WARNINGS to _elementtree and pyexpat projects (#2572) 2017-07-04 20:40:04 +02:00
Serhiy Storchaka 9dda2caca8 [2.7] bpo-30730: Prevent environment variables injection in subprocess on Windows. (GH-2325) (#2372)
Prevent passing other invalid environment variables and command arguments..
(cherry picked from commit d174d24a5d)
2017-06-24 11:49:00 +03:00
Jeremy Kloth ab3b0ade50 bpo-29591: Update VS project files (#2310)
* Silence warnings caused by duplicated defines from Modules\expat\winconfig.h
* Add WIN32 define to VS9.0 project files to match MSBuild project files.
2017-06-21 21:14:53 +02:00
Jeremy Kloth ebbccea997 bpo-30368: Update build_ssl.py to restore Perl-less building (#1805)
* bpo-30368: Update build_ssl.py to restore Perl-less building

OpenSSL 1.0.2 releases changed how files are copied in the makefile,
thus causing Perl to be required even for Python's "prepared" OpenSSL.
Now build_ssl.py does the requisite copies before running nmake.

* bpo-30368: Update build_ssl.py to use prepared OpenSSL

* Updates SSL-linking projects to use the new include{suffix} directory
* build_ssl.py now only copies those files not handled by prepare_ssl.py

* * bpo-30368: Update build_ssl.py to use prepared OpenSSL

* Update SSL-linking projects to use the new include{suffix} directory

* Move comment to following line
2017-06-20 22:53:39 +02:00
Zachary Ware 5fe8ac69f9 [2.7] bpo-27425: Be more explicit in .gitattributes (GH-840) (GH-2086)
Also updates checked-in line endings in several files.
2017-06-11 14:19:39 -05:00
Zachary Ware f9a6516117 bpo-29572: Update Windows build to OpenSSL 1.0.2k (GH-444) 2017-03-03 16:28:39 -06:00
Benjamin Peterson ea02cdc7ec ring in 2017 for Python 2017-01-01 22:04:13 -06:00
Zachary Ware 14269d91d1 Fix PC/VS9.0/build_ssl.py for recent OpenSSL 2016-11-07 13:29:07 -06:00
Zachary Ware 333b6177a4 Closes #28568: Fix VS9.0 build files to use sqlite 3.8.11.0 2016-11-01 01:44:04 -05:00
Zachary Ware 8fb09ada55 Issue #28248: Update Windows build to use OpenSSL 1.0.2j 2016-10-10 21:57:04 -05:00
Martin Panter ca56dd4767 Issue #28139: Fix messed up indentation
Also update the classmethod and staticmethod doc strings and comments to
match the RST documentation.
2016-09-17 07:54:55 +00:00
Martin Panter 5f75502a2e Issue #24366: Fix indentation
Backports changes by Victor Stinner, Hirokazu Yamamoto, li4ick and Benjamin
Peterson.
2016-09-15 01:50:53 +00:00
Steve Dower b420601f09 Issue #24594: Validates persist parameter when opening MSI database 2016-09-09 11:56:34 -07:00
Martin Panter b362f75f6e Issue #25523: Correct "a" article to "an" article
This changes the main documentation, doc strings, source code comments, and a
couple error messages in the test suite. In some cases the word was removed
to fix the grammar.
2015-11-02 03:37:02 +00:00
Zachary Ware c59a92b6f9 Issue #26930: Update Windows build to OpenSSL 1.0.2h 2016-06-15 17:12:38 -05:00
doko@ubuntu.com a0f2295e0a - Issue #17500, and https://github.com/python/pythondotorg/issues/945: Remove
unused and outdated icons.
2016-06-10 18:22:25 +02:00
Martin Panter 4f23cabc16 Corrections for a/an in code comments and documentation 2016-05-08 13:45:55 +00:00
Serhiy Storchaka 9a118f1dc3 Issue #26778: Fixed "a/an/and" typos in code comment and documentation. 2016-04-17 09:37:36 +03:00
Zachary Ware 8feff8f1dd Issue #26465: Update VS9.0 build files for OpenSSL 1.0.2g 2016-04-14 10:18:27 -05:00
Zachary Ware c46a2ebaff Issue #26268: Update Windows builds to use OpenSSL 1.0.2f 2016-02-22 04:08:30 -06:00
Benjamin Peterson 1f40ece2d7 2016 will be another year of writing copyrighted code 2016-01-01 10:23:45 -06:00
Zachary Ware 5eaf58bfb4 Issue #25022: Remove PC/example_nt/
It was very much outdated, and the topic is better covered elsewhere.
2015-09-10 14:37:42 -05:00
Zachary Ware d155d72c1e Issue #24953: Include ICC version in sys.version string when bulit with ICC on Windows 2015-08-28 23:52:31 -05:00
Zachary Ware 68773f3100 Issue #24603: Update Windows build to use OpenSSL 1.0.2d 2015-07-21 23:16:51 -05:00
Zachary Ware 4734372aa0 Close #24508: Backport the 3.5 MSBuild project files.
The old project files move to PC/VS9.0 and remain supported.

VS2008 is still required to build 2.7; VS2010 (or later, plus Windows SDK 7.1)
is *also* required to use the new project files.
2015-07-16 00:24:48 -05:00
Serhiy Storchaka f0aa88f6e8 Fixed indentation of Python examples in C comments. 2015-06-11 00:06:27 +03:00
Zachary Ware b9298a4fbb Issue #17202: Add .bat to .hgeol to force them to CRLF.
Using LF can a script to fail if it tries to use a label that is
split across 512 byte blocks.  Who knows why.
2015-04-13 11:54:11 -05:00
Benjamin Peterson dd87637d04 update for copyright for 2015 2014-12-31 18:09:36 -06:00
Benjamin Peterson 209dd468fb give a nice message when installer is launched w/o admin rights (closes #16561) 2014-11-27 20:39:02 -06:00
Zachary Ware 80315664bc Issue #20221: Removed conflicting (or circular) hypot definition
when compiled with VS 2010 or above.  Initial patch by Tabrez Mohammed.
2014-02-20 15:36:34 -06:00
doko@ubuntu.com 08578b0d3b - Issue #22381: Update zlib to 1.2.8.
Update zlib file names for the PC installers
2014-09-11 09:08:52 +02:00
Zachary Ware 6d8f29a623 Issue #21958: Define HAVE_ROUND when building with VS 2013 and above.
Patch by Zachary Turner.
2014-07-25 14:34:19 -05:00
Zachary Ware 6690eed48b Issue #21151: Fixed a segfault in the _winreg module.
When ``None`` was passed as a ``REG_BINARY`` value to SetValueEx,
PyMem_DEL was called on an uninitialized buffer.  Patch by John Ehresman.

(Also an incidental typo fix in a comment in test_winreg)
2014-07-03 10:57:44 -05:00
Tim Golden 3c603f3618 Issue21349 Passing a memoryview to _winreg.SetValueEx now correctly raises a TypeError where it previously crashed the interpreter. Patch by Brian Kearns 2014-04-26 15:47:08 +01:00
Kristján Valur Jónsson be580f2e48 Issue #20434 Correct error handlin of _PyString_Resize and _PyBytes_Resize 2014-04-25 09:51:21 +00:00
Jesus Cea 8f606a0d4f Closes #20908: Memory leak in Reg2Py() 2014-03-13 17:33:43 +01:00
Serhiy Storchaka e0ed2d75c8 Issue #19936: Added executable bits or shebang lines to Python scripts which
requires them.  Disable executable bits and shebang lines in test and
benchmark files in order to prevent using a random system python, and in
source files of modules which don't provide command line interface.
2014-01-16 18:59:17 +02:00
Benjamin Peterson 1aeb8cfcfd update copyright year 2013-12-31 22:02:22 -06:00
Ezio Melotti 419e23cbb0 #18466: fix more typos. Patch by Févry Thibault. 2013-08-17 16:56:09 +03:00
Martin v. Loewis 18613e6e7b Issue #17425: Build against openssl 0.9.8y on Windows. 2013-03-22 22:01:56 +01:00
Brian Curtin 33e05e7905 Fix #16759. Convert DWORD registry values using unsigned long.
When converting REG_DWORD registry values into Python, the conversion
needs to be made from an *unsigned* long (k instead of i) to match the
DWORD type.
2012-12-27 14:37:06 -06:00
Brian Curtin 0e091b0365 Fix #14420. Check for PyLong as well as PyInt when converting in Py2Reg.
This fixes a ValueError seen in winreg.SetValueEx when passed long
winreg.REG_DWORD values that should be supported by the underlying API.
2012-12-27 12:28:51 -06:00
Martin v. Löwis fd0afed503 Upgrade openssl to 0.9.8x. 2012-05-15 17:26:31 +02:00
Martin v. Löwis e7f67b5b98 Upgrade to bzip2 1.0.6. 2012-05-14 14:19:09 +02:00
Amaury Forgeot d'Arc 78f85fcd1f Issue14559: Attempt to fix compilation with previous versions of the Microsoft Compiler.
Update the various project files with Python/random.c which was recently added.

On my old Windows XP computer:
- VS8.0 works reasonably.
- I don't have the VS7.1 compiler.
- VC6 does not compile, at least with the SDK shipped with the compiler (12 years ago!); newer SDKs might work.
2012-04-13 01:38:25 +02: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
Antoine Pitrou f60845b70a Issue #14252: Fix subprocess.Popen.terminate() to not raise an error under Windows when the child process has already exited. 2012-03-11 19:29:12 +01:00