File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,19 @@ DEBFULLNAME=$USER
55EMAIL=$( git config --get user.email)
66DEBEMAIL=$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+
821SRCDIR=${1:- $(pwd)}
922
1023die () { echo " debbuild: $@ " >&2 ; exit 1; }
@@ -32,7 +45,7 @@ log "Creating debian directory and files"
3245cd ${PACKAGE} -${version}
3346cp -a ${SRCDIR} /debian . || die " failed to copy debian dir"
3447
35- export DEBEMAIL DEBFULLNAME
48+ export DEBEMAIL DEBFULLNAME DEB_PYTHON_INSTALL_LAYOUT
3649log " Creating debian/changelog"
3750dch --create --package=$PACKAGE --newversion $version build tree release
3851
You can’t perform that action at this time.
0 commit comments