[Github-comments] [geany/geany] Switch to Python 3 for GTK doc header generation (#2903)

Enrico Tröger notifications at xxxxx
Sun Oct 10 15:00:55 UTC 2021


@b4n and me were wondering whether the generated header file will be different from Python2 to Python3 while releasing 1.38.

So I gave it a try:
- For Python 3 (tested in a container, started like this: `docker run --rm -it -v /tmp/shared:/shared debian:buster-slim`):
```
apt-get update && apt-get install -y --no-install-recommends git doxygen intltool libtool libgtk-3-dev python3-lxml python3-docutils rst2pdf build-essential
git clone --depth=1 https://github.com/geany/geany /geany-test && cd /geany-test
PYTHON=python3 ./autogen.sh --enable-api-docs --enable-gtkdoc-header
make -C doc
cp doc/geany-gtkdoc.h /shared/geany-gtkdoc-py3.h
```

- For Python 2 (tested in a container, started like this: `docker run --rm -it -v /tmp/shared:/shared debian:buster-slim`):
```
apt-get update && apt-get install -y --no-install-recommends git doxygen intltool libtool libgtk-3-dev python-lxml python-docutils rst2pdf build-essential
git clone --depth=1 https://github.com/geany/geany /geany-test && cd /geany-test
PYTHON=python2 ./autogen.sh --enable-api-docs --enable-gtkdoc-header
make -C doc
cp doc/geany-gtkdoc.h /shared/geany-gtkdoc-py2.h
```

The resulting files are identical. Yay.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/2903#issuecomment-939497331
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20211010/1d0f4045/attachment-0001.htm>


More information about the Github-comments mailing list