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

Get rid of the realdisplaysizemm C-Extension #444

Merged
merged 34 commits into from
Oct 23, 2024

Conversation

eoyilmaz
Copy link
Owner

Got rid of the C-Extension. Tested on MacOS, where it is working fine. Need more tests for other OSes before we merge this. Creating the PR just to start running the builds on GitHub.

…DisplaySizeMM` module. This needs a redesign and better implementation. But is a good proof of concept.
…w uses regular expressions to extract the data.
…to extract EDID data.

- [#16] Fixed `DisplayCAL.RealDisplaySizeMM.Display.from_dispwin_data()` to expect and use `bytes` data instead of `str`.
- [#16] Updated `DisplayCAL.RealDisplaySizeMM.get_dispwin_output()` to return `bytes` instead of `str` to match the rest of the application.
@eoyilmaz eoyilmaz linked an issue Oct 21, 2024 that may be closed by this pull request
… `-d0` argument in `DisplayCAL.RealDisplaySizeMM`.
… to get the `xrandr` executable path under Linux.
…` and `DisplayCAL.RealDisplaySizeMM._enumerate_displays()` for ArgyllCMS<3.3.0 style output.
p5k369
p5k369 previously approved these changes Oct 22, 2024
Copy link
Collaborator

@p5k369 p5k369 left a comment

Choose a reason for hiding this comment

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

Tested and runs on linux.

@eoyilmaz
Copy link
Owner Author

eoyilmaz commented Oct 22, 2024

Tested and runs on linux.

Seems to be running fine under Windows too, and although you reported it is running fine under Linux, I'll be testing it in Fedora too, just for fun 😄

@eoyilmaz
Copy link
Owner Author

The only issue I seem to find is that the wheel name is DisplayCAL-3.9.14-py3-none-any.whl instead of DisplayCAL-3.9.14-py3-cp311-cp311-any.whl I wonder if this is intentional as we don't have a C-Extension anymore?

@p5k369
Copy link
Collaborator

p5k369 commented Oct 22, 2024

That just indicates that the wheels isn't cpython specific anymore.

@eoyilmaz eoyilmaz merged commit af9d0eb into develop Oct 23, 2024
13 checks passed
@eoyilmaz eoyilmaz deleted the 16-get-rid-of-realdisplaysizemm-c-extension branch October 23, 2024 00:13
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.

Get rid of RealDisplaySizeMM C-Extension
2 participants