Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
88dadd41
Commit
88dadd41
authored
Jan 02, 2004
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update build procedure to VC 7.1 and newer versions of several packages.
parent
ff52988e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
27 deletions
+31
-27
PCbuild/readme.txt
PCbuild/readme.txt
+31
-27
No files found.
PCbuild/readme.txt
View file @
88dadd41
Building Python using VC++
6.0 or 5.0
Building Python using VC++
7.1
-------------------------------------
-------------------------------------
This directory is used to build Python for Win32 platforms, e.g. Windows
This directory is used to build Python for Win32 platforms, e.g. Windows
95, 98 and NT. It requires Microsoft Visual C++ 6.x or 5.x.
95, 98 and NT. It requires Microsoft Visual C++ 7.1
(a.k.a. Visual Studio .NET 2003).
(For other Windows platforms and compilers, see ../PC/readme.txt.)
(For other Windows platforms and compilers, see ../PC/readme.txt.)
All you need to do is open the workspace "pcbuild.
dsw
" in MSVC++, select
All you need to do is open the workspace "pcbuild.
sln
" in MSVC++, select
the Debug or Release setting (using
Build -> Set Active Configuration...),
the Debug or Release setting (using
"Solution Configuration" from
and build the projects.
the "Standard" toolbar"),
and build the projects.
The proper order to build subprojects:
The proper order to build subprojects:
...
@@ -24,7 +25,7 @@ The proper order to build subprojects:
...
@@ -24,7 +25,7 @@ The proper order to build subprojects:
to the subsystems they implement; see SUBPROJECTS below)
to the subsystems they implement; see SUBPROJECTS below)
When using the Debug setting, the output files have a _d added to
When using the Debug setting, the output files have a _d added to
their name: python2
1
_d.dll, python_d.exe, parser_d.pyd, and so on.
their name: python2
4
_d.dll, python_d.exe, parser_d.pyd, and so on.
SUBPROJECTS
SUBPROJECTS
-----------
-----------
...
@@ -83,16 +84,16 @@ _tkinter
...
@@ -83,16 +84,16 @@ _tkinter
Go to
Go to
http://prdownloads.sourceforge.net/tcl/
http://prdownloads.sourceforge.net/tcl/
and download
and download
tcl84
3
-src.zip
tcl84
5
-src.zip
tk84
3
-src.zip
tk84
5
-src.zip
Unzip into
Unzip into
dist\tcl8.4.
3
\
dist\tcl8.4.
5
\
dist\tk8.4.
3
\
dist\tk8.4.
5
\
respectively.
respectively.
Build Tcl first (done here w/ MSVC 6 on Win98SE)
Build Tcl first (done here w/ MSVC 6 on Win98SE)
---------------
---------------
cd dist\tcl8.4.
3
\win
cd dist\tcl8.4.
5
\win
run vcvars32.bat [necessary even on Win2K]
run vcvars32.bat [necessary even on Win2K]
nmake -f makefile.vc
nmake -f makefile.vc
nmake -f makefile.vc INSTALLDIR=..\..\tcl84 install
nmake -f makefile.vc INSTALLDIR=..\..\tcl84 install
...
@@ -107,9 +108,9 @@ _tkinter
...
@@ -107,9 +108,9 @@ _tkinter
Build Tk
Build Tk
--------
--------
cd dist\tk8.4.
3
\win
cd dist\tk8.4.
5
\win
nmake -f makefile.vc TCLDIR=..\..\tcl8.4.
3
nmake -f makefile.vc TCLDIR=..\..\tcl8.4.
5
nmake -f makefile.vc TCLDIR=..\..\tcl8.4.
3
INSTALLDIR=..\..\tcl84 install
nmake -f makefile.vc TCLDIR=..\..\tcl8.4.
5
INSTALLDIR=..\..\tcl84 install
XXX Should we compile with OPTS=threads?
XXX Should we compile with OPTS=threads?
...
@@ -161,6 +162,8 @@ bz2
...
@@ -161,6 +162,8 @@ bz2
If FC finds differences, see the warning abou WinZip above (when I
If FC finds differences, see the warning abou WinZip above (when I
first tried it, sample3.ref failed due to CRLF conversion).
first tried it, sample3.ref failed due to CRLF conversion).
# XXX: it fails with vc 7.1, so the tests are skipped for now.
All of this managed to build bzip2-1.0.2\libbz2.lib, which the Python
All of this managed to build bzip2-1.0.2\libbz2.lib, which the Python
project links in.
project links in.
...
@@ -169,35 +172,36 @@ _bsddb
...
@@ -169,35 +172,36 @@ _bsddb
Go to Sleepycat's download page:
Go to Sleepycat's download page:
http://www.sleepycat.com/download/
http://www.sleepycat.com/download/
and download version 4.
1.25. The file name is db-4.1.25
.NC.zip.
and download version 4.
2.42. The file name is db-4.2.52
.NC.zip.
XXX with or without strong cryptography? I picked "without".
XXX with or without strong cryptography? I picked "without".
Unpack into
Unpack into
dist\db-4.
1.25
dist\db-4.
2.52
[If using WinZip to unpack the db-4.
1.25
.NC distro, that requires
[If using WinZip to unpack the db-4.
2.52
.NC distro, that requires
renaming the directory (to remove ".NC") after unpacking.
renaming the directory (to remove ".NC") after unpacking.
]
]
Open
Open
dist\db-4.
1.25
\docs\index.html
dist\db-4.
2.52
\docs\index.html
and follow the Windows instructions for building the Sleepycat
and follow the Windows instructions for building the Sleepycat
software. Note that Berkeley_DB.dsw is in the build_win32 subdirectory.
software. Note that Berkeley_DB.dsw is in the build_win32 subdirectory.
Build the Release version ("build_all -- Win32 Release").
Build the Release version ("build_all -- Win32 Release").
XXX We're actually linking against Release_static\libdb4
1
s.lib.
XXX We're actually linking against Release_static\libdb4
2
s.lib.
XXX This yields the following warnings:
XXX This yields the following warnings:
"""
"""
Compiling...
Compiling...
_bsddb.c
_bsddb.c
Linking...
Linking...
Creating library ./_bsddb.lib and object ./_bsddb.exp
Creating library ./_bsddb.lib and object ./_bsddb.exp
LINK : warning LNK4049: locally defined symbol "_malloc" imported
_bsddb.obj : warning LNK4217: locally defined symbol _malloc imported in function __db_associateCallback
LINK : warning LNK4049: locally defined symbol "_free" imported
_bsddb.obj : warning LNK4217: locally defined symbol _free imported in function __DB_consume
LINK : warning LNK4049: locally defined symbol "_fclose" imported
_bsddb.obj : warning LNK4217: locally defined symbol _fclose imported in function _DB_verify
LINK : warning LNK4049: locally defined symbol "_fopen" imported
_bsddb.obj : warning LNK4217: locally defined symbol _fopen imported in function _DB_verify
_bsddb.pyd - 0 error(s), 4 warning(s)
_bsddb.obj : warning LNK4217: locally defined symbol _strncpy imported in function _init_pybsddb
__bsddb - 0 error(s), 5 warning(s)
"""
"""
XXX This isn't encouraging, but I don't know what to do about it.
XXX This isn't encouraging, but I don't know what to do about it.
...
@@ -238,9 +242,9 @@ _ssl
...
@@ -238,9 +242,9 @@ _ssl
http://www.openssl.org
http://www.openssl.org
You (probably) don't want the "engine" code. For example, get
You (probably) don't want the "engine" code. For example, get
openssl-0.9.
6g
.tar.gz
openssl-0.9.
7c
.tar.gz
not
not
openssl-engine-0.9.
6g
.tar.gz
openssl-engine-0.9.
7c
.tar.gz
Unpack into the "dist" directory, retaining the folder name from
Unpack into the "dist" directory, retaining the folder name from
the archive - for example, the latest stable OpenSSL will install as
the archive - for example, the latest stable OpenSSL will install as
...
@@ -273,7 +277,7 @@ _ssl
...
@@ -273,7 +277,7 @@ _ssl
Win9x note: If, near the start of the build process, you see
Win9x note: If, near the start of the build process, you see
something like
something like
C:\Code\openssl-0.9.
6g
>set OPTS=no-asm
C:\Code\openssl-0.9.
7c
>set OPTS=no-asm
Out of environment space
Out of environment space
then you're in trouble, and will probably also see these errors near
then you're in trouble, and will probably also see these errors near
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment