[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Environment variable for package base dir



$CURDIR? 

G. 

Sent from Yahoo Mail on Android

On Thu, Aug 11, 2022 at 23:21, Ole Streicher
<olebole@debian.org> wrote:
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


Reply to: