attah | How can i convince the build system to ship a whole sub-directory as resources in an app? | 17:12 |
---|---|---|
attah | Should i be kicking at OTHER_FILES, or go to the RPM spec? | 17:13 |
Thaodan | attah: QMAKE? you use a subdir template and then have individual parts for code and data | 17:21 |
Thaodan | See here in communi for example: https://github.com/communi/communi-sailfish/blob/master/harbour-communi.pro | 17:21 |
Thaodan | https://github.com/communi/communi-sailfish/blob/master/data/data.pro | 17:21 |
attah | This is pip3-installed deps for pyotherside... probably free to choose build system | 17:22 |
Thaodan | https://github.com/communi/communi-sailfish/pull/172 | 17:22 |
Thaodan | Ah pyotherside.. I guess you also use qmake? Pythonside are less pythonic usually I think. | 17:23 |
attah | I have yet to actually add code... assembling pieces and trying things | 17:24 |
attah | Thinking packaging is hardest, the rest i have done before more or less | 17:24 |
attah | so i basically just want a directory "deps" somewhere near my QML, and sys.path.append() it from my bridging module | 17:25 |
attah | and it has like a gazillion files and probably will change in the future | 17:26 |
Thaodan | I'd probably use some virtualenv to gather every dependency that sailfishos doesn't provide | 17:28 |
Thaodan | Either via requirements.txt or git submodules | 17:28 |
Thaodan | submodules are easier for building thou. | 17:28 |
attah | I have figured out how to pip3-install to a directory all i need | 17:31 |
attah | Step 1 is just to get my rpm to actually contain it | 17:31 |
attah | Future improvement is to get the architecture right.. some parts i don't use yet have architecture dependencies | 17:32 |
attah | Is there any chance of using pip in the build engine? And what shell should i be barking up? build-shell? | 18:30 |
attah | sfdk tools package-install SailfishOS-4.4.0.58-aarch64.default python3-pip | 18:38 |
attah | \o/ | 18:38 |
attah | and it cross-compiles like it should, jaay | 18:39 |
Thaodan | attah: If pip is used during build at it as buildrequires | 18:56 |
attah | if only i knew how to use it at build time :) | 18:57 |
Thaodan | in the %build section or your build system. | 18:58 |
Thaodan | But if it connects to the internet to download data you can't really. | 18:58 |
attah | why not? | 18:58 |
Thaodan | I mean you can if the builder has internet connection but the build env is less reproduceable e.g. if the out of the sources changes | 19:00 |
Thaodan | That's why I said git submodules as those can be downloaded before the build and the commit state of the submodule is commit to the log. | 19:01 |
attah | Yes, still trying to figure out what i want in that regard - preliminary first version is to prep all 3 architectures and then put that in the rpm | 19:01 |
attah | Not super keen on version-controlling compiled stuff.. but maybe i should | 19:01 |
Thaodan | You mean a per $arch folder into the the rpm? | 19:02 |
Thaodan | Cross compilling stuff with pip is pita.. | 19:02 |
Thaodan | language sorry | 19:02 |
attah | correstponding deps_$arch folder renamed to jsut deps in the rpm | 19:02 |
attah | sfdk sorted my cross-compilation just fine :) | 19:03 |
Thaodan | yeah sb2 does that quite good | 19:03 |
Thaodan | You could add each dependency as a submodule and then call pip with those sources during build | 19:04 |
attah | fair... but for what is little more than a fart-app i an not so sure it is worth it | 19:05 |
attah | (online media url-scraper thingy for getting streams to play) | 19:05 |
attah | Like it's nice to have, but doesn't need to be professional | 19:06 |
attah | i'll also look in to pip version pinning... might be a thing | 19:06 |
piggz | flypig: Thaodan: amazfish is ported away from qt-connectivity-bluetooth ... what is the eta for 4.5 in terms of weeks or months, i know u dont know exactly | 19:23 |
Thaodan | I'm not equipped to say that. | 19:24 |
Thaodan | Can you use kf5bluez also in 4.4.x? | 19:25 |
piggz | Thaodan: yes, im now using kf5bluezqt | 19:47 |
piggz | just wondered if i should release on add other things | 19:48 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!