• Home
  • Raw
  • Download

Lines Matching +full:build +full:- +full:with +full:- +full:python

2 -----------------
4 1. Install Microsoft Visual Studio 2017 with Python workload and
5 Python native development component.
6 1a. Optionally install Python 3.6 or later. If not installed,
7 get_externals.bat (via build.bat) will download and use Python via
9 2. Run "build.bat" to build Python in 32-bit Release configuration.
10 3. (Optional, but recommended) Run the test suite with "rt.bat -q".
13 Building Python using Microsoft Visual C++
14 ------------------------------------------
16 This directory is used to build CPython for Microsoft Windows on 32- and 64-
18 Microsoft Visual Studio (MSVC) with the *Python workload* and
19 its optional *Python native development* component selected.
22 external dependencies. To build, simply run the "build.bat" script without
26 To build an installer package, refer to the README in the Tools/msi folder.
29 used to build standard x86-compatible 32-bit binaries, output into the
30 win32 sub-directory. The x64 platform is used for building 64-bit AMD64
31 (aka x86_64 or EM64T) binaries, output into the amd64 sub-directory.
32 The Itanium (IA-64) platform is no longer supported.
36 Used to build Python with extra debugging capabilities, equivalent
37 to using ./configure --with-pydebug on UNIX. All binaries built
40 build and rt (run test) batch files in this directory accept a -d
41 option for debug builds. If you are building Python to help with
44 Used to build Python in Release configuration using PGO, which
46 Guided Optimization" section below for more information. Build
48 sub-directory of this directory. The official Python releases may
51 Used to build Python as it is meant to be used in production
55 Building Python using the build.bat script
56 ----------------------------------------------
58 In this directory you can find build.bat, a script designed to make
59 building Python on Windows simpler. This script will use the env.bat
61 which may be used to build Python. Currently Visual Studio 2017 is
64 By default, build.bat will build Python in Release configuration for
65 the 32-bit Win32 platform. It accepts several arguments to change
66 this behavior, try `build.bat -h` to learn more.
70 ---------
82 Sub-Projects
83 ------------
85 The CPython project is split up into several smaller sub-projects which
86 are managed by the pcbuild.sln solution file. Each sub-project is
87 represented by a .vcxproj and a .vcxproj.filters file starting with the
88 name of the sub-project. These sub-projects fall into a few general
91 The following sub-projects represent the bare minimum required to build
93 you'll have a very limited but usable python.exe:
96 python
99 These sub-projects provide extra executables that are useful for running
102 pythonw.exe, a variant of python.exe that doesn't open a Command
105 py.exe, the Python Launcher for Windows, see
106 https://docs.python.org/3/using/windows.html#launcher
111 _testembed.exe, a small program that embeds Python for testing
114 These are miscellaneous sub-projects that don't really fit the other
117 _freeze_module.exe, used to regenerate frozen modules in Python
121 pyshellext.dll, the shell extension deployed with the launcher
128 ditto for testing the Python 3.5 stable ABI, see
131 The following sub-projects are for individual modules of the standard
156 The following Python-controlled sub-projects wrap external projects.
160 about getting the source for building these libraries. The sub-projects
163 Python wrapper for version 1.0.8 of the libbzip2 compression library
167 Python wrapper for version 5.2.2 of the liblzma compression library
171 Python wrapper for version 1.1.1u of the OpenSSL secure sockets
173 https://github.com/python/cpython-bin-deps.
182 https://github.com/python/cpython-source-deps.
184 To use an alternative build of OpenSSL completely, you should replace
185 the files in the externals/openssl-bin-<version> folder with your own.
196 https://github.com/python/cpython-bin-deps.
205 https://github.com/python/cpython-source-deps.
215 ------------------------
217 The last category of sub-projects listed above wrap external projects
218 Python doesn't control, and as such a little more work is required in
222 directory. This script extracts all the external sub-projects from
223 https://github.com/python/cpython-source-deps
225 https://github.com/python/cpython-bin-deps
226 via a Python script called "get_external.py", located in this directory.
227 If Python 3.6 or later is not available via the "py.exe" launcher, the
228 path or command to use for Python can be provided in the PYTHON_FOR_BUILD
231 for use with get_external.py. Everything downloaded by these scripts is
236 as the values of certain properties in order for the build solution to
240 The get_externals.bat script is called automatically by build.bat
241 unless you pass the '-E' option.
245 ---------------------------
254 It creates the PGI files, runs the unit test suite or PyBench with the
255 PGI python, and finally creates the optimized files.
258 https://docs.microsoft.com/en-us/cpp/build/profile-guided-optimizations
263 --------------
266 easy to build a static library instead of a DLL. You simply have to set
269 also have to change the "Runtime Library" from "Multi-threaded DLL
270 (/MD)" to "Multi-threaded (/MT)".
274 ------------------------
278 Manager (View -> Other Windows -> Property Manager) but should be
282 * python (versions, directories and build names)
287 The pyproject property file defines all of the build settings for each
288 project, with some projects overriding certain specific values. The GUI
290 with false information, especially for settings that automatically adapt