@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

Reply via email to