mirror of
https://github.com/python/cpython.git
synced 2025-11-10 10:32:04 +00:00
fixed #6459: distutils.command.build_ext.get_export_symbols now uses 'PyInit'
This commit is contained in:
parent
b7e14eda6e
commit
23a3775cc8
3 changed files with 7 additions and 4 deletions
|
|
@ -299,7 +299,7 @@ def test_compiler_option(self):
|
|||
def test_get_outputs(self):
|
||||
tmp_dir = self.mkdtemp()
|
||||
c_file = os.path.join(tmp_dir, 'foo.c')
|
||||
self.write_file(c_file, 'void initfoo(void) {};\n')
|
||||
self.write_file(c_file, 'void PyInit_foo(void) {};\n')
|
||||
ext = Extension('foo', [c_file], optional=False)
|
||||
dist = Distribution({'name': 'xx',
|
||||
'ext_modules': [ext]})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue