[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#737376: texlive-extra-utils: Debian pythontex can't use python3



Hi Julian,

> After numerous failed attempts to clone the git repository (alioth
> keeps dropping https connections :-( ) I finally gave up and looked at

Huu? Strange.

> I hadn't realised, but it's now been explained, that the
> (de)pythontex3.py scripts are just Python 3 "translations" of the
> (de)pythontex2.py scripts and they behave identically otherwise.  So
> it is almost pointless having the /usr/bin/(de)pythontex3 scripts, as

No.

> Much more interesting would be if the /usr/bin/pythontex3 were to
> include the argument --interpreter python:python3 before "$@", for

Did you see the scripts I have added to the texlive-extra tree
and that will be installed?
	texlive-nonbin.git/texlive-extra-debian/pythontex3
is nothing else but:
if which python3 >/dev/null 2>&1
then
  python3 /usr/share/texlive/texmf-dist/scripts/pythontex/pythontex3.py "$@"
else
  echo "You need to have python3 installed to be able to use" >&2
  echo "the Python 3 version of pythontex!" >&2
  echo "Exiting." >&2
fi

That is why I wrote in the last email that I used your script, but changed
the exec to a call to python3 ...

That should suffice, though, right?

Norbert

------------------------------------------------------------------------
PREINING, Norbert                               http://www.preining.info
JAIST, Japan                                 TeX Live & Debian Developer
DSA: 0x09C5B094   fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
------------------------------------------------------------------------


Reply to: