[Python-checkins] python/dist/src setup.py,1.112,1.113

niemeyer@users.sourceforge.net niemeyer@users.sourceforge.net
Tue, 05 Nov 2002 08:50:06 -0800


Update of /cvsroot/python/python/dist/src
In directory usw-pr-cvs1:/tmp/cvs-serv13902

Modified Files:
	setup.py 
Log Message:
Patch implementing bz2 module.

* setup.py
  (PyBuildExt.detect_modules): Included bz2 module detection.

* Modules/bz2module.c
* Lib/test/test_bz2.py
* Doc/lib/libbz2.tex
  Included files implementing, testing, and documenting bz2 module.

* Doc/Makefile.deps
* Doc/lib/lib.tex
  Include references to libbz2.tex.

* Misc/NEWS
  (Library): Mention distutils' c++ linkage patch, and new bz2 module.


Index: setup.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/setup.py,v
retrieving revision 1.112
retrieving revision 1.113
diff -C2 -d -r1.112 -r1.113
*** setup.py	14 Oct 2002 20:48:09 -0000	1.112
--- setup.py	5 Nov 2002 16:50:04 -0000	1.113
***************
*** 703,706 ****
--- 703,711 ----
                                             libraries = ['z']) )
  
+         # Gustavo Niemeyer's bz2 module.
+         if (self.compiler.find_library_file(lib_dirs, 'bz2')):
+             exts.append( Extension('bz2', ['bz2module.c'],
+                                    libraries = ['bz2']) )
+ 
          # Interface to the Expat XML parser
          #