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
bpo-36849: Improve libcurses detection on HP-UX #13184
base: main
Are you sure you want to change the base?
Conversation
libcurses on HP-UX is a symlink to libxcurses. Handle that properly in setup.py.
The code changes look reasonable at a shallow level. It may be worth considering adding an explanatory comment to the code about |
Do you think that the commit message paired with blame isn't enough? I see no harm here because all previous cases are retained. |
@michael-o The problem is that none of us uses
So yes, some comment why |
I do use
So it is either Does this suffice? |
Well yes, the explanation is good and the patch looks OK. I'm still hesitating to commit because HP-UX is not officially supported (https://pythondev.readthedocs.io/platforms.html) and if something breaks (unexpected but always possible) there's additional work again. So I guess I'm also unassigning myself. |
@skrah Pity, I have other patches in the pipeline and want contribute more for HP-UX, but if no one is willing to bless my PRs that's going to be hard. Note that I have also patched GNU readline (Bash) and that has been happily absorbed by the community. As far as I know only commercial UNIX uses |
My inclination would be to commit it. Rationale:
So I think this is actually pretty low-risk. |
FYI, on AIX the curses library is also xcurses:
|
Because it is a commercial UNIX.... |
I'm not disagreeing with you. My comment was in regard to this:
My point was that since libcurses is libxcurses on AIX already, if anything this should help AIX. I believe the reason AIX doesn't already run in to this issue is because the code is trying to use |
Doesn't this mean that one can completely drop the AIX handling which should now be covered by my change? |
No. As I stated, the code you changed is not even run on AIX, since |
libcurses on HP-UX is a symlink to libxcurses. Handle that properly in setup.py.
https://bugs.python.org/issue36849