mirror of
https://github.com/python/cpython.git
synced 2025-10-17 04:08:28 +00:00
Check in Daniel Stutzbach's _fileio.c and test_fileio.py
(see SF#1671314) with small tweaks. The io module now uses this instead of its own implementation of the FileIO class, if it can import _fileio.
This commit is contained in:
parent
4d0f5a4934
commit
a9e2024b84
5 changed files with 1002 additions and 1 deletions
3
setup.py
3
setup.py
|
@ -1037,6 +1037,9 @@ class PyBuildExt(build_ext):
|
|||
# Thomas Heller's _ctypes module
|
||||
self.detect_ctypes(inc_dirs, lib_dirs)
|
||||
|
||||
# _fileio -- supposedly cross platform
|
||||
exts.append(Extension('_fileio', ['_fileio.c']))
|
||||
|
||||
# Platform-specific libraries
|
||||
if platform == 'linux2':
|
||||
# Linux-specific modules
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue