Skip to content

Commit af4118a

Browse files
authored
Merge pull request #1139 from grondo/debbuild-python-fix
debbuild: fix Python purelib paths on Debian systems
2 parents 7b1a79f + 7fe0c28 commit af4118a

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

scripts/debbuild.sh

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,19 @@ DEBFULLNAME=$USER
55
EMAIL=$(git config --get user.email)
66
DEBEMAIL=$EMAIL
77

8+
# On Debian based systems, the system Python is installed using a
9+
# 'posix_local' scheme, which causes sysconfig to return /usr/local
10+
# paths even if prefix=/usr. We want to ensure that Fluxion Python
11+
# modules are installed to the same base as flux-core, so set the
12+
# the environment variable DEB_PYTHON_INSTALL_LAYOUT=deb as described
13+
# at https://gitlab.kitware.com/cmake/cmake/-/issues/25113.
14+
#
15+
# There is probably a more correct way to do this, but since these
16+
# packages are currently just meant for testing, we do it this way
17+
# for now:
18+
DEB_PYTHON_INSTALL_LAYOUT=deb
19+
20+
821
SRCDIR=${1:-$(pwd)}
922

1023
die() { echo "debbuild: $@" >&2; exit 1; }
@@ -32,7 +45,7 @@ log "Creating debian directory and files"
3245
cd ${PACKAGE}-${version}
3346
cp -a ${SRCDIR}/debian . || die "failed to copy debian dir"
3447

35-
export DEBEMAIL DEBFULLNAME
48+
export DEBEMAIL DEBFULLNAME DEB_PYTHON_INSTALL_LAYOUT
3649
log "Creating debian/changelog"
3750
dch --create --package=$PACKAGE --newversion $version build tree release
3851

0 commit comments

Comments
 (0)