summaryrefslogtreecommitdiff
path: root/repo/python-ply
diff options
context:
space:
mode:
Diffstat (limited to 'repo/python-ply')
-rw-r--r--repo/python-ply/no-py3-six.patch13
-rw-r--r--repo/python-ply/python-ply.xibuild20
2 files changed, 26 insertions, 7 deletions
diff --git a/repo/python-ply/no-py3-six.patch b/repo/python-ply/no-py3-six.patch
new file mode 100644
index 0000000..5a4c665
--- /dev/null
+++ b/repo/python-ply/no-py3-six.patch
@@ -0,0 +1,13 @@
+diff --git a/test/testcpp.py b/test/testcpp.py
+index 2e98edd..7134244 100644
+--- a/test/testcpp.py
++++ b/test/testcpp.py
+@@ -1,7 +1,7 @@
+ from unittest import TestCase, main
+
+ from multiprocessing import Process, Queue
+-from six.moves.queue import Empty
++from queue import Empty
+
+ import sys
+
diff --git a/repo/python-ply/python-ply.xibuild b/repo/python-ply/python-ply.xibuild
index f977f12..791b2c2 100644
--- a/repo/python-ply/python-ply.xibuild
+++ b/repo/python-ply/python-ply.xibuild
@@ -1,17 +1,23 @@
#!/bin/sh
-MAKEDEPS="python"
+NAME="python-ply"
+DESC="Python Lex & Yacc"
+MAKEDEPS="python"
PKG_VER=3.11
-SOURCE=https://files.pythonhosted.org/packages/source/p/ply/ply-$PKG_VER.tar.gz
-MAKEDEPS="python"
-DESC="Python Lex DESC="%desc%" Yacc"
+SOURCE="https://github.com/dabeaz/ply/archive/$PKG_VER.tar.gz"
+
+ADDITIONAL="
+no-py3-six.patch
+"
build() {
- python setup.py build
+ python3 setup.py build
}
-package () {
- python setup.py install --root="$PKG_DEST" --optimize=1
+
+package() {
+ python3 setup.py install --prefix=/usr --root="$PKG_DEST"
}
+