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

fixes for building via setup.py on aarch64 #135

Merged
merged 1 commit into from
Dec 17, 2017

Conversation

itdaniher
Copy link
Contributor

Cpuinfo.py didn't check for "None\n" which is the result of print(actual_get_cpu_info_from_cpuid()) on at least this aarch64 platform.

Rest of the fixes should be pretty readily apparent.

Cheers!

Copy link
Member

@FrancescAlted FrancescAlted left a comment

Choose a reason for hiding this comment

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

Looks good to me. Just address the space indentation and I'll merge this.

@@ -941,7 +941,7 @@ def get_cpu_info_from_cpuid():
'''

returncode, output = run_and_get_stdout([sys.executable, "-c", "import cpuinfo; print(cpuinfo.actual_get_cpu_info_from_cpuid())"])
if returncode != 0:
if (returncode != 0) or (output.strip() == 'None'):
return None
Copy link
Member

Choose a reason for hiding this comment

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

The standard indentation size in Python is 4 spaces

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm pretty confused by your request. Your cpuinfo.py uses tabs, not spaces for indentation, and as little as I like it, I kept with the existing style. The line in question is indented with a single tab character, as the original line was before I made my edits.

$ head -n 944 cpuinfo.py|tail -n 1 | xxd
00000000: 0969 6620 2872 6574 7572 6e63 6f64 6520  .if (returncode
00000010: 213d 2030 2920 6f72 2028 6f75 7470 7574  != 0) or (output
00000020: 2e73 7472 6970 2829 203d 3d20 274e 6f6e  .strip() == 'Non
00000030: 6527 293a 0a                             e'):.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

autopep8 -i cpuinfo.py completed successfully, I'm happy to push the resulting tab-free file if you'd like.

Copy link
Member

Choose a reason for hiding this comment

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

Oh, I was not aware that cpuinfo.py was using tabs instead of spaces. Never mind, in order to not change too much, I'll merge as is. Thanks!

@FrancescAlted FrancescAlted merged commit 93313f9 into Blosc:master Dec 17, 2017
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.

None yet

2 participants