• Environment variable for package base dir

    From Ole Streicher@21:1/5 to All on Thu Aug 11 23:30:01 2022
    Hi,

    one of my packages

    https://salsa.debian.org/debian-astro-team/sep

    requires to specify a path relative to the package base dir (the path to
    a shared library), which is important for build and for testing. I,
    Python, it is specified in setup.py.

    I solved this the following way:

    d/rules:
    export BUILD_ROOT=$(shell pwd)

    setup.py (patched):
    buildroot = os.environ.get('BUILD_ROOT', '.')

    This works nicely locally (cowbuilder) and in Salsa. However, on the
    buildds, the build root is set empty and the build fails.

    What is the normal way to get the package build root?

    Best

    Ole

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ole Streicher@21:1/5 to Gianfranco Costamagna on Sun Aug 14 14:00:01 2022
    Gianfranco Costamagna <locutusofborg@debian.org> writes:
    $CURDIR?

    Yes, is what I also finally found to be working.

    Cheers

    Ole

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)