summaryrefslogtreecommitdiffstats
path: root/PCbuild
Commit message (Collapse)AuthorAgeFilesLines
* bpo-31691: Specify where to find build instructions for the Windows ↵native-api2017-11-161-0/+2
| | | | installer (#4426)
* bpo-32030: Split Py_Main() into subfunctions (#4399)Victor Stinner2017-11-151-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Don't use "Python runtime" anymore to parse command line options or to get environment variables: pymain_init() is now a strict separation. * Use an error message rather than "crashing" directly with Py_FatalError(). Limit the number of calls to Py_FatalError(). It prepares the code to handle errors more nicely later. * Warnings options (-W, PYTHONWARNINGS) and "XOptions" (-X) are now only added to the sys module once Python core is properly initialized. * _PyMain is now the well identified owner of some important strings like: warnings options, XOptions, and the "program name". The program name string is now properly freed at exit. pymain_free() is now responsible to free the "command" string. * Rename most methods in Modules/main.c to use a "pymain_" prefix to avoid conflits and ease debug. * Replace _Py_CommandLineDetails_INIT with memset(0) * Reorder a lot of code to fix the initialization ordering. For example, initializing standard streams now comes before parsing PYTHONWARNINGS. * Py_Main() now handles errors when adding warnings options and XOptions. * Add _PyMem_GetDefaultRawAllocator() private function. * Cleanup _PyMem_Initialize(): remove useless global constants: move them into _PyMem_Initialize(). * Call _PyRuntime_Initialize() as soon as possible: _PyRuntime_Initialize() now returns an error message on failure. * Add _PyInitError structure and following macros: * _Py_INIT_OK() * _Py_INIT_ERR(msg) * _Py_INIT_USER_ERR(msg): "user" error, don't abort() in that case * _Py_INIT_FAILED(err)
* bpo-28791: Update Windows builds to use SQLite 3.21.0. (GH-4246)Mariatta2017-11-073-3/+3
|
* bpo-31957: Fixes version detection. (#4298)Steve Dower2017-11-061-8/+7
|
* bpo-31609: Fixes quotes in PCbuild/clean.bat (#4280)Steve Dower2017-11-041-1/+1
|
* bpo-31944: Fixes build and Modify button (#4278)Steve Dower2017-11-042-2/+3
|
* bpo-31523: Reliability improvements to the Windows build files (#3900)Steve Dower2017-10-051-1/+1
|
* bpo-31569: correct PCBuild/ case to PCbuild/ in build scripts and docs (GH-3711)Stefan Grönke2017-09-251-5/+5
|
* bpo-31392: Update SSL build for 1.1.0 (#3448)Steve Dower2017-09-095-31/+61
|
* bpo-30860: Consolidate stateful runtime globals. (#3397)Eric Snow2017-09-082-0/+28
| | | | | | | * group the (stateful) runtime globals into various topical structs * consolidate the topical structs under a single top-level _PyRuntimeState struct * add a check-c-globals.py script that helps identify runtime globals Other globals are excluded (see globals.txt and check-c-globals.py).
* Updates PCBuild/readme.txt (#3418)Steve Dower2017-09-081-76/+54
|
* bpo-30389 Adds detection of VS 2017 to distutils._msvccompiler (#1632)Steve Dower2017-09-074-72/+80
|
* bpo-31358: Pull zlib out of the repository (GH-3375)Zachary Ware2017-09-075-28/+41
| | | Also enable building externals by default on Windows, use PCbuild\build.bat's -E option to disable it.
* Fixes Tix build by correcting the directories used by Tcl and Tk. (#3391)Steve Dower2017-09-063-2/+3
|
* bpo-31340: Change to building with MSVC v141 (included with Visual Studio ↵Steve Dower2017-09-064-2/+22
| | | | 2017) (#3311)
* Revert "bpo-30860: Consolidate stateful runtime globals." (#3379)Eric Snow2017-09-062-32/+0
| | | Windows buildbots started failing due to include-related errors.
* bpo-30860: Consolidate stateful runtime globals. (#2594)Eric Snow2017-09-062-0/+32
| | | | | | | | | * group the (stateful) runtime globals into various topical structs * consolidate the topical structs under a single top-level _PyRuntimeState struct * add a check-c-globals.py script that helps identify runtime globals Other globals are excluded (see globals.txt and check-c-globals.py).
* bpo-30947: Update libexpat from 2.2.1 to 2.2.3 (#3106)Victor Stinner2017-08-184-3/+11
| | | | | | | | | | | | | | * 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
* bpo-30814, bpo-30876: Add new import test files to projects. (#2851)Serhiy Storchaka2017-07-271-0/+6
|
* bpo-9566: Fix some Windows x64 compiler warnings (#2492)Segev Finer2017-07-266-7/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bpo-9566: Silence liblzma warnings * bpo-9566: Silence tcl warnings * bpo-9566: Silence tk warnings * bpo-9566: Silence tix warnings * bpo-9566: Fix some library warnings * bpo-9566: Fix msvcrtmodule.c warnings * bpo-9566: Silence _bz2 warnings * bpo-9566: Fixed some _ssl warnings * bpo-9566: Fix _msi warnings * bpo-9566: Silence _ctypes warnings * Revert "bpo-9566: Fixed some _ssl warnings" This reverts commit a639001c949ba53338a9ee047d2ec1efd2505e6f. * bpo-9566: Also consider NULL as a possible error in HANDLE_return_converter * bpo-9566: whitespace fixes
* bpo-30450: Fix logic for retrying nuget.exe download (#2744)Steve Dower2017-07-181-2/+19
| | | | | | | Fix logic for retrying nuget.exe download with Python. Add support for HOST_PYTHON variable. Clear internal environment variables used in find_python.bat Use HOST_PYTHON as the actual Python if it is recent enough. Adds HOST_PYTHON variable to AppVeyor configuration
* bpo-30450: Fall back to git.exe if no Python is found. (#2739)Steve Dower2017-07-171-0/+10
| | | | | | * bpo-30450: Fall back to git.exe if no Python is found. * Also check whether git.exe is on PATH if it will be used.
* bpo-30450: Adds alternate download approach for nuget.exe (#2737)Steve Dower2017-07-172-1/+41
| | | | | | * bpo-30450: Adds alternate download approach for nuget.exe * Whitespace fix.
* [bpo-30916] Pre-build OpenSSL and Tcl/Tk for Windows (#2688)Steve Dower2017-07-1723-1362/+416
| | | Updates ssl and tkinter projects to use pre-built externals
* bpo-30726: Also fix pyexpat.vcxproj (#2375)Segev Finer2017-06-281-1/+1
|
* bpo-30726: Fix elementtree warnings on Windows due to expat upgrade (#2319)Segev Finer2017-06-231-1/+1
| | | | | | | | | * bpo-30726: Fix elementtree warnings on Windows Caused by usage of `getenv` which should be safe. And a few integer truncations which should also be ok. * bpo-30726: Don't ignore libexpat warnings which haypo intends to fix upstream
* bpo-30726: PCbuild _elementtree: remove duplicate defines (#2348)Victor Stinner2017-06-231-2/+2
| | | | | | | | | | | | | | | bpo-30726, bpo-29591: libexpat 2.2.1 of Modules/expat/ now uses a winconfig.h configuration file which already defines: * XML_NS * XML_DTD * BYTEORDER=1234 * XML_CONTEXT_BYTES=1024 * HAVE_MEMMOVE Remove these defines from PCbuild/_elementtree.vcxproj to prevent compiler warnings. Co-Authored-By: Jeremy Kloth <jeremy.kloth@gmail.com>
* bpo-30687: Fixes build scripts to find msbuild.exe and stop relying on ↵Steve Dower2017-06-193-22/+66
| | | | | | vcvarsall.bat (#2252) * Fixes build scripts to find msbuild.exe and stop relying on vcvarsall.bat Also fixes bdist_wininst.vcxproj to use correct version in generated name.
* bpo-30631: Silence MSVC warnings in third-party code (GH-1963)Segev Finer2017-06-164-1/+7
|
* bpo-30450: Pull Windows dependencies from GitHub rather than svn (GH-1783)Zachary Ware2017-06-163-68/+142
| | | | | 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. Also fixes an outdated note about _lzma in PCbuild/readme.txt
* bpo-27425: Be more explicit in .gitattributes (GH-840)Zachary Ware2017-06-1010-1446/+1446
| | | Updates checked-in line endings on several files.
* Improves test_underpth_nosite_file to reveal why it fails. (#1763)Steve Dower2017-05-231-0/+15
| | | | | | | | | | | | | | * Improves test_underpth_nosite_file to reveal why it fails. * Enable building with Windows 10 SDK. * Fix WinSDK detection * Fix initialization on Windows when a ._pth file exists. * Fix tabs * Adds comment about Py_GetPath call.
* bpo-22257: Small changes for PEP 432. (#1728)Eric Snow2017-05-232-4/+4
| | | PEP 432 specifies a number of large changes to interpreter startup code, including exposing a cleaner C-API. The major changes depend on a number of smaller changes. This patch includes all those smaller changes.
* Fixes encodings in vcxproj files and adds script to automatically do it. (#1631)Steve Dower2017-05-172-1/+37
|
* Adds lib.pyproj file to solution (#1633)Steve Dower2017-05-172-2/+1815
| | | | | | | | * Adds lib.pyproj file to solution so that VS with Python support can open all the files in the standard library. * Remove unexpected solution configuration. * Remove lib.pyproj from solution to avoid memory issues on VS 2015.
* PCbuild/build.bat: Add note about using msbuild response file. (#1551)Charles2017-05-121-1/+6
| | | | | | | | | | | | | | | | Using a response file will eliminate the headache associated with batch argument/quote processing. For example I unsucessfully compiled python with visualcpptools when specifying VSInstallDir in the batch file (cannot find vcruntime.h) ```batch build.bat -p x64 -e -M --no-tkinter "/p:VCInstallDir=%VCInstallDir%" ``` but it build successfully when specifying it in a response file msbuild.rsp: ``` /p:VCInstallDir=%VCInstallDir% ```
* PCbuild/build.bat: pass command line parameters when building PGO (#1510)Charles2017-05-091-1/+1
| | | Custom msbuild properties passed as command line need to be passed too when calling `Build` when doing PGO build.
* bpo-29191: Add liblzma.vcxproj to pcbuild.sln and other missing entries (#1222)Segev Finer2017-04-201-0/+34
| | | liblzma is missing from pcbuild.sln. This causes the build of _lzma to fail when building the solution and not using build.bat.
* bpo-29919: Remove unused imports found by pyflakes (#137)Victor Stinner2017-03-271-1/+0
| | | Make also minor PEP8 coding style fixes on modified imports.
* bpo-27593: Revise git SCM build info. (#744)Ned Deily2017-03-211-2/+2
| | | | | | | | | | | | | | | | | | | | | Use --short form of git hash. Use output from "git describe" for tag. Expected outputs: 1. previous hg 2. previous git 3. updated git Release (tagged) build: 1. Python 3.7.0a0 (v3.7.0a0:4def2a2901a5, ... 2. Python 3.7.0a0 (v3.7.0a0^0:05f53735c8912f8df1077e897f052571e13c3496, ... 3. Python 3.7.0a0 (v3.7.0a0:05f53735c8, ... Development build: 1. Python 3.7.0a0 (default:41df79263a11, ... 2. Python 3.7.0a0 (master:05f53735c8912f8df1077e897f052571e13c3496, ... 3. Python 3.7.0a0 (heads/master-dirty:05f53735c8, ... "dirty" means the working tree has uncommitted changes. See "git help describe" for more info.
* bpo-29770: remove outdated PYO related info (GH-590)Xiang Zhang2017-03-112-17/+11
|
* PCbuild: Add -q option to svn export (GH-535)INADA Naoki2017-03-071-1/+1
| | | Without this option, AppVeyor log is too unreadable.
* Fixes git command (#451)Steve Dower2017-03-041-1/+1
|
* bpo-27593: Updates Windows build to use information from git (#262)Steve Dower2017-03-042-16/+16
| | | | * bpo-27593: Updates Windows build to use information from git
* bpo-29572: Update Windows build to OpenSSL 1.0.2k (GH-439)Zachary Ware2017-03-033-3/+3
|
* bpo-29524: Add Objects/call.c file (#12)Victor Stinner2017-02-122-1/+5
| | | | | | | | | * Move all functions to call objects in a new Objects/call.c file. * Rename fast_function() to _PyFunction_FastCallKeywords(). * Copy null_error() from Objects/abstract.c * Inline type_error() in call.c to not have to copy it, it was only called once. * Export _PyEval_EvalCodeWithName() since it is now called from call.c.
* Backed out changeset f23fa1f7b68fVictor Stinner2017-02-101-2/+1
| | | | | Sorry, I didn't want to push this change before the review :-( I was pushing a change into the 2.7 branch.
* Issue #29465: Add Objects/call.c fileVictor Stinner2017-02-101-1/+2
| | | | | | | | | | * Move all functions to call objects in a new Objects/call.c file. * Rename fast_function() to _PyFunction_FastCallKeywords(). * Copy null_error() from Objects/abstract.c * Inline type_error() in call.c to not have to copy it, it was only called once. * Export _PyEval_EvalCodeWithName() since it is now called from call.c.
* Issue #29080: Removes hard dependency on hg.exe from PC/build.batSteve Dower2016-12-281-3/+3
|\
| * Issue #29080: Removes hard dependency on hg.exe from PC/build.batSteve Dower2016-12-281-3/+3
| |\