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

Improve error message on non Win #3

Merged
merged 3 commits into from
May 5, 2023

Conversation

CristiFati
Copy link
Contributor

@CristiFati CristiFati commented Dec 27, 2022

This is only supposed to be run on Win, but it can end up on other platforms. Also the error message can be confusing for some users, as shown in [SO]: I can't use WConio2 on python.

There was another package with the same problem, I submitted [GitHub]: Prevent .whl installation (OOTB) on non Win, but it wasn't OK. I then submitted another PR where I inspired this one from.

Note: I also mentioned WConio2 in [SO]: Install win32com on MacOs and Linux (@CristiFati's answer).

On another (completely unrelated) topic, this module is full of Undefined Behaviors, and I wonder how come there aren't lots of bug reports. Check [SO]: C function called from Python via ctypes returns incorrect value (@CristiFati's answer) for more details.

@CristiFati CristiFati changed the title Cfati dev00 Improve error message on non Win Dec 27, 2022
@Solomoriah
Copy link
Owner

My assumption is that there are not a lot of complaints about the undefined behavior (or any other issues) due to the lack of users. It's not a popular module. However, I will review this.

Copy link
Owner

@Solomoriah Solomoriah 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. Accepted.

@Solomoriah Solomoriah merged commit ec8a2b2 into Solomoriah:master May 5, 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.

2 participants