Python Forum
Generate RPM package from a Python + Kivy application for an "offline" installation - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Generate RPM package from a Python + Kivy application for an "offline" installation (/thread-27356.html)



Generate RPM package from a Python + Kivy application for an "offline" installation - pruvosim - Jun-04-2020

Hello everyone !

I'll try to explain the subject the best I can, I'm not an expert Confused

Basically I'm a .Net developper and pretty confident on Windows, but following some big changes in my company, I need to port some of my applications to CentOS.

So yeah I've started working from scratch with Python and Kivy for the UI, and everything is great !

The only annoying point for me is that the integration team ask for a "Full" RPM package. Let's say the RPM should contain everything needed to run the application, from the application files to the dependencies like Kivy... The reason is that the computers using it does not have a free access to the internet to download the modules.
And this is basically where I'm beginning to get stuck.

I'm able to generate a RPM package with a setup.py and the command
python3 setup.py bdist_rpm
but it does not include Kivy even if I put :

install_requires=[
    'kivy',
],
I've tried to look at some ways to download the modules in a folder with pip or wagon but it's not working (for wagon I think it's because there is no Wheels for Kivy).

And then I'm trying to figure out if
  • It's possible ?
  • Someone already tried to do that ?
  • I need to work differently ?

If you need any more information, tell me !

Thank you Smile


RE: Generate RPM package from a Python + Kivy application for an "offline" installation - Larz60+ - Jun-04-2020

you can find rpm packages here: https://pypi.org/search/?q=rpm&o=
I haven't used any of these, so you'll have to try a few to see if they do what you need.


RE: Generate RPM package from a Python + Kivy application for an "offline" installation - pruvosim - Jun-04-2020

(Jun-04-2020, 11:26 AM)Larz60+ Wrote: you can find rpm packages here: https://pypi.org/search/?q=rpm&o=
I haven't used any of these, so you'll have to try a few to see if they do what you need.

Thank you ! I'm gonna have a look Smile

Also, it seems like I was doing it wrong to download module with pip. It's possible to use the -b option to download and build the module in a folder.

Gonna keep you updated !