Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Py3k libraries path fix (issue #41) #60

Merged
merged 1 commit into from
Mar 5, 2013
Merged

Py3k libraries path fix (issue #41) #60

merged 1 commit into from
Mar 5, 2013

Conversation

Sapphire64
Copy link
Contributor

No description provided.

if platform.processor() == "x86_64":
platform_ = platform.processor()
if not platform_:
platform_ = platform.architecture()[0]
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not just do this always?

Copy link
Contributor

Choose a reason for hiding this comment

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

The python docs warn of use of platform.architecture()[0] being unreliable in some cases and that sys.maxsize is better. Something like:

arch_bits = int(math.log(sys.maxsize, 2) + 1)

might be a more cross platform way of getting the architecture's bit size.

HTH

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is not so cross-platform part of the code, it is Linux-only. Why I'm leaving platform.processor() requests is because most of the people are not facing this issue (or I am wrong and we have many people discussing my bugreport?), so I left default implementation and when it fails - I'm trying different approach.

Copy link
Contributor

Choose a reason for hiding this comment

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

or I am wrong and we have many people discussing my bugreport

Sorry, no - I was doing a bit of github surfing and saw this. I don't have any specific perspective on this, I just spotted it and thought I would comment 😄 - on reflection I don't think my comments are that useful - sorry for the noise.

Cheers,

aclark4life added a commit that referenced this pull request Mar 5, 2013
Py3k libraries path fix (issue #41)
@aclark4life aclark4life merged commit 7866759 into python-pillow:master Mar 5, 2013
@aclark4life
Copy link
Member

Thanks

homm added a commit that referenced this pull request Dec 25, 2019
nulano pushed a commit to nulano/Pillow that referenced this pull request Sep 23, 2020
Mergify test - Add all successful report jobs for GHA
radarhere pushed a commit to radarhere/Pillow that referenced this pull request Sep 24, 2023
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.

3 participants