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

Side by Side Diff: setup.py

Issue 20519: ctypes.create_string_buffer creates reference cycles
Patch Set: Created 3 years, 10 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
« no previous file with comments | « 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 # Build the _uuid module if possible
1546 build_uuid = False
1547 if find_file("uuid.h", inc_dirs, ["/usr/include/uuid"]):
1548 if self.compiler.find_library_file(lib_dirs, 'uuid'):
1549 uuid_libs = ['uuid']
1550 else:
1551 uuid_libs = []
1552 build_uuid = True
1553 if build_uuid:
1554 self.extensions.append(Extension('_uuid', ['_uuidmodule.c'],
1555 libraries=uuid_libs))
1556 else:
1557 missing.append('_uuid')
1544 1558
1545 return missing 1559 return missing
1546 1560
1547 def detect_tkinter_explicitly(self): 1561 def detect_tkinter_explicitly(self):
1548 # Build _tkinter using explicit locations for Tcl/Tk. 1562 # Build _tkinter using explicit locations for Tcl/Tk.
1549 # 1563 #
1550 # This is enabled when both arguments are given to ./configure: 1564 # This is enabled when both arguments are given to ./configure:
1551 # 1565 #
1552 # --with-tcltk-includes="-I/path/to/tclincludes \ 1566 # --with-tcltk-includes="-I/path/to/tclincludes \
1553 # -I/path/to/tkincludes" 1567 # -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 2219 # If you change the scripts installed here, you also need to
2206 # check the PyBuildScripts command above, and change the links 2220 # check the PyBuildScripts command above, and change the links
2207 # created by the bininstall target in Makefile.pre.in 2221 # created by the bininstall target in Makefile.pre.in
2208 scripts = ["Tools/scripts/pydoc3", "Tools/scripts/idle3", 2222 scripts = ["Tools/scripts/pydoc3", "Tools/scripts/idle3",
2209 "Tools/scripts/2to3", "Tools/scripts/pyvenv"] 2223 "Tools/scripts/2to3", "Tools/scripts/pyvenv"]
2210 ) 2224 )
2211 2225
2212 # --install-platlib 2226 # --install-platlib
2213 if __name__ == '__main__': 2227 if __name__ == '__main__':
2214 main() 2228 main()
OLDNEW
« no previous file with comments | « Modules/_uuidmodule.c ('k') | no next file » | no next file with comments »

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