Nicholas D Steeves: > Hi Ben and readers of debian-mentors, > > Solution at bottom. > > [...] > > "export DEB_BUILD_PROFILES=nodoc ; gbp buildpackage" does not work, > although I expect "DEB_BUILD_PROFILES=nodoc ; export > DEB_BUILD_PROFILES ; gbp buildpackage" should. >
Rather, I think there is a typo in changes. > --- > debian/changelog | 6 ++++++ > debian/control | 4 ++-- > debian/rules | 8 +++++++- > 3 files changed, 15 insertions(+), 3 deletions(-) > > [...] > diff --git a/debian/rules b/debian/rules > index a9d70b4..bd4c218 100755 > --- a/debian/rules > +++ b/debian/rules > @@ -11,7 +11,13 @@ export LC_ALL > # docs are not generated without this override > override_dh_auto_build: > dh_auto_build > - PYTHONPATH=. sphinx-build -N -bman docs/ build/man # Manpage generator > +# support the nodoc build profile > +ifneq ($(filter nodocs,$(DEB_BUILD_PROFILES)),) ^^^^^^ nodocs != nodoc > + echo -e "\nnodoc build profile enabled, therefor not building docs.\n" > +else > + PYTHONPATH=. sphinx-build -N -bman docs/ build/man > PYTHONPATH=. sphinx-build -N -btexinfo docs/ build/info > makeinfo --no-split build/info/Elpy.texi -o build/info/elpy.info > cat NEWS.rst debian/local-var-snippet > build/NEWS > +endif > + > Thanks, ~Niels