summaryrefslogtreecommitdiff
path: root/repo/python-gpep517
diff options
context:
space:
mode:
Diffstat (limited to 'repo/python-gpep517')
-rw-r--r--repo/python-gpep517/gpep5176
-rw-r--r--repo/python-gpep517/python-gpep517.xibuild26
2 files changed, 32 insertions, 0 deletions
diff --git a/repo/python-gpep517/gpep517 b/repo/python-gpep517/gpep517
new file mode 100644
index 0000000..b8b10c0
--- /dev/null
+++ b/repo/python-gpep517/gpep517
@@ -0,0 +1,6 @@
+#!/usr/bin/python3
+# -*- coding: utf-8 -*-
+import sys
+from gpep517.__main__ import main
+if __name__ == "__main__":
+ sys.exit(main())
diff --git a/repo/python-gpep517/python-gpep517.xibuild b/repo/python-gpep517/python-gpep517.xibuild
new file mode 100644
index 0000000..a46f3b9
--- /dev/null
+++ b/repo/python-gpep517/python-gpep517.xibuild
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+NAME="python-gpep517"
+DESC="Minimal backend script to aid installing Python packages through PEP 517-compliant build systems"
+
+MAKEDEPS="python"
+
+PKG_VER=9
+SOURCE="https://github.com/mgorny/gpep517/archive/v$PKG_VER/gpep517-v$PKG_VER.tar.gz"
+
+ADDITIONAL="
+gpep517
+"
+check() {
+ python3 -m gpep517 --help
+}
+
+package() {
+ local sitedir="$(python3 -c 'import site;print(site.getsitepackages()[0])')"
+ mkdir -p "$PKG_DEST/$sitedir"
+ cp -a gpep517 "$PKG_DEST/$sitedir"
+
+ mkdir -p "$PKG_DEST/usr/bin"
+ cp -a gpep517 "$PKG_DEST"/usr/bin
+}
+