# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/pygobject/pygobject.conf # Copyright (C) 2006 - 2023 The T2 SDE Project # # This Copyright note is generated by scripts/Create-CopyPatch, # more information can be found in the files COPYING and README. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2. # --- T2-COPYRIGHT-NOTE-END --- pygobject_pi() { PYVER="`python -V 2>&1 | sed 's/Python \([0-9]\.[0-9]\+\).*/\1/'`" cat > $root/etc/profile.d/python3-pygobject <<-EOF export PYTHONPATH=\$PYTHONPATH\${PYTHONPATH:+:}/$prefix/$libdir/python$PYVER/site-packages EOF } hook_add postinstall 3 pygobject_pi var_append confopt ' ' "--enable-threads" runpysetup=0