-
Notifications
You must be signed in to change notification settings - Fork 66
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
Add support for AIX #241
Comments
Can you share the release file? |
As far as I know there is no release file on AIX. |
There must be something.. lsb.. something.. otherwise how would distro know that it's aix? |
It seems that this information was gathered from $ uname -rs
AIX 2 |
Hey @jokurz, would it be possible to read these version components from a file instead of calling |
@HorlogeSkynet - I am not aware of such a file. I would fully understand if you will not support AIX as the platform might not be the first choice for python development. |
@jokurz thanks for your fast feedback ! We'll do our best to support (and maintain) what |
@HorlogeSkynet, while I agree that a file would be nicer, I think that we can simply try to execute oslevel as a last resort (assuming nothing else is found, e.g. release file, uname, etc..). If that's the case, it won't cost anything, as oslevel will indeed only run when no other option is available (supposedly, only on AIX, AFAIK). WDYT? |
@nir0s Unless I'm missing something here, I don't think it would be that easy as |
Hehe, I'm the one missing something. I didn't read the previous comments. |
@nir0s @jokurz So it looks like we could be doing something like that in def version(self, pretty: bool = False, best: bool = False) -> str:
versions = [
# current existing candidates list...
]
if sys.platform.startswith('aix'):
versions.insert(0, check_output("oslevel")) @jokurz Homework chores if you don't mind :
Thanks, bye 👋 |
@HorlogeSkynet, sounds good. However, while I don't know AIX, it doesn't make sense to me that there isn't a file with that info. Does AIX have a magical way of storing this info that we can't read? |
Add support for AIX. Currently disto returns the following for a AIX 7.2:
Source could be cmd
oslevel
:7
--> major2
--> minorThe text was updated successfully, but these errors were encountered: