Python Forum
Generate RPM package from a Python + Kivy application for an "offline" installation
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Generate RPM package from a Python + Kivy application for an "offline" installation
#1
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
Reply
#2
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.
Reply
#3
(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 !
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  MPEG DASH Package implementation similar to M3U8 package anantha_narayanan 0 547 Feb-06-2025, 03:55 AM
Last Post: anantha_narayanan
  White Screen Issue with Toolbar After Python Installation evelynfreya 2 992 Nov-25-2024, 06:26 PM
Last Post: deanhystad
  Install a module to a specific to Python Installation (one of many)) tester_V 2 1,798 Oct-29-2024, 03:25 PM
Last Post: snippsat
  Shrink Python installation? Extract site-packages from .zip only on demand? pstein 4 1,459 Oct-28-2024, 04:29 PM
Last Post: snippsat
  Troubleshooting Jupyter Notebook installation with Python using pip and a venv Drone4four 1 1,993 Jun-04-2024, 10:55 PM
Last Post: Drone4four
  How to run utilities from a Python package? LugosisGhost 1 1,173 Dec-27-2023, 12:00 PM
Last Post: Larz60+
  Python installation for old MacOS Yonix 1 1,051 Sep-21-2023, 03:32 PM
Last Post: menator01
  Help with Python Script to generate SVG Dot Matrix Pattern for LED Light Guide iamrickm 2 1,726 Aug-25-2023, 06:07 PM
Last Post: iamrickm
  Installation of packages to newest Python version from previous one Andrzej_Andrzej 3 4,254 Jul-15-2023, 11:32 AM
Last Post: snippsat
  Error when running kivy on python janeik 8 5,332 Jun-16-2023, 10:58 PM
Last Post: janeik

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020