common/buildstyle/python*: build dir can be used as python identifier
in order to make gufw installation process work, it includes itself while installing. this raise the need that the build directory needs to be a valid python identifier too. this commit solves this issue.
This commit is contained in:
@@ -19,9 +19,9 @@ do_build() {
|
||||
env CC="$CC" LDSHARED="$LDSHARED" \
|
||||
PYPREFIX="$PYPREFIX" CFLAGS="$CFLAGS" \
|
||||
LDFLAGS="$LDFLAGS" python${pyver} setup.py \
|
||||
build --build-base=build-${pyver} ${make_build_args}
|
||||
build --build-base=build${pyver//./_} ${make_build_args}
|
||||
else
|
||||
python${pyver} setup.py build --build-base=build-${pyver} ${make_build_args}
|
||||
python${pyver} setup.py build --build-base=build${pyver//./_} ${make_build_args}
|
||||
fi
|
||||
done
|
||||
}
|
||||
@@ -43,10 +43,10 @@ do_install() {
|
||||
env CC="$CC" LDSHARED="$LDSHARED" \
|
||||
PYPREFIX="$PYPREFIX" CFLAGS="$CFLAGS" \
|
||||
LDFLAGS="$LDFLAGS" python${pyver} setup.py \
|
||||
build --build-base=build-${pyver} \
|
||||
build --build-base=build${pyver//./_} \
|
||||
install --prefix=/usr --root=${DESTDIR} ${make_install_args}
|
||||
else
|
||||
python${pyver} setup.py build --build-base=build-${pyver} \
|
||||
python${pyver} setup.py build --build-base=build${pyver//./_} \
|
||||
install --prefix=/usr --root=${DESTDIR} ${make_install_args}
|
||||
fi
|
||||
|
||||
|
Reference in New Issue
Block a user