<div dir="ltr">That's awesome work, I look forward to trying it out.<div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div><br></div><div><br></div>Cheers,<div>Just</div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 17 Dec 2021 at 22:33, Maximilian Stein <<a href="mailto:m@steiny.biz">m@steiny.biz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi all,<br>
<br>
Today I am very pleased to announce the publication of pyfai [1], a <br>
Python package providing Pythonic wrappers for the most important <br>
commands in FAI customization scripts such as fcopy(8). More high-level <br>
abstractions, e.g. to install systemd units, are planned and will follow <br>
within the next months. The source code is available on Github [2] and <br>
extensive documentation is provided on Read the Docs [3].<br>
<br>
There are no official Debian packages yet (but planned). Until they <br>
become available, I would recommend stdeb [4] (Debian package <br>
python3-stdeb) to build a .deb package: `py2dsc-deb fai-0.1.0.tar.gz`<br>
<br>
My current integration in FAI installation and softupdate is based on <br>
the Debian package that I simply let install by install_packages(8). <br>
During softupdate this is already enough to actually `import fai` in <br>
Python customization scripts. During installation, however, Python needs <br>
to load the package from the target system (unless pyfai is installed in <br>
the installer system itself, too). Therefore, I set <br>
`PYTHONPATH="$target/usr/lib/python3/dist-packages"` in `class/INSTALL.var`.<br>
<br>
I am looking forward to your feedback/ideas/pull requests!<br>
<br>
Best,<br>
Maximilian<br>
<br>
<br>
[1]: <a href="https://pypi.org/project/fai/" rel="noreferrer" target="_blank">https://pypi.org/project/fai/</a><br>
<br>
[2]: <a href="https://github.com/st31ny/pyfai" rel="noreferrer" target="_blank">https://github.com/st31ny/pyfai</a><br>
<br>
[3]: <a href="https://fai.readthedocs.io/" rel="noreferrer" target="_blank">https://fai.readthedocs.io/</a><br>
<br>
[4]: <a href="https://pypi.org/project/stdeb/" rel="noreferrer" target="_blank">https://pypi.org/project/stdeb/</a><br>
<br>
</blockquote></div>

<br>
<p style="margin:0px;background-color:rgb(255,255,255)"><font face="Calibri, sans-serif" color="#aeaaaa"><span style="font-size:14.6667px">Notice: <br>This email is confidential and may contain copyright material of members of the Ocado Group. Opinions and views expressed in this message may not necessarily reflect the opinions and views of the members of the Ocado Group.<br><br>If you are not the intended recipient, please notify us immediately and delete all copies of this message. Please note that it is your responsibility to scan this message for viruses.<br><br>References to the "Ocado Group" are to Ocado Group plc (registered in England and Wales with number 7098618) and its subsidiary undertakings (as that expression is defined in the Companies Act 2006) from time to time. The registered office of Ocado Group plc is Buildings One & Two, Trident Place, Mosquito Way, Hatfield, Hertfordshire, AL10 9UL.</span></font></p>