Skip to content

Final PR to remove last vestiges of pywin32 from SCons. - #3810

Merged
bdbaddog merged 10 commits into
SCons:masterfrom
bdbaddog:remove_pywin32_from_platform_win32
Oct 4, 2020
Merged

bdbaddog merged 10 commits into
SCons:masterfrom
bdbaddog:remove_pywin32_from_platform_win32

Conversation

@bdbaddog

@bdbaddog bdbaddog commented Oct 4, 2020 •

Copy link
Copy Markdown
Contributor

Remove pywin32 from scons win32 install requirements. Remove usage from SCons.Script.main

Fixes #2291

Contributor Checklist:

  • I have created a new test or updated the unit tests to cover the new/changed functionality.
  • I have updated CHANGES.txt (and read the README.rst)
  • I have updated the appropriate documentation

Comment thread SCons/Script/Main.py
if sys.platform == 'win32':
msg = fetch_win32_parallel_msg()
elif jobs.num_jobs == 1 or not python_has_threads:
if jobs.num_jobs == 1 or not python_has_threads:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This check doesn't make sense... we're already inside a block which is if num_jobs > 1 so the first part can't be true in any case, and if it were, it's not when we'd want to generate the warning. Further, if we're actually ignoring -j, shouldn't we set num_jobs down to one to make that true?

@bdbaddog bdbaddog Oct 4, 2020 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

num_jobs comes from -j, but jobs.num_jobs comes from SCons.Job.Jobs which can be one, if
self.job = Parallel(taskmaster, num, stack_size)
Throws an exception.

@bdbaddog
bdbaddog merged commit 279359e into SCons:master Oct 4, 2020
@bdbaddog
bdbaddog deleted the remove_pywin32_from_platform_win32 branch October 4, 2020 22:42
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.

Remove pywin32 dependency in favour of ctypes

2 participants