GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — bpo-32592: Remove Vista code from os.cpu_count() by vstinner · Pull Request #11457 · python/cpython

Conversation

@vstinner

@vstinner vstinner commented Jan 7, 2019 •
edited by bedevere-bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Remove code specific to Windows Vista from os.cpu_count(): Python
requires Windows 7 or newer.

https://bugs.python.org/issue32592

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@vstinner
bpo-32592: Remove Vista code from os.cpu_count()
8fa7f24
Remove code specific to Windows Vista from os.cpu_count(): Python
requires Windows 7 or newer.
@vstinner
vstinner requested review from a team, zooba and zware January 7, 2019 14:59
@the-knights-who-say-ni the-knights-who-say-ni added the CLA signed label Jan 7, 2019
@bedevere-bot bedevere-bot added the awaiting merge label Jan 7, 2019
@vstinner

vstinner commented Jan 7, 2019

Copy link
Copy Markdown
Member Author

Ah. Compilation failed on "Windows PR Tests win32" of Azure Pipelines PR:

2019-01-07T15:02:40.9331567Z d:\a\1\s\modules\posixmodule.c(11823): warning C4013: 'GetMaximumProcessorCount' undefined; assuming extern returning int [D:\a\1\s\PCbuild\pythoncore.vcxproj]

... but it pass on "Windows PR Tests win64".

Extract of pythoninfo on "Windows PR Tests win32" from a different PR:

  • platform.architecture: 32bit WindowsPE
  • platform.platform: Windows-10-10.0.14393-SP0
  • sys.version: 3.8.0a0 (remotes/pull/11455/merge:a07376fda, Jan 7 2019, 09:34:24) [MSC v.1915 32 bit (Intel)]
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@zooba

zooba commented Jan 8, 2019

Copy link
Copy Markdown
Member

That is a very strange error to get... I can't think of any reason other than a corrupt incremental build, but we don't do incremental builds here.

Perhaps the rebuild when you add a NEWS entry will work?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@vstinner

vstinner commented Jan 8, 2019

Copy link
Copy Markdown
Member Author

On IRC, @zware told me:

Looks like you need to set Py_WINVER to 0x0601 in PC/pyconfig.h

It tried to avoid puting this change in this PR to get a PR as small as possible, but it seems like it's not enough.

Note: I already failed to understand such failure in the past: https://bugs.python.org/issue32592#msg318103 Windows is still full of mystery for me :-)

zooba reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

eamanu
eamanu approved these changes Jan 8, 2019
View reviewed changes
@bedevere-bot bedevere-bot added awaiting core review and removed awaiting merge labels Jan 8, 2019
auvipy
auvipy approved these changes Jan 9, 2019
View reviewed changes
@zooba

zooba commented Jan 9, 2019

Copy link
Copy Markdown
Member

@vstinner Zachary is correct. You'll need to get that first change in before any of the rest will succeed reliably.

I'm okay with reviewing all of the changes together if it's simpler for you to do one PR. But the WINVER update is the critical part.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@vstinner

vstinner commented Mar 15, 2019

Copy link
Copy Markdown
Member Author

I don't understand how to remove Vista support. I give up on this PR. If someone else is interested, please go ahead and write a new PR :-)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@vstinner vstinner closed this Mar 15, 2019
@vstinner
vstinner deleted the cpu_count_vista branch March 15, 2019 09:54
@vstinner vstinner mentioned this pull request May 10, 2022
Drop support of Windows Vista and Windows 7 #76773
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@zooba zooba Awaiting requested review from zooba
@zware zware Awaiting requested review from zware
2 more reviewers
@auvipy auvipy auvipy approved these changes
@eamanu eamanu eamanu approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

awaiting core review

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

6 participants

@vstinner @zooba @auvipy @eamanu @the-knights-who-say-ni @bedevere-bot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.