Skip to content

Conversation

scoder
Copy link
Contributor

@scoder scoder commented Jan 23, 2020

Make it export the correct init symbol also on Windows.

https://bugs.python.org/issue39432

Automerge-Triggered-By: @encukou

…l names in distutils to make it export the correct init symbol also on Windows.
@scoder scoder force-pushed the bpo39432_distutils_module_name branch from 13b3cbe to 7cdb5cc Compare January 23, 2020 15:14
@merwok merwok requested a review from zooba January 24, 2020 18:50
Copy link
Member

@encukou encukou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah! I didn't know about this part of the code :(

The change looks good to me, but it would be much better to have a test ensuring that such an extension can actually be imported successfully.
Please keep the bug open for that, if you merge as is.

@miss-islington miss-islington merged commit 9538bc9 into python:master Feb 4, 2020
@scoder scoder deleted the bpo39432_distutils_module_name branch February 5, 2020 08:30
@scoder scoder restored the bpo39432_distutils_module_name branch February 5, 2020 08:30
@miss-islington
Copy link
Contributor

Thanks @scoder for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8.
🐍🍒⛏🤖

@bedevere-bot
Copy link

GH-18546 is a backport of this pull request to the 3.8 branch.

scoder added a commit that referenced this pull request Feb 18, 2020
…l names in distutils (GH-18150) (GH-18546)

Make it export the correct init symbol also on Windows.

https://bugs.python.org/issue39432
(cherry picked from commit 9538bc9)

Co-authored-by: Stefan Behnel <stefan_ml@behnel.de>
@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot AMD64 Windows7 SP1 3.8 has failed when building commit 5bf58ce.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/163/builds/152) and take a look at the build logs.
  4. Check if the failure is related to this commit (5bf58ce) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/163/builds/152

Failed tests:

  • test_distutils

Failed subtests:

  • test_unicode_module_names - distutils.tests.test_build_ext.BuildExtTestCase
  • test_unicode_module_names - distutils.tests.test_build_ext.ParallelBuildExtTestCase

Summary of the results of the build (if available):

== Tests result: FAILURE then FAILURE ==

389 tests OK.

10 slowest tests:

  • test_multiprocessing_spawn: 2 min 17 sec
  • test_tools: 2 min
  • test_tokenize: 1 min 42 sec
  • test_concurrent_futures: 1 min 36 sec
  • test_lib2to3: 1 min 17 sec
  • test_venv: 1 min 17 sec
  • test_mmap: 1 min 5 sec
  • test_asyncio: 1 min 1 sec
  • test_io: 1 min
  • test_socket: 1 min

1 test failed:
test_distutils

33 tests skipped:
test_curses test_dbm_gnu test_dbm_ndbm test_devpoll test_epoll
test_fcntl test_fork1 test_gdb test_grp test_ioctl test_kqueue
test_multiprocessing_fork test_multiprocessing_forkserver test_nis
test_openpty test_ossaudiodev test_pipes test_poll test_posix
test_pty test_pwd test_readline test_resource test_spwd
test_syslog test_threadsignals test_tix test_tk test_ttk_guionly
test_wait3 test_wait4 test_xxtestfuzz test_zipfile64

1 re-run test:
test_distutils

Total duration: 9 min 50 sec

Click to see traceback logs
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.8.kloth-win64\build\lib\distutils\tests\test_build_ext.py", line 315, in test_unicode_module_names
    self.assertRegex(cmd.get_ext_filename(modules[0].name), r'foo\..*')
AssertionError: Regex didn't match: 'foo\\..*' not found in 'foo_d.cp38-win_amd64.pyd'

@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot AMD64 Windows10 3.8 has failed when building commit 5bf58ce.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/159/builds/144) and take a look at the build logs.
  4. Check if the failure is related to this commit (5bf58ce) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/159/builds/144

Failed tests:

  • test_distutils

Failed subtests:

  • test_unicode_module_names - distutils.tests.test_build_ext.BuildExtTestCase
  • test_unicode_module_names - distutils.tests.test_build_ext.ParallelBuildExtTestCase

Summary of the results of the build (if available):

== Tests result: FAILURE then FAILURE ==

392 tests OK.

10 slowest tests:

  • test_mmap: 4 min 37 sec
  • test_multiprocessing_spawn: 2 min 43 sec
  • test_io: 2 min 33 sec
  • test_tools: 2 min 26 sec
  • test_tokenize: 2 min 10 sec
  • test_concurrent_futures: 1 min 45 sec
  • test_lib2to3: 1 min 21 sec
  • test_largefile: 1 min 13 sec
  • test_asyncio: 58.2 sec
  • test_capi: 50.5 sec

1 test failed:
test_distutils

30 tests skipped:
test_curses test_dbm_gnu test_dbm_ndbm test_devpoll test_epoll
test_fcntl test_fork1 test_gdb test_grp test_ioctl test_kqueue
test_multiprocessing_fork test_multiprocessing_forkserver test_nis
test_openpty test_ossaudiodev test_pipes test_poll test_posix
test_pty test_pwd test_readline test_resource test_spwd
test_syslog test_threadsignals test_wait3 test_wait4
test_xxtestfuzz test_zipfile64

1 re-run test:
test_distutils

Total duration: 12 min 44 sec

Click to see traceback logs
Traceback (most recent call last):
  File "D:\buildarea\3.8.bolen-windows10\build\lib\distutils\tests\test_build_ext.py", line 315, in test_unicode_module_names
    self.assertRegex(cmd.get_ext_filename(modules[0].name), r'foo\..*')
AssertionError: Regex didn't match: 'foo\\..*' not found in 'foo_d.cp38-win_amd64.pyd'

@encukou
Copy link
Member

encukou commented Feb 18, 2020

This PR is for master. The 3.8 buildbot failures should be reported against GH-18546.

@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot x86 Windows7 3.8 has failed when building commit 5bf58ce.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/223/builds/141) and take a look at the build logs.
  4. Check if the failure is related to this commit (5bf58ce) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/223/builds/141

Failed tests:

  • test_distutils

Failed subtests:

  • test_unicode_module_names - distutils.tests.test_build_ext.BuildExtTestCase
  • test_unicode_module_names - distutils.tests.test_build_ext.ParallelBuildExtTestCase

Summary of the results of the build (if available):

== Tests result: FAILURE then FAILURE ==

392 tests OK.

10 slowest tests:

  • test_multiprocessing_spawn: 16 min 29 sec
  • test_zipfile: 8 min 3 sec
  • test_concurrent_futures: 6 min 21 sec
  • test_tarfile: 5 min 16 sec
  • test_regrtest: 3 min 50 sec
  • test_venv: 3 min 23 sec
  • test_lzma: 3 min 21 sec
  • test_asyncio: 2 min 53 sec
  • test_pickle: 2 min 24 sec
  • test_lib2to3: 2 min 20 sec

1 test failed:
test_distutils

30 tests skipped:
test_curses test_dbm_gnu test_dbm_ndbm test_devpoll test_epoll
test_fcntl test_fork1 test_gdb test_grp test_ioctl test_kqueue
test_multiprocessing_fork test_multiprocessing_forkserver test_nis
test_openpty test_ossaudiodev test_pipes test_poll test_posix
test_pty test_pwd test_readline test_resource test_spwd
test_syslog test_threadsignals test_wait3 test_wait4
test_xxtestfuzz test_zipfile64

1 re-run test:
test_distutils

Total duration: 1 hour 6 min

Click to see traceback logs
Traceback (most recent call last):
  File "D:\cygwin\home\db3l\buildarea\3.8.bolen-windows7\build\lib\distutils\tests\test_build_ext.py", line 315, in test_unicode_module_names
    self.assertRegex(cmd.get_ext_filename(modules[0].name), r'foo\..*')
AssertionError: Regex didn't match: 'foo\\..*' not found in 'foo_d.cp38-win32.pyd'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants