From 59d0eea58908f4baea736a077f706e203edc2ad0 Mon Sep 17 00:00:00 2001 From: OscarL Date: Mon, 27 Mar 2023 15:15:50 -0300 Subject: [PATCH] editor: fix build, add support for Python 3.10. (#8135) haikuporter complained about: "Error: No PROVIDES_python found". --- dev-python/editor/editor-1.0.4.recipe | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/dev-python/editor/editor-1.0.4.recipe b/dev-python/editor/editor-1.0.4.recipe index 0d12ebf0b..7cf8289e8 100644 --- a/dev-python/editor/editor-1.0.4.recipe +++ b/dev-python/editor/editor-1.0.4.recipe @@ -4,7 +4,7 @@ for programmatically interfacing with your system's editor." HOMEPAGE="https://github.com/fmoo/python-editor" COPYRIGHT="2015-2019 Peter Ruibal" LICENSE="Apache v2" -REVISION="3" +REVISION="4" SOURCE_URI="https://files.pythonhosted.org/packages/0a/85/78f4a216d28343a67b7397c99825cff336330893f00601443f7c7b2f2234/python-editor-1.0.4.tar.gz" CHECKSUM_SHA256="51fda6bcc5ddbbb7063b2af7509e43bd84bfc32a4ff71349ec7847713882327b" SOURCE_DIR="python-editor-$portVersion" @@ -22,8 +22,8 @@ BUILD_REQUIRES=" haiku_devel " -PYTHON_PACKAGES=(python38 python39) -PYTHON_VERSIONS=(3.8 3.9) +PYTHON_PACKAGES=(python38 python39 python310) +PYTHON_VERSIONS=(3.8 3.9 3.10) for i in "${!PYTHON_PACKAGES[@]}"; do pythonPackage=${PYTHON_PACKAGES[i]} pythonVersion=${PYTHON_VERSIONS[$i]} @@ -40,9 +40,6 @@ BUILD_PREREQUIRES="$BUILD_PREREQUIRES cmd:python$pythonVersion" done -REPLACES_python=" - python_editor - " INSTALL() { @@ -53,8 +50,10 @@ INSTALL() python=python$pythonVersion installLocation=$prefix/lib/$python/vendor-packages/ export PYTHONPATH=$installLocation:$PYTHONPATH + mkdir -p $installLocation rm -rf build + $python setup.py build install \ --root=/ --prefix=$prefix