Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1)

Side by Side Diff: setup.py

Issue 4274045: [issue5863] bz2.BZ2File should accept other file-like objects.
Patch Set: Created 1 year, 2 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« Modules/_bz2module.c ('K') | « Modules/_bz2module.c ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Autodetecting setup.py script for building the Python extensions 1 # Autodetecting setup.py script for building the Python extensions
2 # 2 #
3 3
4 __version__ = "$Revision$" 4 __version__ = "$Revision$"
5 5
6 import sys, os, imp, re, optparse 6 import sys, os, imp, re, optparse
7 from glob import glob 7 from glob import glob
8 import sysconfig 8 import sysconfig
9 9
10 from distutils import log 10 from distutils import log
(...skipping 1215 matching lines...) Expand 10 before | Expand all | Expand 10 after
1226 extra_compile_args = extra_compile_args, 1226 extra_compile_args = extra_compile_args,
1227 libraries = libraries, 1227 libraries = libraries,
1228 extra_link_args = extra_link_args) ) 1228 extra_link_args = extra_link_args) )
1229 1229
1230 # Gustavo Niemeyer's bz2 module. 1230 # Gustavo Niemeyer's bz2 module.
1231 if (self.compiler.find_library_file(lib_dirs, 'bz2')): 1231 if (self.compiler.find_library_file(lib_dirs, 'bz2')):
1232 if sys.platform == "darwin": 1232 if sys.platform == "darwin":
1233 bz2_extra_link_args = ('-Wl,-search_paths_first',) 1233 bz2_extra_link_args = ('-Wl,-search_paths_first',)
1234 else: 1234 else:
1235 bz2_extra_link_args = () 1235 bz2_extra_link_args = ()
1236 exts.append( Extension('bz2', ['bz2module.c'], 1236 exts.append( Extension('_bz2', ['_bz2module.c'],
Antoine Pitrou 2011/03/13 17:31:28 The Windows build files probably need updating as
1237 libraries = ['bz2'], 1237 libraries = ['bz2'],
1238 extra_link_args = bz2_extra_link_args) ) 1238 extra_link_args = bz2_extra_link_args) )
1239 else: 1239 else:
1240 missing.append('bz2') 1240 missing.append('_bz2')
1241 1241
1242 # Interface to the Expat XML parser 1242 # Interface to the Expat XML parser
1243 # 1243 #
1244 # Expat was written by James Clark and is now maintained by a group of 1244 # Expat was written by James Clark and is now maintained by a group of
1245 # developers on SourceForge; see www.libexpat.org for more information. 1245 # developers on SourceForge; see www.libexpat.org for more information.
1246 # The pyexpat module was written by Paul Prescod after a prototype by 1246 # The pyexpat module was written by Paul Prescod after a prototype by
1247 # Jack Jansen. The Expat source is included in Modules/expat/. Usage 1247 # Jack Jansen. The Expat source is included in Modules/expat/. Usage
1248 # of a system shared libexpat.so is possible with --with-system-expat 1248 # of a system shared libexpat.so is possible with --with-system-expat
1249 # configure option. 1249 # configure option.
1250 # 1250 #
(...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after
1868 # If you change the scripts installed here, you also need to 1868 # If you change the scripts installed here, you also need to
1869 # check the PyBuildScripts command above, and change the links 1869 # check the PyBuildScripts command above, and change the links
1870 # created by the bininstall target in Makefile.pre.in 1870 # created by the bininstall target in Makefile.pre.in
1871 scripts = ["Tools/scripts/pydoc3", "Tools/scripts/idle3", 1871 scripts = ["Tools/scripts/pydoc3", "Tools/scripts/idle3",
1872 "Tools/scripts/2to3"] 1872 "Tools/scripts/2to3"]
1873 ) 1873 )
1874 1874
1875 # --install-platlib 1875 # --install-platlib
1876 if __name__ == '__main__': 1876 if __name__ == '__main__':
1877 main() 1877 main()
OLDNEW
« Modules/_bz2module.c ('K') | « Modules/_bz2module.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld 855:fffdfa546f68