GNU bug report logs -
#40029
Preventing automatic python2 transformation of some packages
Previous Next
Reported by: Marius Bakke <mbakke <at> fastmail.com>
Date: Wed, 11 Mar 2020 18:30:02 UTC
Severity: normal
Done: Marius Bakke <marius <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #16 received at 40029-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Ludovic Courtès <ludo <at> gnu.org> writes:
> Hi!
>
> Marius Bakke <mbakke <at> fastmail.com> skribis:
>
>> 'python2-sphinx' is obsolete and increasingly a maintenance burden,
>> because we need to keep special versions around just to make it build.
>>
>> The only reason we have this package is because it gets pulled in
>> automatically when using (package-with-python2 ...) on a Python 3
>> package that has 'python-sphinx' in inputs.
>
> What about this evil hack?
>
> diff --git a/gnu/packages/sphinx.scm b/gnu/packages/sphinx.scm
> index 323d5b4457..66306e97fc 100644
> --- a/gnu/packages/sphinx.scm
> +++ b/gnu/packages/sphinx.scm
> @@ -99,7 +99,7 @@
> for Python projects or other documents consisting of multiple reStructuredText
> sources.")
> (license license:bsd-2)
> - (properties `((python2-variant . ,(delay python2-sphinx))))))
> + (properties `((python2-variant . ,(delay python-sphinx))))))
>
> ;; Sphinx 2 does not support Python 2, so we stick with this older version here.
> ;; Remove this package once python2-pbcore no longer requires it.
>
> The effect should be that ‘package-with-python2’ always keeps
> ‘python-sphinx’ unchanged. (It’s a double-edge sword.)
This is brilliant and I can confirm it works. It never would have
occured to me that this is possible.
'python2-sphinx' will be removed on the next staging cycle.
Thanks!
[signature.asc (application/pgp-signature, inline)]
This bug report was last modified 4 years and 357 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.