🦋 Welcome to the MAIN() IRC channel of the Raku Programming Language (raku.org). Log available at irclogs.raku.org/raku/live.html . If you're a beginner, you can also check out the #raku-beginner channel!
Set by lizmat on 6 September 2022.
librasteve o/ 17:59
I am trying to install Inline::Python and get my Dockerfile sorted out - but hetting this error github.com/niner/Inline-Python/issues/46 18:00
at the bottom of the Issue I wrote There is no dir /home/jovyan/Inline-Python/resources at all which makes me suspect the "builder": "Distribution::Builder::MakeFromJSON" 18:01
maybe a zef expert (tonyo?) can take a look and advise?
[I suspect that this is the root cause of the github.com/niner/Inline-Python/issues/44 prior issue that has been open since 2022 18:02
]
tonyo what's the output of `make clean all` ? 18:13
you might have to run it as two commands, depending on your make eg `make clean && make`
librasteve make: *** No rule to make target 'clean'. Stop. 18:39
well I'm not running any build commands apart from zef install github.com/niner/Inline-Python.git --exclude="python3" --/test 18:41
I'm assuming that these are being run by Distribution::Builder::MakeFromJSON during the install 18:42
"resources" : [ "libraries/pyhelper" ], "source-url" : "git://github.com/niner/Inline-Python.git", "builder": "Distribution::Builder::MakeFromJSON", "build": { "makefile-variables": { "pyhelper": {"resource": "libraries/pyhelper"}, "cflags": { "run": [ "python3-config", "--cflags", 18:44
"--embed" ] }, "ldflags": { "run": [ "python3-config", "--ldflags", "--embed" ]}}}
sorry - must dash ... can continue on the Issue 46 maybe? 18:52
jdv wut is happenin? 18:59
antononcube @jdv "Offline::Python"... By @librasteve might figure out why... 19:23
jdv i meant the crazy paste in chan:) 20:58
jdv and fyi @nick does nothing for my irc client. 20:58
who runs the bridge? 20:59
jdv good riddance 20:59
who runs the bridge?
jdv whatever. i see its a shit show. 21:00
jdv "shut it down" 21:00
jdv i liked Dark City 21:00
jdv lizmat: who runs this chan? 21:03
Xliff lizmat: You around? 22:21
Or anyone with a Mac who has distributed a shared lib with their Raku modules before... 22:22
guifa Xliff: I have 22:23
github.com/alabamenhu/UserLanguage/ 22:25
Xliff guifa: I need to compile a shared lib for the tests of my Pango module. 22:35
github.com/Xliff/p6-Pango
You can find the source code in the t/ library.
What would be the best way to set that up to build for both PC and Mac
?
guifa: Thanks in advance, btw -- this will be a big help! :) 22:36
guifa looks like the scripts folder is a symbolic link so I can't follow fully what's there. In my case, I prebuild (since not all Mac users have a c compiler, although I imagine most Raku users do) and link to the library as a resource 22:38
so I guess I was installing it more as an internal native, rather than a shared
Xliff Yeah. scripts/ won't be a part of the distro. That's where my build-tools go 22:39
OK, so you are suggesting I have a prebuilt .dyllib?
And it has to be shared because the test uses NativeCall 22:40
guifa For the Mac it seems to work okay for simple stuff -- if there's more than a single binary might be trickier?
NativeCall can call something in %?RESOURCES
Xliff Yep. 22:41
guifa github.com/alabamenhu/UserLanguage...akumod#L30
Xliff Cool
guifa I believe however on the newer versions there's one more step -- lizmat made a library for it
not sure if this technique triggers it though 22:42
Xliff It's a start though. Thanks!
guifa I would imagine, however, that doing it in a build script would work much the same -- you could detect you're on a Mac, compile and install to some location, and then generate a value to be read in as a BEGIN statement 22:44
the latter bit may be overkill but I use it in one of my other modules
github.com/alabamenhu/TimezonesZon.../Build.pm6 this detects two values, writes them to a resources file, which are then read into the main script on precompile: github.com/alabamenhu/TimezonesZon...akumod#L57 22:46