Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b0ead4e

Browse files
committed
Start building the bz2 module on Windows.
CAUTION: The Python test still has many failures, but I'm out of time for this now (already took much longer than hoped to get this far). The base bz2 library does pass its own tests (see next). CAUTION: People building on Windows have to download and build tne bz2 compression libraries now. See PCbuild\readme.txt for complete instructions.
1 parent ae9cbee commit b0ead4e

4 files changed

Lines changed: 140 additions & 0 deletions

File tree

PC/dllbase_nt.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ More standard extensions 1D100000 - 1e000000
3030
- select 1D110000 - 1D120000
3131
- unicodedata 1D120000 - 1D160000
3232
- winsound 1D160000 - 1D170000
33+
- bZ2 1D170000 - 1D180000
3334

3435
Other extension modules
3536
- win32api 1e200000 - 1e220000

PCbuild/bz2.dsp

Lines changed: 99 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

PCbuild/pcbuild.dsw

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,18 @@ Package=<4>
9393

9494
###############################################################################
9595

96+
Project: "bz2"=.\bz2.dsp - Package Owner=<4>
97+
98+
Package=<5>
99+
{{{
100+
}}}
101+
102+
Package=<4>
103+
{{{
104+
}}}
105+
106+
###############################################################################
107+
96108
Project: "mmap"=.\mmap.dsp - Package Owner=<4>
97109

98110
Package=<5>

PCbuild/readme.txt

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,34 @@ zlib
8888
zlib-1.1.4\ when you do a clean, so if you want to rebuild zlib.lib
8989
you need to clean up zlib-1.1.4\ by hand.
9090

91+
bz2
92+
Python wrapper for the libbz2 compression library. Homepage
93+
http://sources.redhat.com/bzip2/
94+
Download the source tarball, bzip2-1.0.2.tar.gz.
95+
Unpack into dist\bzip2-1.0.2. WARNING: If you using WinZip, you
96+
must disable its "TAR file smart CR/LF conversion" feature (under
97+
Options -> Configuration -> Miscellaneous -> Other) for the duration.
98+
Don't bother trying to use libbz2.dsp with MSVC. After 10 minutes
99+
of fiddling, I couldn't get it to work. Perhaps it works with
100+
MSVC 5 (I used MSVC 6). It's better to run the by-hand makefile
101+
anyway, because it runs a helpful test step at the end.
102+
cd into dist\bzip2-1.0.2, and run
103+
nmake -f makefile.msc
104+
[Note that if you're running Win9X, you'll need to run vcvars32.bat
105+
before running nmake (this batch file is in your MSVC installation).
106+
TODO: make this work like zlib (in particular, MSVC runs the prelink
107+
step in an enviroment that already has the correct envars set up).
108+
]
109+
The make step should yield any warnings or errors, and should end
110+
by displaying 6 blocks each terminated with
111+
FC: no differences encountered
112+
If FC finds differences, see the warning abou WinZip above (when I
113+
first tried it, sample3.ref failed due to CRLF conversion).
114+
All of this managed to build bzip2-1.0.2\libbz2.lib, which the Python
115+
project links in.
116+
117+
118+
91119
bsddb
92120
Python wrapper for the BSD database 1.85. Requires db.1.85.win32.zip,
93121
from the "bsd db" link at

0 commit comments

Comments
 (0)