* added support to Emerge -repository w/ repo/*
[t2sde.git] / package / python / python-gpep517 / python-gpep517.conf
blob4f28a7237b1dc18f584ea8d0657549bbbd859326
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/python-gpep517/python-gpep517.conf
3 # Copyright (C) 2024 The T2 SDE Project
4
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2.
10 # --- T2-COPYRIGHT-NOTE-END ---
12 runmake=0
13 runpysetup=0
14 runpipinstall=0
16 hook_add inmake 5 pygpep517_inmake
17 hook_add postinstall 5 pygpep517_postinstall
19 pygpep517_inmake() {
20         local sitedir=$root$libdir/python/site-packages
21         cp -a gpep517/ $sitedir
22         python -m compileall $sitedir
25 pygpep517_postinstall() {
26         cat <<EOF > $root$bindir/gpep517
27 #!/usr/bin/python3
28 # -*- coding: utf-8 -*-
29 import sys
30 from gpep517.__main__ import main
31 if __name__ == "__main__":
32     sys.exit(main())
33 EOF
34         chmod -v 755 $root$bindir/gpep517