>dim. 20 avril 2025 at 12:22, Cayetano Santos <csant...@inventati.org> wrote:
>>jeu. 17 avril 2025 at 15:28, Aristide Doussot <aristide.dous...@obspm.fr> >>wrote: > >> Hello, >> >> I am new to Guix and want to create a guix package for the free machine >> learning >> framework CIANNA. It has little dependencies (openblas mainly), is written >> in C and has a >> python wrapper. The basic installation method is to download the source code >> then run the >> compile.cp file inside that will handle both the C compilation and run >> python_module_setup.py. I naively picked "copy-build-system" as my build >> system and >> manually inserted a phase after 'install' that run compile.cp with the >> according flags and >> paths toward the guix versions of the dependencies. It worked and I am able >> to run CIANNA >> in a guix shell with its package and python3 but ONLY if I manually append >> the path to >> CIANNA library at the begining of my python code, otherwise "import CIANNA" >> return a >> library not found error. I know that when I run a guix shell with python and >> python-xyz, >> the environment is setup so that for example numpy is found automatically >> without having >> to manually find and append its path at the begining of each python code. My >> question is >> therefore the following : how can I have my CIANNA package automatically >> found by python >> when creating the environment without having to append its path everytime ? >> Should I >> change the build-system ? >> >> Below is a copy of my current implementation. As I am a beginer I gladly >> welcome any >> advices (even unrelated to my question) > > What about this (WIP) ? > > https://paste.sr.ht/blob/c03280f068ceccfc40a8c8462732812d3ac964b7 Improved version, includes both main binary and python package system-wide: https://paste.sr.ht/blob/fab1b8a5ab3795b4f27405e9aca04dcdf6ec3437 Rather put this code in GUIX/gnu/packages/astronomy. C.
signature.asc
Description: PGP signature