We have moved to a new Sailfish OS Forum. Please start new discussions there.
4

python depends [answered]

asked 2020-01-02 19:34:21 +0200

Johan Smits gravatar image

I'm developing a app and I need to add some Python libs. What is the recommended way of adding them?

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by pawel
close date 2020-01-02 22:53:47.229684

1 Answer

Sort by » oldest newest most voted
4

answered 2020-01-02 22:39:41 +0200

Johan Smits gravatar image

Found the solution thanks to the IRC channel.

On the project.pro file add:

lib_files.files = lib
lib_files.path = /usr/share/$$TARGET

INSTALLS += lib_files

And in the rpm yaml:

# All installed files
Files:
  - '%{_bindir}'
  - '%{_datadir}/%{name}'
  - '%{_datadir}/%{name}/lib'
  - '%{_datadir}/applications/%{name}.desktop'
  - '%{_datadir}/icons/hicolor/*/apps/%{name}.png'
edit flag offensive delete publish link more

Question tools

Follow
3 followers

Stats

Asked: 2020-01-02 19:34:21 +0200

Seen: 186 times

Last updated: Jan 02 '20