Unverified Commit 73296706 authored by prspkt's avatar prspkt

testing/platformio-core: drop python2

parent 114491a6
......@@ -5,11 +5,11 @@ pkgver=3.2.1
pkgrel=0
pkgdesc="An open source ecosystem for IoT development"
url="http://platformio.org"
arch="all"
arch="noarch"
license="Apache-2.0"
depends="python py-bottle py-click5 py-lockfile py-serial
py-requests py-colorama py-semanticversion"
makedepends="python-dev py-setuptools"
depends="py3-bottle py3-click5 py3-colorama py3-lockfile py3-requests
py3-semanticversion py3-serial"
makedepends="py3-setuptools"
install=""
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/platformio/platformio-core/archive/v$pkgver.tar.gz"
......@@ -17,12 +17,14 @@ builddir="$srcdir/$pkgname-$pkgver"
build() {
cd "$builddir"
python setup.py build || return 1
python3 setup.py build || return 1
cd "$builddir"/scripts
2to3 -w *.py
}
package() {
cd "$builddir"
python setup.py install --prefix=/usr \
python3 setup.py install --prefix=/usr \
--root="$pkgdir" || return 1
mkdir -p "$pkgdir"/usr/share/doc/$pkgname/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment