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
  How to run utilities from a Python package? LugosisGhost 1 388 Dec-27-2023, 12:00 PM
Last Post: Larz60+
  Python installation for old MacOS Yonix 1 456 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 708 Aug-25-2023, 06:07 PM
Last Post: iamrickm
  How do I properly implement restarting a multithreaded python application? MrFentazis 1 587 Jul-17-2023, 09:10 PM
Last Post: JamesSmith
  Installation of packages to newest Python version from previous one Andrzej_Andrzej 3 779 Jul-15-2023, 11:32 AM
Last Post: snippsat
  Error when running kivy on python janeik 8 1,922 Jun-16-2023, 10:58 PM
Last Post: janeik
  How to see the date of installation of python modules. newbieAuggie2019 4 1,464 Mar-31-2023, 12:40 PM
Last Post: newbieAuggie2019
  Getting "SSL client not supported by this Python installation" error prabirsarkar 0 914 Mar-13-2023, 05:01 PM
Last Post: prabirsarkar
  Python package not seen in VSCode fmccabe80 6 3,080 Mar-06-2023, 10:01 PM
Last Post: fmccabe80
  python installation/running inside singularity container erdemath 2 1,689 Sep-21-2022, 08:13 AM
Last Post: erdemath

Forum Jump:

User Panel Messages

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