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

Side by Side Diff: setup.py

Issue 20519: ctypes.create_string_buffer creates reference cycles
Patch Set: Created 5 years, 7 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/_uuidmodule.c ('K') | « Modules/_uuidmodule.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 import sys, os, importlib.machinery, re, optparse 4 import sys, os, importlib.machinery, re, optparse
5 from glob import glob 5 from glob import glob
6 import importlib._bootstrap 6 import importlib._bootstrap
7 import importlib.util 7 import importlib.util
8 import sysconfig 8 import sysconfig
9 9
10 from distutils import log 10 from distutils import log
(...skipping 1523 matching lines...) Expand 10 before | Expand all | Expand 10 after
1534 missing.append('_tkinter') 1534 missing.append('_tkinter')
1535 1535
1536 ## # Uncomment these lines if you want to play with xxmodule.c 1536 ## # Uncomment these lines if you want to play with xxmodule.c
1537 ## ext = Extension('xx', ['xxmodule.c']) 1537 ## ext = Extension('xx', ['xxmodule.c'])
1538 ## self.extensions.append(ext) 1538 ## self.extensions.append(ext)
1539 1539
1540 if 'd' not in sys.abiflags: 1540 if 'd' not in sys.abiflags:
1541 ext = Extension('xxlimited', ['xxlimited.c'], 1541 ext = Extension('xxlimited', ['xxlimited.c'],
1542 define_macros=[('Py_LIMITED_API', '0x03040000')]) 1542 define_macros=[('Py_LIMITED_API', '0x03040000')])
1543 self.extensions.append(ext) 1543 self.extensions.append(ext)
1544
1545
1546 # Build the _uuid module if possible
1547 build_uuid = False
1548 if host_platform == "darwin":
1549 # The uuid_generate_* functions are broken on MacOS X 10.5, as noted
1550 # in issue #8621 the function generates the same sequence of values
1551 # in the parent process and all children created using fork (unless
1552 # those children use exec as well).
1553 #
1554 # Assume that the uuid_generate functions are broken from 10.5 onwar d,
1555 # the test can be adjusted when a later version is fixed.
1556 if int(os.uname().release.split('.')[0]) < 9:
haypo 2015/09/24 13:37:20 Python only provides a single DMG for all Mac OS X
gustavo 2015/10/26 20:08:21 It's easier to do it in uuid.py, when deciding whe
1557 build_uuid = True
1558 uuid_libs = []
1559 else:
1560 build_uuid = False
1561 else:
1562 if find_file("uuid.h", inc_dirs, ["/usr/include/uuid"]):
1563 if self.compiler.find_library_file(lib_dirs, 'uuid'):
1564 uuid_libs = ['uuid']
1565 else:
1566 uuid_libs = []
1567 build_uuid = True
1568 if build_uuid:
1569 self.extensions.append(Extension('_uuid', ['_uuidmodule.c'],
1570 libraries=uuid_libs))
1571 else:
1572 missing.append('_uuid')
1544 1573
1545 return missing 1574 return missing
1546 1575
1547 def detect_tkinter_explicitly(self): 1576 def detect_tkinter_explicitly(self):
1548 # Build _tkinter using explicit locations for Tcl/Tk. 1577 # Build _tkinter using explicit locations for Tcl/Tk.
1549 # 1578 #
1550 # This is enabled when both arguments are given to ./configure: 1579 # This is enabled when both arguments are given to ./configure:
1551 # 1580 #
1552 # --with-tcltk-includes="-I/path/to/tclincludes \ 1581 # --with-tcltk-includes="-I/path/to/tclincludes \
1553 # -I/path/to/tkincludes" 1582 # -I/path/to/tkincludes"
(...skipping 651 matching lines...) Expand 10 before | Expand all | Expand 10 after
2205 # If you change the scripts installed here, you also need to 2234 # If you change the scripts installed here, you also need to
2206 # check the PyBuildScripts command above, and change the links 2235 # check the PyBuildScripts command above, and change the links
2207 # created by the bininstall target in Makefile.pre.in 2236 # created by the bininstall target in Makefile.pre.in
2208 scripts = ["Tools/scripts/pydoc3", "Tools/scripts/idle3", 2237 scripts = ["Tools/scripts/pydoc3", "Tools/scripts/idle3",
2209 "Tools/scripts/2to3", "Tools/scripts/pyvenv"] 2238 "Tools/scripts/2to3", "Tools/scripts/pyvenv"]
2210 ) 2239 )
2211 2240
2212 # --install-platlib 2241 # --install-platlib
2213 if __name__ == '__main__': 2242 if __name__ == '__main__':
2214 main() 2243 main()
OLDNEW
« Modules/_uuidmodule.c ('K') | « Modules/_uuidmodule.c ('k') | no next file » | no next file with comments »

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