# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/python-gpep517/python-gpep517.conf # Copyright (C) 2024 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 --- runmake=0 runpysetup=0 runpipinstall=0 hook_add inmake 5 pygpep517_inmake hook_add postinstall 5 pygpep517_postinstall pygpep517_inmake() { local sitedir=$root$libdir/python/site-packages cp -a gpep517/ $sitedir python -m compileall $sitedir } pygpep517_postinstall() { cat < $root$bindir/gpep517 #!/usr/bin/python3 # -*- coding: utf-8 -*- import sys from gpep517.__main__ import main if __name__ == "__main__": sys.exit(main()) EOF chmod -v 755 $root$bindir/gpep517 }