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

Install rpm-python from PyPI #273

Closed
tkdchen opened this issue Jul 23, 2017 · 7 comments
Closed

Install rpm-python from PyPI #273

tkdchen opened this issue Jul 23, 2017 · 7 comments

Comments

@tkdchen
Copy link

tkdchen commented Jul 23, 2017

It would be nice to install rpm-python from PyPI, or at least, it can be installed via pip git+https.

@ignatenkobrain
Copy link
Contributor

personally I'm kinda reluctant for native extensions for Python being in PyPI...

@ignatenkobrain
Copy link
Contributor

why do you need it in that way?

@tkdchen
Copy link
Author

tkdchen commented Jul 23, 2017

It's for rpkg. Both running tests just in one command, for example, tox and provision dev env with pip requirement file can benefit.

For the case of running tests, currently developer has to install either python2-rpm or python3-rpm via dnf manually and then run tox to create virtual environments with --sitepackages (whatever specify in command line or in tox.ini). This can be simplified by this issue I think.

@tkdchen tkdchen changed the title Installable from PyPI Install rpm-python from PyPI Jul 23, 2017
@Conan-Kudo
Copy link
Member

The Python bindings are basically bound to rpm, so it doesn't make a lot of sense to upload to PyPI.

@junaruga
Copy link
Contributor

junaruga commented Jul 24, 2017

I would share a case I want you to upload the the rpm Python bindings to PyPI.

A python package rebase-helper [1] depends on the rpm Python bindings.
For this reason, rebase-helper can not add install_requires to setup.py file.

If we want to install rebase-helper from source, I am happy if we can install it by only

$ pip install rebase-helper

[1] https://github.com/rebase-helper/rebase-helper

@pmatilai
Copy link
Member

pmatilai commented Aug 9, 2017

As already noted, the bindings are closely bound to rpm and a particular version of it. Sorry but no.

@pmatilai pmatilai closed this as completed Aug 9, 2017
@junaruga
Copy link
Contributor

junaruga commented Sep 8, 2017

@tkdchen and guys.
Let me announce.

I developed a installer to install rpm-python or rpm (same version with system RPM) on non-system Python.
People can install rpm-python by installing rpm-py-installer from PyPI.

https://pypi.python.org/pypi/rpm-py-installer
https://github.com/junaruga/rpm-py-installer

$ pip install rpm-py-installer

Or add rpm-py-installer to setup.py install_requires.

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

No branches or pull requests

5 participants