cpython/PC
Miss Islington (bot) 76b072717a
bpo-46638: Makes registry virtualisation setting stable when building MSIX packages (GH-31130)
(cherry picked from commit 3a5afc14e1)
2022-02-07 17:37:01 +00:00
..
bdist_wininst bpo-41089: Filters and other issues in Visual Studio projects (GH-21070) 2020-06-23 20:31:12 +01:00
clinic
icons Optimize images by IMGbot (GH-21348) 2022-02-03 23:15:17 -08:00
layout bpo-46638: Makes registry virtualisation setting stable when building MSIX packages (GH-31130) 2022-02-07 17:37:01 +00:00
WinMain.c
_msi.c bpo-43499: Silence compiler warnings about using legacy C API on Windows (GH-24873) 2021-03-16 08:03:37 +02:00
_testconsole.c bpo-41729: Fix test_winconsole failures (3) and hang (GH-22146) 2020-09-12 02:18:59 -04:00
classicAppCompat.can.xml bpo-46629: Update classicAppCompat.sccd for new signing certificate (GH-31111) 2022-02-04 08:38:09 -08:00
classicAppCompat.cat
classicAppCompat.sccd bpo-46629: Update classicAppCompat.sccd for new signing certificate (GH-31111) 2022-02-04 08:38:09 -08:00
config.c
crtlicense.txt
dl_nt.c bpo-41054: Simplify resource compilation on Windows (GH-21004) 2020-06-23 12:27:30 -07:00
empty.c
errmap.h
errmap.mak
frozen_dllmain.c
getpathp.c bpo-45720: Drop references to shlwapi.dll on Windows (GH-29417) 2021-11-06 01:38:50 +00:00
invalid_parameter_handler.c
launcher.c [3.9] bpo-44391: Remove unused argument from a varargs call. (GH-29843) (GH-29850) 2021-11-29 17:53:37 +00:00
msvcrtmodule.c
pyconfig.h [3.9] bpo-42120: Remove macro defining copysign to _copysign on Windows (GH-23326) (GH-23331) 2020-11-16 23:50:43 -08:00
pylauncher.rc bpo-45220: Ensure RT_MANIFEST is defined when compiling Windows resource files (GH-29501) 2021-11-15 17:40:08 +00:00
pyshellext.cpp
pyshellext.def
pyshellext.idl
pyshellext.rc bpo-45220: Ensure RT_MANIFEST is defined when compiling Windows resource files (GH-29501) 2021-11-15 17:40:08 +00:00
pyshellext_d.def
python.manifest
python3.def bpo-43155: Add PyCMethod_New to PC/python3.def (GH-24500) (GH-24554) 2021-02-17 11:53:45 +01:00
python3dll.c
python_exe.rc bpo-45220: Ensure RT_MANIFEST is defined when compiling Windows resource files (GH-29501) 2021-11-15 17:40:08 +00:00
python_nt.rc bpo-45220: Ensure RT_MANIFEST is defined when compiling Windows resource files (GH-29501) 2021-11-15 17:40:08 +00:00
python_uwp.cpp
python_ver_rc.h Update copyright year to 2022. (GH-30335) 2022-01-02 12:34:36 -08:00
pythonw_exe.rc bpo-45220: Ensure RT_MANIFEST is defined when compiling Windows resource files (GH-29501) 2021-11-15 17:40:08 +00:00
readme.txt
sqlite3.rc bpo-45220: Ensure RT_MANIFEST is defined when compiling Windows resource files (GH-29501) 2021-11-15 17:40:08 +00:00
store_info.txt
testpy.py
validate_ucrtbase.py
winreg.c bpo-43637: Fix a possible memory leak in winreg.SetValueEx() (GH-25038) 2021-03-30 00:51:55 -07:00
winsound.c

readme.txt

Welcome to the "PC" subdirectory of the Python distribution
***********************************************************

This "PC" subdirectory contains complete project files to make
several older PC ports of Python, as well as all the PC-specific
Python source files.  It should be located in the root of the
Python distribution, and there should be directories "Modules",
"Objects", "Python", etc. in the parent directory of this "PC"
subdirectory.  Be sure to read the documentation in the Python
distribution.

Python requires library files such as string.py to be available in
one or more library directories.  The search path of libraries is
set up when Python starts.  To see the current Python library search
path, start Python and enter "import sys" and "print sys.path".

All PC ports use this scheme to try to set up a module search path:

  1) The script location; the current directory without script.
  2) The PYTHONPATH variable, if set.
  3) For Win32 platforms (NT/95), paths specified in the Registry.
  4) Default directories lib, lib/win, lib/test, lib/tkinter;
     these are searched relative to the environment variable
     PYTHONHOME, if set, or relative to the executable and its
     ancestors, if a landmark file (Lib/string.py) is found ,
     or the current directory (not useful).
  5) The directory containing the executable.

The best installation strategy is to put the Python executable (and
DLL, for Win32 platforms) in some convenient directory such as
C:/python, and copy all library files and subdirectories (using XCOPY)
to C:/python/lib.  Then you don't need to set PYTHONPATH.  Otherwise,
set the environment variable PYTHONPATH to your Python search path.
For example,
   set PYTHONPATH=.;d:\python\lib;d:\python\lib\win;d:\python\lib\dos-8x3

There are several add-in modules to build Python programs which use
the native Windows operating environment.  The ports here just make
"QuickWin" and DOS Python versions which support a character-mode
(console) environment.  Look in www.python.org for Tkinter, PythonWin,
WPY and wxPython.

To make a Python port, start the Integrated Development Environment
(IDE) of your compiler, and read in the native "project file"
(or makefile) provided.  This will enable you to change any source
files or build settings so you can make custom builds.

pyconfig.h    An important configuration file specific to PC's.

config.c    The list of C modules to include in the Python PC
            version.  Manually edit this file to add or
            remove Python modules.

testpy.py   A Python test program.  Run this to test your
            Python port.  It should produce copious output,
	    ending in a report on how many tests were OK, how many
	    failed, and how many were skipped.  Don't worry about
	    skipped tests (these test unavailable optional features).


Additional files and subdirectories for 32-bit Windows
======================================================

python_nt.rc   Resource compiler input for python15.dll.

dl_nt.c
               Additional sources used for 32-bit Windows features.

getpathp.c     Default sys.path calculations (for all PC platforms).

dllbase_nt.txt A (manually maintained) list of base addresses for
               various DLLs, to avoid run-time relocation.


Note for Windows 3.x and DOS users
==================================

Neither Windows 3.x nor DOS is supported any more.  The last Python
version that supported these was Python 1.5.2; the support files were
present in Python 2.0 but weren't updated, and it is not our intention
to support these platforms for Python 2.x.