• Changing hatchling shared-data installation directory: /usr/etc -> /etc

    From Julian Gilbey@21:1/5 to All on Sun Mar 24 23:10:01 2024
    I'm trying to package jupyter-server-terminals, and have hit a snag.
    The pyproject.toml file includes the lines:

    [tool.hatch.build.targets.wheel.shared-data]
    "jupyter-config" = "etc/jupyter/jupyter_server_config.d"

    but the resulting file is installed at
    /usr/etc/jupyter/jupyter_server_config.d

    Now, I can obviously move this to its correct location in debian/rules
    (either directly or using an appropriate dh-recognised file in
    debian/), but I wonder whether there is a "better" way to do this. Is
    there a way to tell hatchling that shared-data should be installed in
    / rather than in /usr? Or if I tell hatchling to use / as the base
    directory, would that mess everything else up?

    I couldn't figure it out from a quick skim of the hatchling docs, so
    any thoughts or pointers would be welcome.

    Thanks!

    Julian

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Timo =?utf-8?Q?R=C3=B6hling?=@21:1/5 to All on Sun Mar 24 23:30:01 2024
    Hi Julian,

    * Julian Gilbey <julian@d-and-j.net> [2024-03-24 22:00]:
    Now, I can obviously move this to its correct location in
    debian/rules (either directly or using an appropriate dh-recognised
    file in debian/), but I wonder whether there is a "better" way to
    do this. Is there a way to tell hatchling that shared-data should
    be installed in / rather than in /usr? Or if I tell hatchling to
    use / as the base directory, would that mess everything else up?
    I know that both CMake and Meson special-case sysconfdir to point to
    /etc instead of $prefix/etc when installing to /usr. Hatchling
    should follow their lead.


    Cheers
    Timo


    --
    ⢀⣴⠾⠻⢶⣦⠀ ╭────────────────────────────────────────────────────╮
    ⣾⠁⢠⠒⠀⣿⡁ │ Timo Röhling │
    ⢿⡄⠘⠷⠚⠋⠀ │ 9B03 EBB9 8300 DF97 C2B1 23BF CC8C 6BDD 1403 F4CA │
    ⠈⠳⣄⠀⠀⠀⠀ ╰────────────────────────────────────────────────────╯

    -----BEGIN PGP SIGNATURE-----

    iQGzBAEBCgAdFiEEJvtDgpxjkjCIVtam+C8H+466LVkFAmYAp08ACgkQ+C8H+466 LVmcKQwAyGtMf0j5KwVsrL1cjV5ZgIMiAwQUpuOf/uc79X3W7AwqCqnHxuj/kg7i naRnO9kzyNiSG0Wgov8S/VTbV9ihn+b8hiRyKT8H5niH5VsxLwWYCcvZMyJo2YMV HaUl8/cIy715my/Kd/60bKFgZqVQdGwpawEJsLOnddP8QQD6kOBR72YgUyjE/Cxq g4FSPlN6vnTDJOmrwglYIKSOa/UGZJ4ud9fDAAkJ1Td8J5D1xcboq2zt+rLth5s8 TvE7vEN34Y/JqhZHqVq3dIL9hvE1/jP8jWPxqxzk8XX5Zmex79cvQmBTOBZWDzNo ODK5cRI9n89oM/VQkK8dF1dnSS9jb58N1F1OMDtG3U+