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
[WIP] cephadm: add setup.py file for pip install #32662
Conversation
Signed-off-by: Daniel-Pivonka <dpivonka@redhat.com>
platforms='Linux', | ||
packages=setuptools.find_packages(), | ||
classifiers=[ | ||
"Programming Language :: Python :: 3", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cephadm is deliberately written so it's compatible to python2 and python3. better off putting
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
here.
Relates to #32526. Problem here is, just adding a setup.py doesn't really solve anything:
|
yeah, after a second thought. |
Actually, I do think distributing via pip has many advantages that we should leverage, but we have to make it right and be sure to have answers for those questions. e.g. Like doing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you add a proper commit message. e.g. why do we want this change?
My opinion/answers about the @sebastian-philipp questions:
Upstream: why not PyPi? The thing i would love to do would be to use only PyPi.... (no rpms)
I think that using PyPi has advantages, for example, we can control the version provided and when it is updated the pacjkage in the index. A link to one file in one repository can have unexpected consequences. (the same unexpected consequences as if you install something contained in a file in some place in some repo using a curl command)
In upstream, if we use PyPi we do not need to transfer nothing.
Not understand very well. After cephadm is installed... what prevents you to execute commands remotely using ssh ?
I think that this is a downstream issue: It will depend basically of what things we "put" into cephadm, and the way to build the cephadm rpm. Do we want to have an rpm distribution now? maybe this should be part of another PR.
Sorry , new with cephadm , and the only thing i have seen is an unique python file...probably missing something... do we need this integration?
I think that we should build an RPM only for "cephadm" with the required dependencies. The RPM used in Suse and RedHat is going to be the same? |
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
Daniel, can you rebase this? |
closing as this is not the solution to the problem. it may be part of it but it will need to be revisited in the future |
add setup.py file for pip install of cephadm
Signed-off-by: Daniel-Pivonka dpivonka@redhat.com