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

Delta Between Two Patch Sets: setup.py

Issue 7652: Merge C version of decimal into py3k.
Left Patch Set: Created 8 years, 5 months ago
Right Patch Set: Created 7 years, 8 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:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « pyconfig.h.in ('k') | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
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 import sys, os, imp, re, optparse 4 import sys, os, imp, re, optparse
5 from glob import glob 5 from glob import glob
6 import sysconfig 6 import sysconfig
7 7
8 from distutils import log 8 from distutils import log
9 from distutils import text_file 9 from distutils import text_file
10 from distutils.errors import * 10 from distutils.errors import *
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 188
189 # Platform-dependent module source and include directories 189 # Platform-dependent module source and include directories
190 platform = self.get_platform() 190 platform = self.get_platform()
191 191
192 # Fix up the paths for scripts, too 192 # Fix up the paths for scripts, too
193 self.distribution.scripts = [os.path.join(srcdir, filename) 193 self.distribution.scripts = [os.path.join(srcdir, filename)
194 for filename in self.distribution.scripts] 194 for filename in self.distribution.scripts]
195 195
196 # Python header files 196 # Python header files
197 headers = [sysconfig.get_config_h_filename()] 197 headers = [sysconfig.get_config_h_filename()]
198 headers += glob(os.path.join(sysconfig.get_path('platinclude'), "*.h")) 198 headers += glob(os.path.join(sysconfig.get_path('include'), "*.h"))
199 199
200 for ext in self.extensions[:]: 200 for ext in self.extensions[:]:
201 ext.sources = [ find_module_file(filename, moddirlist) 201 ext.sources = [ find_module_file(filename, moddirlist)
202 for filename in ext.sources ] 202 for filename in ext.sources ]
203 if ext.depends is not None: 203 if ext.depends is not None:
204 ext.depends = [find_module_file(filename, moddirlist) 204 ext.depends = [find_module_file(filename, moddirlist)
205 for filename in ext.depends] 205 for filename in ext.depends]
206 else: 206 else:
207 ext.depends = [] 207 ext.depends = []
208 # re-compile extensions if a header file has been changed 208 # re-compile extensions if a header file has been changed
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 self.announce('unable to remove files (ignored)') 356 self.announce('unable to remove files (ignored)')
357 except: 357 except:
358 exc_type, why, tb = sys.exc_info() 358 exc_type, why, tb = sys.exc_info()
359 self.announce('*** WARNING: importing extension "%s" ' 359 self.announce('*** WARNING: importing extension "%s" '
360 'failed with %s: %s' % (ext.name, exc_type, why), 360 'failed with %s: %s' % (ext.name, exc_type, why),
361 level=3) 361 level=3)
362 self.failed.append(ext.name) 362 self.failed.append(ext.name)
363 363
364 def get_platform(self): 364 def get_platform(self):
365 # Get value of sys.platform 365 # Get value of sys.platform
366 for platform in ['cygwin', 'darwin', 'osf1']: 366 if sys.platform.startswith('osf1'):
367 if sys.platform.startswith(platform): 367 return 'osf1'
368 return platform
369 return sys.platform 368 return sys.platform
370 369
371 def add_multiarch_paths(self): 370 def add_multiarch_paths(self):
372 # Debian/Ubuntu multiarch support. 371 # Debian/Ubuntu multiarch support.
373 # https://wiki.ubuntu.com/MultiarchSpec 372 # https://wiki.ubuntu.com/MultiarchSpec
374 if not find_executable('dpkg-architecture'): 373 if not find_executable('dpkg-architecture'):
375 return 374 return
376 tmpfile = os.path.join(self.build_temp, 'multiarch') 375 tmpfile = os.path.join(self.build_temp, 'multiarch')
377 if not os.path.exists(self.build_temp): 376 if not os.path.exists(self.build_temp):
378 os.makedirs(self.build_temp) 377 os.makedirs(self.build_temp)
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 # array objects 497 # array objects
499 exts.append( Extension('array', ['arraymodule.c']) ) 498 exts.append( Extension('array', ['arraymodule.c']) )
500 # complex math library functions 499 # complex math library functions
501 exts.append( Extension('cmath', ['cmathmodule.c', '_math.c'], 500 exts.append( Extension('cmath', ['cmathmodule.c', '_math.c'],
502 depends=['_math.h'], 501 depends=['_math.h'],
503 libraries=math_libs) ) 502 libraries=math_libs) )
504 # math library functions, e.g. sin() 503 # math library functions, e.g. sin()
505 exts.append( Extension('math', ['mathmodule.c', '_math.c'], 504 exts.append( Extension('math', ['mathmodule.c', '_math.c'],
506 depends=['_math.h'], 505 depends=['_math.h'],
507 libraries=math_libs) ) 506 libraries=math_libs) )
507
508 # time libraries: librt may be needed for clock_gettime()
509 time_libs = []
510 lib = sysconfig.get_config_var('TIMEMODULE_LIB')
511 if lib:
512 time_libs.append(lib)
513
508 # time operations and variables 514 # time operations and variables
509 exts.append( Extension('time', ['timemodule.c', '_time.c'], 515 exts.append( Extension('time', ['timemodule.c', '_time.c'],
510 libraries=math_libs) ) 516 libraries=time_libs) )
511 exts.append( Extension('_datetime', ['_datetimemodule.c', '_time.c'], 517 exts.append( Extension('_datetime', ['_datetimemodule.c', '_time.c']) )
512 libraries=math_libs) )
513 # random number generator implemented in C 518 # random number generator implemented in C
514 exts.append( Extension("_random", ["_randommodule.c"]) ) 519 exts.append( Extension("_random", ["_randommodule.c"]) )
515 # bisect 520 # bisect
516 exts.append( Extension("_bisect", ["_bisectmodule.c"]) ) 521 exts.append( Extension("_bisect", ["_bisectmodule.c"]) )
517 # heapq 522 # heapq
518 exts.append( Extension("_heapq", ["_heapqmodule.c"]) ) 523 exts.append( Extension("_heapq", ["_heapqmodule.c"]) )
519 # C-optimized pickle replacement 524 # C-optimized pickle replacement
520 exts.append( Extension("_pickle", ["_pickle.c"]) ) 525 exts.append( Extension("_pickle", ["_pickle.c"]) )
521 # atexit 526 # atexit
522 exts.append( Extension("atexit", ["atexitmodule.c"]) ) 527 exts.append( Extension("atexit", ["atexitmodule.c"]) )
523 # _json speedups 528 # _json speedups
524 exts.append( Extension("_json", ["_json.c"]) ) 529 exts.append( Extension("_json", ["_json.c"]) )
525 # Python C API test module 530 # Python C API test module
526 exts.append( Extension('_testcapi', ['_testcapimodule.c'], 531 exts.append( Extension('_testcapi', ['_testcapimodule.c'],
527 depends=['testcapi_long.h']) ) 532 depends=['testcapi_long.h']) )
533 # Python PEP-3118 (buffer protocol) test module
534 exts.append( Extension('_testbuffer', ['_testbuffer.c']) )
528 # profiler (_lsprof is for cProfile.py) 535 # profiler (_lsprof is for cProfile.py)
529 exts.append( Extension('_lsprof', ['_lsprof.c', 'rotatingtree.c']) ) 536 exts.append( Extension('_lsprof', ['_lsprof.c', 'rotatingtree.c']) )
530 # static Unicode character database 537 # static Unicode character database
531 exts.append( Extension('unicodedata', ['unicodedata.c']) ) 538 exts.append( Extension('unicodedata', ['unicodedata.c']) )
532 539
533 # Modules with some UNIX dependencies -- on by default: 540 # Modules with some UNIX dependencies -- on by default:
534 # (If you have a really backward UNIX, select and socket may not be 541 # (If you have a really backward UNIX, select and socket may not be
535 # supported...) 542 # supported...)
536 543
537 # fcntl(2) and ioctl(2) 544 # fcntl(2) and ioctl(2)
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after
1156 libs = [] 1163 libs = []
1157 exts.append( Extension('nis', ['nismodule.c'], 1164 exts.append( Extension('nis', ['nismodule.c'],
1158 libraries = libs) ) 1165 libraries = libs) )
1159 else: 1166 else:
1160 missing.append('nis') 1167 missing.append('nis')
1161 else: 1168 else:
1162 missing.extend(['nis', 'resource', 'termios']) 1169 missing.extend(['nis', 'resource', 'termios'])
1163 1170
1164 # Curses support, requiring the System V version of curses, often 1171 # Curses support, requiring the System V version of curses, often
1165 # provided by the ncurses library. 1172 # provided by the ncurses library.
1173 curses_defines = []
1174 curses_includes = []
1166 panel_library = 'panel' 1175 panel_library = 'panel'
1176 if curses_library == 'ncursesw':
1177 curses_defines.append(('HAVE_NCURSESW', '1'))
1178 curses_includes.append('/usr/include/ncursesw')
1179 # Bug 1464056: If _curses.so links with ncursesw,
1180 # _curses_panel.so must link with panelw.
1181 panel_library = 'panelw'
1182
1167 if curses_library.startswith('ncurses'): 1183 if curses_library.startswith('ncurses'):
1168 if curses_library == 'ncursesw':
1169 # Bug 1464056: If _curses.so links with ncursesw,
1170 # _curses_panel.so must link with panelw.
1171 panel_library = 'panelw'
1172 curses_libs = [curses_library] 1184 curses_libs = [curses_library]
1173 exts.append( Extension('_curses', ['_cursesmodule.c'], 1185 exts.append( Extension('_curses', ['_cursesmodule.c'],
1186 include_dirs=curses_includes,
1187 define_macros=curses_defines,
1174 libraries = curses_libs) ) 1188 libraries = curses_libs) )
1175 elif curses_library == 'curses' and platform != 'darwin': 1189 elif curses_library == 'curses' and platform != 'darwin':
1176 # OSX has an old Berkeley curses, not good enough for 1190 # OSX has an old Berkeley curses, not good enough for
1177 # the _curses module. 1191 # the _curses module.
1178 if (self.compiler.find_library_file(lib_dirs, 'terminfo')): 1192 if (self.compiler.find_library_file(lib_dirs, 'terminfo')):
1179 curses_libs = ['curses', 'terminfo'] 1193 curses_libs = ['curses', 'terminfo']
1180 elif (self.compiler.find_library_file(lib_dirs, 'termcap')): 1194 elif (self.compiler.find_library_file(lib_dirs, 'termcap')):
1181 curses_libs = ['curses', 'termcap'] 1195 curses_libs = ['curses', 'termcap']
1182 else: 1196 else:
1183 curses_libs = ['curses'] 1197 curses_libs = ['curses']
1184 1198
1185 exts.append( Extension('_curses', ['_cursesmodule.c'], 1199 exts.append( Extension('_curses', ['_cursesmodule.c'],
1200 define_macros=curses_defines,
1186 libraries = curses_libs) ) 1201 libraries = curses_libs) )
1187 else: 1202 else:
1188 missing.append('_curses') 1203 missing.append('_curses')
1189 1204
1190 # If the curses module is enabled, check for the panel module 1205 # If the curses module is enabled, check for the panel module
1191 if (module_enabled(exts, '_curses') and 1206 if (module_enabled(exts, '_curses') and
1192 self.compiler.find_library_file(lib_dirs, panel_library)): 1207 self.compiler.find_library_file(lib_dirs, panel_library)):
1193 exts.append( Extension('_curses_panel', ['_curses_panel.c'], 1208 exts.append( Extension('_curses_panel', ['_curses_panel.c'],
1209 include_dirs=curses_includes,
1194 libraries = [panel_library] + curses_libs) ) 1210 libraries = [panel_library] + curses_libs) )
1195 else: 1211 else:
1196 missing.append('_curses_panel') 1212 missing.append('_curses_panel')
1197 1213
1198 # Andrew Kuchling's zlib module. Note that some versions of zlib 1214 # Andrew Kuchling's zlib module. Note that some versions of zlib
1199 # 1.1.3 have security problems. See CERT Advisory CA-2002-07: 1215 # 1.1.3 have security problems. See CERT Advisory CA-2002-07:
1200 # http://www.cert.org/advisories/CA-2002-07.html 1216 # http://www.cert.org/advisories/CA-2002-07.html
1201 # 1217 #
1202 # zlib 1.1.4 is fixed, but at least one vendor (RedHat) has decided to 1218 # zlib 1.1.4 is fixed, but at least one vendor (RedHat) has decided to
1203 # patch its zlib 1.1.3 package instead of upgrading to 1.1.4. For 1219 # patch its zlib 1.1.3 package instead of upgrading to 1.1.4. For
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
1258 if sys.platform == "darwin": 1274 if sys.platform == "darwin":
1259 bz2_extra_link_args = ('-Wl,-search_paths_first',) 1275 bz2_extra_link_args = ('-Wl,-search_paths_first',)
1260 else: 1276 else:
1261 bz2_extra_link_args = () 1277 bz2_extra_link_args = ()
1262 exts.append( Extension('_bz2', ['_bz2module.c'], 1278 exts.append( Extension('_bz2', ['_bz2module.c'],
1263 libraries = ['bz2'], 1279 libraries = ['bz2'],
1264 extra_link_args = bz2_extra_link_args) ) 1280 extra_link_args = bz2_extra_link_args) )
1265 else: 1281 else:
1266 missing.append('_bz2') 1282 missing.append('_bz2')
1267 1283
1284 # LZMA compression support.
1285 if self.compiler.find_library_file(lib_dirs, 'lzma'):
1286 exts.append( Extension('_lzma', ['_lzmamodule.c'],
1287 libraries = ['lzma']) )
1288 else:
1289 missing.append('_lzma')
1290
1268 # Interface to the Expat XML parser 1291 # Interface to the Expat XML parser
1269 # 1292 #
1270 # Expat was written by James Clark and is now maintained by a group of 1293 # Expat was written by James Clark and is now maintained by a group of
1271 # developers on SourceForge; see www.libexpat.org for more information. 1294 # developers on SourceForge; see www.libexpat.org for more information.
1272 # The pyexpat module was written by Paul Prescod after a prototype by 1295 # The pyexpat module was written by Paul Prescod after a prototype by
1273 # Jack Jansen. The Expat source is included in Modules/expat/. Usage 1296 # Jack Jansen. The Expat source is included in Modules/expat/. Usage
1274 # of a system shared libexpat.so is possible with --with-system-expat 1297 # of a system shared libexpat.so is possible with --with-system-expat
1275 # configure option. 1298 # configure option.
1276 # 1299 #
1277 # More information on Expat can be found at www.libexpat.org. 1300 # More information on Expat can be found at www.libexpat.org.
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
1371 1394
1372 if sysconfig.get_config_var('WITH_THREAD'): 1395 if sysconfig.get_config_var('WITH_THREAD'):
1373 exts.append ( Extension('_multiprocessing', multiprocessing_srcs, 1396 exts.append ( Extension('_multiprocessing', multiprocessing_srcs,
1374 define_macros=list(macros.items()), 1397 define_macros=list(macros.items()),
1375 include_dirs=["Modules/_multiprocessing"])) 1398 include_dirs=["Modules/_multiprocessing"]))
1376 else: 1399 else:
1377 missing.append('_multiprocessing') 1400 missing.append('_multiprocessing')
1378 # End multiprocessing 1401 # End multiprocessing
1379 1402
1380 # Platform-specific libraries 1403 # Platform-specific libraries
1381 if (platform in ('linux2', 'freebsd4', 'freebsd5', 'freebsd6', 1404 if platform.startswith(('linux', 'freebsd', 'gnukfreebsd')):
1382 'freebsd7', 'freebsd8')
1383 or platform.startswith("gnukfreebsd")):
1384 exts.append( Extension('ossaudiodev', ['ossaudiodev.c']) ) 1405 exts.append( Extension('ossaudiodev', ['ossaudiodev.c']) )
1385 else: 1406 else:
1386 missing.append('ossaudiodev') 1407 missing.append('ossaudiodev')
1387 1408
1388 if sys.platform == 'darwin': 1409 if sys.platform == 'darwin':
1389 exts.append( 1410 exts.append(
1390 Extension('_gestalt', ['_gestalt.c'], 1411 Extension('_gestalt', ['_gestalt.c'],
1391 extra_link_args=['-framework', 'Carbon']) 1412 extra_link_args=['-framework', 'Carbon'])
1392 ) 1413 )
1393 exts.append( 1414 exts.append(
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
1770 break 1791 break
1771 1792
1772 if ffi_inc and ffi_lib: 1793 if ffi_inc and ffi_lib:
1773 ext.include_dirs.extend(ffi_inc) 1794 ext.include_dirs.extend(ffi_inc)
1774 ext.libraries.append(ffi_lib) 1795 ext.libraries.append(ffi_lib)
1775 self.use_system_libffi = True 1796 self.use_system_libffi = True
1776 1797
1777 def _decimal_ext(self): 1798 def _decimal_ext(self):
1778 sources = [ 1799 sources = [
1779 '_decimal/_decimal.c', 1800 '_decimal/_decimal.c',
1780 '_decimal/basearith.c', 1801 '_decimal/libmpdec/basearith.c',
1781 '_decimal/constants.c', 1802 '_decimal/libmpdec/constants.c',
1782 '_decimal/context.c', 1803 '_decimal/libmpdec/context.c',
1783 '_decimal/convolute.c', 1804 '_decimal/libmpdec/convolute.c',
1784 '_decimal/crt.c', 1805 '_decimal/libmpdec/crt.c',
1785 '_decimal/difradix2.c', 1806 '_decimal/libmpdec/difradix2.c',
1786 '_decimal/fnt.c', 1807 '_decimal/libmpdec/fnt.c',
1787 '_decimal/fourstep.c', 1808 '_decimal/libmpdec/fourstep.c',
1788 '_decimal/io.c', 1809 '_decimal/libmpdec/io.c',
1789 '_decimal/memory.c', 1810 '_decimal/libmpdec/memory.c',
1790 '_decimal/mpdecimal.c', 1811 '_decimal/libmpdec/mpdecimal.c',
1791 '_decimal/numbertheory.c', 1812 '_decimal/libmpdec/numbertheory.c',
1792 '_decimal/sixstep.c', 1813 '_decimal/libmpdec/sixstep.c',
1793 '_decimal/transpose.c', 1814 '_decimal/libmpdec/transpose.c',
1794 ] 1815 ]
1795 depends = [ 1816 depends = [
1796 '_decimal/basearith.h',
1797 '_decimal/bits.h',
1798 '_decimal/constants.h',
1799 '_decimal/convolute.h',
1800 '_decimal/crt.h',
1801 '_decimal/difradix2.h',
1802 '_decimal/docstrings.h', 1817 '_decimal/docstrings.h',
1803 '_decimal/fnt.h', 1818 '_decimal/libmpdec/basearith.h',
1804 '_decimal/fourstep.h', 1819 '_decimal/libmpdec/bits.h',
1805 '_decimal/io.h', 1820 '_decimal/libmpdec/constants.h',
1806 '_decimal/memory.h', 1821 '_decimal/libmpdec/convolute.h',
1807 '_decimal/mpdecimal.h', 1822 '_decimal/libmpdec/crt.h',
1808 '_decimal/mptypes.h', 1823 '_decimal/libmpdec/difradix2.h',
1809 '_decimal/numbertheory.h', 1824 '_decimal/libmpdec/fnt.h',
1810 '_decimal/sixstep.h', 1825 '_decimal/libmpdec/fourstep.h',
1811 '_decimal/transpose.h', 1826 '_decimal/libmpdec/io.h',
1812 '_decimal/typearith.h', 1827 '_decimal/libmpdec/memory.h',
1813 '_decimal/umodarith.h', 1828 '_decimal/libmpdec/mpdecimal.h',
1829 '_decimal/libmpdec/numbertheory.h',
1830 '_decimal/libmpdec/sixstep.h',
1831 '_decimal/libmpdec/transpose.h',
1832 '_decimal/libmpdec/typearith.h',
1833 '_decimal/libmpdec/umodarith.h',
1814 ] 1834 ]
1815 config = { 1835 config = {
1816 'x64': [('CONFIG_64','1'), ('ASM','1')], 1836 'x64': [('CONFIG_64','1'), ('ASM','1')],
1817 'uint128': [('CONFIG_64','1'), ('ANSI','1'), ('HAVE_UINT128_T','1')], 1837 'uint128': [('CONFIG_64','1'), ('ANSI','1'), ('HAVE_UINT128_T','1')],
1818 'ansi64': [('CONFIG_64','1'), ('ANSI','1')], 1838 'ansi64': [('CONFIG_64','1'), ('ANSI','1')],
1819 'ppro': [('CONFIG_32','1'), ('PPRO','1'), ('ASM','1')], 1839 'ppro': [('CONFIG_32','1'), ('PPRO','1'), ('ASM','1')],
1820 'ansi32': [('CONFIG_32','1'), ('ANSI','1')], 1840 'ansi32': [('CONFIG_32','1'), ('ANSI','1')],
1821 'ansi-legacy': [('CONFIG_32','1'), ('ANSI','1'), 1841 'ansi-legacy': [('CONFIG_32','1'), ('ANSI','1'),
1822 ('LEGACY_COMPILER','1')], 1842 ('LEGACY_COMPILER','1')],
1823 'universal': [('UNIVERSAL','1')] 1843 'universal': [('UNIVERSAL','1')]
1824 } 1844 }
1825 1845
1846 include_dirs = ['./Modules/_decimal/libmpdec']
1826 extra_compile_args = [] 1847 extra_compile_args = []
1827 undef_macros=['NDEBUG'] 1848 undef_macros=['NDEBUG']
1828 1849
1829 platform = self.get_platform() 1850 platform = self.get_platform()
1830 cc = sysconfig.get_config_var('CC') 1851 cc = sysconfig.get_config_var('CC')
1831 sizeof_size_t = sysconfig.get_config_var('SIZEOF_SIZE_T') 1852 sizeof_size_t = sysconfig.get_config_var('SIZEOF_SIZE_T')
1832 machine = os.environ.get('PYTHON_DECIMAL_WITH_MACHINE') 1853 machine = os.environ.get('PYTHON_DECIMAL_WITH_MACHINE')
1833 1854
1834 if machine: 1855 if machine:
1835 # Override automatic configuration to facilitate testing. 1856 # Override automatic configuration to facilitate testing.
(...skipping 29 matching lines...) Expand all
1865 extra_compile_args.append('-fno-ipa-pure-const') 1886 extra_compile_args.append('-fno-ipa-pure-const')
1866 if sysconfig.get_config_var('HAVE_GLIBC_MEMMOVE_BUG'): 1887 if sysconfig.get_config_var('HAVE_GLIBC_MEMMOVE_BUG'):
1867 # _FORTIFY_SOURCE wrappers for memmove and bcopy are incorrect: 1888 # _FORTIFY_SOURCE wrappers for memmove and bcopy are incorrect:
1868 # http://sourceware.org/ml/libc-alpha/2010-12/msg00009.html 1889 # http://sourceware.org/ml/libc-alpha/2010-12/msg00009.html
1869 undef_macros.append('_FORTIFY_SOURCE') 1890 undef_macros.append('_FORTIFY_SOURCE')
1870 1891
1871 # Faster version without thread local contexts: 1892 # Faster version without thread local contexts:
1872 if not sysconfig.get_config_var('WITH_THREAD'): 1893 if not sysconfig.get_config_var('WITH_THREAD'):
1873 define_macros.append(('WITHOUT_THREADS', 1)) 1894 define_macros.append(('WITHOUT_THREADS', 1))
1874 1895
1896 # Uncomment for extra functionality:
1897 #define_macros.append(('EXTRA_FUNCTIONALITY', 1))
1875 ext = Extension ( 1898 ext = Extension (
1876 '_decimal', 1899 '_decimal',
1900 include_dirs=include_dirs,
1877 define_macros=define_macros, 1901 define_macros=define_macros,
1878 undef_macros=undef_macros, 1902 undef_macros=undef_macros,
1879 extra_compile_args=extra_compile_args, 1903 extra_compile_args=extra_compile_args,
1880 sources=sources, 1904 sources=sources,
1881 depends=depends 1905 depends=depends
1882 ) 1906 )
1883 return ext 1907 return ext
1884 1908
1885 class PyBuildInstall(install): 1909 class PyBuildInstall(install):
1886 # Suppress the warning about installation into the lib_dynload 1910 # Suppress the warning about installation into the lib_dynload
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
2008 # If you change the scripts installed here, you also need to 2032 # If you change the scripts installed here, you also need to
2009 # check the PyBuildScripts command above, and change the links 2033 # check the PyBuildScripts command above, and change the links
2010 # created by the bininstall target in Makefile.pre.in 2034 # created by the bininstall target in Makefile.pre.in
2011 scripts = ["Tools/scripts/pydoc3", "Tools/scripts/idle3", 2035 scripts = ["Tools/scripts/pydoc3", "Tools/scripts/idle3",
2012 "Tools/scripts/2to3", "Tools/scripts/pysetup3"] 2036 "Tools/scripts/2to3", "Tools/scripts/pysetup3"]
2013 ) 2037 )
2014 2038
2015 # --install-platlib 2039 # --install-platlib
2016 if __name__ == '__main__': 2040 if __name__ == '__main__':
2017 main() 2041 main()
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+