summaryrefslogtreecommitdiffstats
path: root/.editorconfig
blob: e5e7e30ed8d73a5c22d3ee1d3dab2c42b6a9c265 (plain)
1
2
3
4
5
6
7
8
9
10
root = true

[*]
charset = utf-8
insert_final_newline = true
trim_trailing_whitespace = true

[{CMakeLists.txt,*.cmake,*.rst}]
indent_size = 2
indent_style = space
'>9space:mode:
authorGuido van Rossum <guido@python.org>2000-11-13 17:24:13 (GMT)
committerGuido van Rossum <guido@python.org>2000-11-13 17:24:13 (GMT)
commit1bb7734c7ed916e5631d0b2a822e4b8f5296cab0 (patch)
treead7a771351c1208db7625fe00aaa3af3ff006bf6 /PC
parent56baca328f7c018c4ae776dd87f44a145f502773 (diff)
downloadcpython-1bb7734c7ed916e5631d0b2a822e4b8f5296cab0.zip
cpython-1bb7734c7ed916e5631d0b2a822e4b8f5296cab0.tar.gz
cpython-1bb7734c7ed916e5631d0b2a822e4b8f5296cab0.tar.bz2
Rip out Win3.1 and DOS support
Diffstat (limited to 'PC')
-rw-r--r--PC/make8x3.py68
-rw-r--r--PC/makesrc.exebin25600 -> 0 bytes
-rw-r--r--PC/pyth_w31.def5
-rw-r--r--PC/python.wpj63
-rw-r--r--PC/readme.txt56
-rw-r--r--PC/src/readme.txt3
-rwxr-xr-xPC/utils/makesrc.c69
-rwxr-xr-xPC/utils/makesrc.lk13
-rwxr-xr-xPC/utils/makesrc.mk124
-rwxr-xr-xPC/utils/makesrc.tgt185
-rwxr-xr-xPC/utils/utils.mk3
-rwxr-xr-xPC/utils/utils.wpj43
-rw-r--r--PC/vc15_lib/_.c1
-rw-r--r--PC/vc15_lib/python.mak2987
-rw-r--r--PC/vc15_lib/python.vcw6
-rw-r--r--PC/vc15_lib/python.wspbin254 -> 0 bytes
-rw-r--r--PC/vc15_w31/_.c1
-rw-r--r--PC/vc15_w31/pyth_w31.mak224
-rw-r--r--PC/vc15_w31/pyth_w31.pdbbin4774 -> 0 bytes
-rw-r--r--PC/vc15_w31/pyth_w31.vcw6
-rw-r--r--PC/vc15_w31/pyth_w31.wspbin254 -> 0 bytes
-rwxr-xr-xPC/wat_dos/pyth_dos.lk13
-rwxr-xr-xPC/wat_dos/pyth_dos.mk1642
-rwxr-xr-xPC/wat_dos/pyth_dos.tgt1701
-rwxr-xr-xPC/wat_os2/pyth_os2.lk13
-rwxr-xr-xPC/wat_os2/pyth_os2.mk1649
-rwxr-xr-xPC/wat_os2/pyth_os2.tgt1617
27 files changed, 10 insertions, 8352 deletions
diff --git a/PC/make8x3.py b/PC/make8x3.py
deleted file mode 100644
index a756209..0000000
--- a/PC/make8x3.py
+++ /dev/null
@@ -1,68 +0,0 @@
-#! /usr/bin/env python
-
-# This program reads all *.py and test/*.py in "libDir", and
-# copies those files with illegal DOS names to libDir/dos-8x3.
-# Names are illegal if they are longer than 8x3 chars or if they
-# contain uppercase chars. It also tests for name collisions.
-# You must first create the directory libDir/dos-8x3 yourself.
-# You should remove all files in dos-8x3 if you run it again.
-
-# CHANGE libDir TO THE CORRECT DIRECTORY. RM dos-8x3/* FIRST.
-
-import sys, os, regex, string
-
-libDir = "./Lib" # Location of Python Lib
-
-def make8x3():
- reg_uppercase = regex.compile("[A-Z]")
- collisions = {} # See if all names are unique in first 8 chars.
- destDir = os.path.join(libDir, "dos-8x3")
- if not os.path.isdir(destDir):
- print "Please create the directory", destDir, "first."
- err()
- while 1:
- ans = raw_input("Ok to copy to " + destDir + " [yn]? ")
- if not ans:
- continue
- elif ans[0] == "n":
- err()
- elif ans[0] == "y":
- break
- for dirname in libDir, os.path.join(libDir, "test"):
- for filename in os.listdir(dirname):
- if filename[-3:] == ".py":
- name = filename[0:-3]
- if len(name) > 8 or reg_uppercase.search(name) >= 0:
- shortName = string.lower(name[0:8])
- if collisions.has_key(shortName):
- print "Name not unique in first 8 chars:", collisions[shortName], name
- else:
- collisions[shortName] = name
- fin = open(os.path.join(dirname, filename), "r")
- dest = os.path.join(destDir, shortName + ".py")
- fout = open(dest, "w")
- fout.write(fin.read())
- fin.close()
- fout.close()
- os.chmod(dest, 0644)
- elif filename == "." or filename == "..":
- continue
- elif filename[-4:] == ".pyc":
- continue
- elif filename == "Makefile":
- continue
- else:
- parts = string.splitfields(filename, ".")
- if len(parts) > 2 or \
- len(parts[0]) > 8 or \
- reg_uppercase.search(filename) >= 0 or \
- (len(parts) > 1 and len(parts[1]) > 3):
- print "Illegal DOS name", os.path.join(dirname, filename)
- sys.exit(0)
-def err():
- print "No files copied."
- sys.exit(1)
-
-
-if __name__ == "__main__":
- make8x3()
diff --git a/PC/makesrc.exe b/PC/makesrc.exe
deleted file mode 100644
index 18bb43e..0000000
--- a/PC/makesrc.exe
+++ /dev/null
Binary files differ
diff --git a/PC/pyth_w31.def b/PC/pyth_w31.def
deleted file mode 100644
index 753e8f8..0000000
--- a/PC/pyth_w31.def
+++ /dev/null
@@ -1,5 +0,0 @@
-NAME
-EXETYPE WINDOWS
-CODE PRELOAD MOVABLE DISCARDABLE
-DATA PRELOAD MOVABLE
-HEAPSIZE 4096
diff --git a/PC/python.wpj b/PC/python.wpj
deleted file mode 100644
index e03b3b6..0000000
--- a/PC/python.wpj
+++ /dev/null
@@ -1,63 +0,0 @@
-40
-projectIdent
-0
-VpeMain
-1
-WRect
-448
-128
-9136
-8576
-2
-MProject
-3
-MCommand
-0
-4
-MCommand
-0
-2
-5
-WFileName
-20
-wat_os2\pyth_os2.tgt
-6
-WFileName
-20
-wat_dos\pyth_dos.tgt
-7
-WVList
-2
-8
-VComponent
-9
-WRect
-832
-256
-6048
-5482
-0
-0
-10
-WFileName
-20
-wat_os2\pyth_os2.tgt
-0
-22
-11
-VComponent
-12
-WRect
-240
-704
-7792
-5568
-0
-0
-13
-WFileName
-20
-wat_dos\pyth_dos.tgt
-20
-29
-8
diff --git a/PC/readme.txt b/PC/readme.txt
index 6f63cb3..0455f27 100644
--- a/PC/readme.txt
+++ b/PC/readme.txt
@@ -1,7 +1,7 @@
Welcome to the "PC" subdirectory of the Python distribution
***********************************************************
-*** Note: the project files for MS VC++ 5.0 and 6.0 are now in the
+*** Note: the project files for MS VC++ 6.0 are now in the
*** PCbuild directory. See the file readme.txt there for build
*** instructions. There is some information below that might
*** still be relevant.
@@ -62,11 +62,6 @@ testpy.py A Python test program. Run this to test your
failed, and how many were skipped. Don't worry about
skipped tests (these test unavailable optional features).
-src A subdirectory used only for VC++ version 1.5 Python
- source files. See below. The other compilers do not
- use it. They reference the actual distribution
- directories instead.
-
Additional files and subdirectories for 32-bit Windows
======================================================
@@ -85,47 +80,16 @@ example_nt A subdirectory showing how to build an extension as a
DLL.
-Microsoft Visual C++ Version 1.5 (16-bit Windows)
-=================================================
-
-Since VC++1.5 does not handle long file names, it is necessary
-to run the "makesrc.exe" program in this directory to copy
-Python files from the distribution to the directory "src"
-with shortened names. Included file names are shortened too.
-Do this before you attempt to build Python.
-
-The "makesrc.exe" program is a native NT program, and you must
-have NT, Windows 95 or Win32s to run it. Otherwise you will need
-to copy distribution files to src yourself.
-
-The makefiles are named *.mak and are located in directories
-starting with "vc15_". NOTE: When dependencies are scanned
-VC++ will create dependencies for directories which are not
-used because it fails to evaluate "#define" properly. You
-must manaully edit makefiles (*.mak) to remove references to
-"sys/" and other bad directories.
-
-vc15_lib A static Python library. Create this first because is
- is required for vc15_w31.
-
-vc15_w31 A Windows 3.1x Python QuickWin (console-mode)
- Python including sockets. Requires vc15_lib.
-
-
-Watcom C++ Version 10.6
-=======================
-
-The project file for the Watcom compiler is ./python.wpj.
-It will build Watcom versions in the directories wat_*.
-
-wat_dos A 32-bit extended DOS Python (console-mode) using the
- dos4gw DOS extender. Sockets are not included.
-
-wat_os2 A 32-bit OS/2 Python (console-mode).
- Sockets are not included.
-
-
IBM VisualAge C/C++ for OS/2
============================
See os2vacpp/readme.txt. This platform is supported by Jeff Rush.
+
+
+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.
diff --git a/PC/src/readme.txt b/PC/src/readme.txt
deleted file mode 100644
index 4685b90..0000000
--- a/PC/src/readme.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-This directory is used only for VC++ version 1.5 Python source files.
-The "makesrc.exe" program copies the sources here with shortened
-names. See ../readme.txt.
diff --git a/PC/utils/makesrc.c b/PC/utils/makesrc.c
deleted file mode 100755
index 458bfab..0000000
--- a/PC/utils/makesrc.c
+++ /dev/null
@@ -1,69 +0,0 @@
-#include <stdio.h>
-#include <direct.h>
-#include <string.h>
-
-/* Copy files from source directories to ./src changing
-file names and #include names to 8x3 lower case */
-
-char *usage = "You must be in the \"pc\" directory.\n";
-char *list[] = {"..\\Include", "..\\Modules", "..\\Objects", "..\\Parser", "..\\Python", ".", 0};
-
-int
-main(int argc, char ** argv)
-{
- DIR *dpath;
- struct dirent *dir;
- int len;
- char **plist;
- char *pt1, *pt2, *name;
- char dest_path[256], src_path[256], buf256[256];
- FILE *fpin, *fpout;
-
- for (plist = list; *plist; plist++){
- if ((dpath = opendir(*plist)) == NULL){
- printf(usage);
- return 1;
- }
-
- while (dir = readdir(dpath)){
- name = dir->d_name;
- len = strlen(name);
- if (len > 2 && name[len - 2] == '.' &&
- (name[len - 1] == 'c' || name[len - 1] == 'h')){
- strcpy(buf256, name);
- if (len > 10){
- buf256[8] = '.';
- buf256[9] = name[len - 1];
- buf256[10] = 0;
- }
- strlwr(buf256);
- strncpy(src_path, *plist, 256);
- strncat(src_path, "\\", 256);
- strncat(src_path, name, 256);
- strncpy(dest_path, ".\\src\\", 256);
- strncat(dest_path, buf256, 256);
- printf("Copying %-30s to %s\n", src_path, dest_path);
- fpin = fopen(src_path, "r");
- fpout = fopen(dest_path, "w");
- while (fgets(buf256, 256, fpin)){
- if (!strncmp(buf256, "#include", 8)){
- strlwr(buf256);
- if ((pt1 = strstr(buf256, "\"")) &&
- (pt2 = strstr(buf256, ".")) &&
- (*(pt2 + 1) == 'h') &&
- (pt2 - pt1 > 9)){
- for (pt1 += 9; *pt2; pt1++, pt2++)
- *pt1 = *pt2;
- *pt1 = 0;
- }
- }
- fputs(buf256, fpout);
- }
- fclose(fpin);
- fclose(fpout);
- }
- }
- closedir(dpath);
- }
- return 0;
-}
diff --git a/PC/utils/makesrc.lk1 b/PC/utils/makesrc.lk1
deleted file mode 100755
index 18fddb7..0000000
--- a/PC/utils/makesrc.lk1
+++ /dev/null
@@ -1,3 +0,0 @@
-NAME makesrc
-FIL makesrc.obj
-
diff --git a/PC/utils/makesrc.mk1 b/PC/utils/makesrc.mk1
deleted file mode 100755
index 8c3eb5c..0000000
--- a/PC/utils/makesrc.mk1
+++ /dev/null
@@ -1,24 +0,0 @@
-!define BLANK ""
-n:\python\python-1.4b0b\pc\utils\makesrc.obj : n:\python\python-1.4b0b\pc\ut&
-ils\makesrc.c .AUTODEPEND
- @n:
- cd n:\python\python-1.4b0b\pc\utils
- *wcc386 makesrc.c -i=C:\WATCOM\h;C:\WATCOM\h\nt -w4 -e25 -ei -zp4 -zq -otex&
-an -d1 -5r -bt=nt -mf
-
-n:\python\python-1.4b0b\pc\utils\makesrc.exe : n:\python\python-1.4b0b\pc\ut&
-ils\makesrc.obj .AUTODEPEND
- @n:
- cd n:\python\python-1.4b0b\pc\utils
- @%write makesrc.lk1 NAME makesrc
- @%append makesrc.lk1 FIL makesrc.obj
- @%append makesrc.lk1
-!ifneq BLANK ""
- *wlib -q -n -b makesrc.imp
- @%append makesrc.lk1 LIBR makesrc.imp
-!endif
- *wlink SYS nt op m op st=20k op maxe=25 op q op symf @makesrc.lk1
-!ifneq BLANK ""
- wrc -q -ad makesrc.exe
-!endif
-
diff --git a/PC/utils/makesrc.tgt b/PC/utils/makesrc.tgt
deleted file mode 100755
index fd2abc7..0000000
--- a/PC/utils/makesrc.tgt
+++ /dev/null
@@ -1,185 +0,0 @@
-40
-targetIdent
-0
-MProject
-1
-MComponent
-0
-2
-WString
-4
-NEXE
-3
-WString
-5
-nc2en
-1
-0
-0
-4
-MCommand
-0
-5
-MCommand
-0
-6
-MItem
-11
-makesrc.exe
-7
-WString
-4
-NEXE
-8
-WVList
-2
-9
-MVState
-10
-WString
-7
-WINLINK
-11
-WString
-11
-?????Stack:
-1
-12
-WString
-3
-20k
-0
-13
-MVState
-14
-WString
-7
-WINLINK
-15
-WString
-11
-?????Stack:
-0
-16
-WString
-3
-20k
-0
-17
-WVList
-0
--1
-1
-1
-0
-18
-WPickList
-2
-19
-MItem
-3
-*.c
-20
-WString
-4
-COBJ
-21
-WVList
-6
-22
-MCState
-23
-WString
-3
-WCC
-24
-WString
-31
-?????Force enums to be type int
-1
-1
-25
-MRState
-26
-WString
-3
-WCC
-27
-WString
-20
-?????Pack structures
-1
-0
-28
-MRState
-29
-WString
-3
-WCC
-30
-WString
-21
-?????4 byte alignment
-1
-1
-31
-MCState
-32
-WString
-3
-WCC
-33
-WString
-31
-?????Force enums to be type int
-0
-1
-34
-MRState
-35
-WString
-3
-WCC
-36
-WString
-20
-?????Pack structures
-0
-0
-37
-MRState
-38
-WString
-3
-WCC
-39
-WString
-21
-?????4 byte alignment
-0
-1
-40
-WVList
-0
--1
-1
-1
-0
-41
-MItem
-9
-makesrc.c
-42
-WString
-4
-COBJ
-43
-WVList
-0
-44
-WVList
-0
-19
-1
-1
-0
diff --git a/PC/utils/utils.mk b/PC/utils/utils.mk
deleted file mode 100755
index b357ef6..0000000
--- a/PC/utils/utils.mk
+++ /dev/null
@@ -1,3 +0,0 @@
-project : n:\python\python-1.4b0b\pc\utils\makesrc.exe .SYMBOLIC
-
-!include n:\python\python-1.4b0b\pc\utils\makesrc.mk1
diff --git a/PC/utils/utils.wpj b/PC/utils/utils.wpj
deleted file mode 100755