mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-19 00:21:40 +00:00
extra/python-debugpy to 1.8.1-3
This commit is contained in:
parent
599c8aafee
commit
400e1e0387
2 changed files with 29 additions and 13 deletions
|
@ -1,15 +1,20 @@
|
||||||
pkgbase = python-debugpy
|
pkgbase = python-debugpy
|
||||||
pkgdesc = An implementation of the Debug Adapter Protocol for Python
|
pkgdesc = An implementation of the Debug Adapter Protocol for Python
|
||||||
pkgver = 1.8.1
|
pkgver = 1.8.1
|
||||||
pkgrel = 2
|
pkgrel = 3
|
||||||
url = https://aka.ms/debugpy
|
url = https://aka.ms/debugpy
|
||||||
arch = x86_64
|
arch = x86_64
|
||||||
license = MIT
|
license = MIT
|
||||||
|
makedepends = cython
|
||||||
|
makedepends = git
|
||||||
|
makedepends = python-build
|
||||||
|
makedepends = python-installer
|
||||||
makedepends = python-setuptools
|
makedepends = python-setuptools
|
||||||
|
makedepends = python-wheel
|
||||||
depends = gcc-libs
|
depends = gcc-libs
|
||||||
depends = glibc
|
depends = glibc
|
||||||
depends = python
|
depends = python
|
||||||
source = https://github.com/microsoft/debugpy/archive/v1.8.1/python-debugpy-1.8.1.tar.gz
|
source = git+https://github.com/microsoft/debugpy#tag=v1.8.1
|
||||||
sha256sums = ef3b939b63cf2898f36e1f43cd3d9ec5dc9b3305c024836f8201a932fe16fd4e
|
sha256sums = 41cd4bf27887e8bd431555c9107f55f61fd359cb794a0867b615cb1cc284dd0d
|
||||||
|
|
||||||
pkgname = python-debugpy
|
pkgname = python-debugpy
|
||||||
|
|
|
@ -2,12 +2,12 @@
|
||||||
# Contributor: mark.blakeney at bullet-systems dot net
|
# Contributor: mark.blakeney at bullet-systems dot net
|
||||||
|
|
||||||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||||
# - comment out extra compile, x86 and doesn't appear to be necessary for ARM
|
# - comment out extra compile and install, x86 and doesn't appear to be necessary for ARM
|
||||||
|
|
||||||
_pipname=debugpy
|
_pipname=debugpy
|
||||||
pkgname=python-$_pipname
|
pkgname=python-$_pipname
|
||||||
pkgver=1.8.1
|
pkgver=1.8.1
|
||||||
pkgrel=2
|
pkgrel=3
|
||||||
pkgdesc='An implementation of the Debug Adapter Protocol for Python'
|
pkgdesc='An implementation of the Debug Adapter Protocol for Python'
|
||||||
arch=(x86_64)
|
arch=(x86_64)
|
||||||
url='https://aka.ms/debugpy'
|
url='https://aka.ms/debugpy'
|
||||||
|
@ -15,9 +15,14 @@ license=(MIT)
|
||||||
depends=(gcc-libs
|
depends=(gcc-libs
|
||||||
glibc
|
glibc
|
||||||
python)
|
python)
|
||||||
makedepends=(python-setuptools)
|
makedepends=(cython
|
||||||
source=(https://github.com/microsoft/debugpy/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
|
git
|
||||||
sha256sums=('ef3b939b63cf2898f36e1f43cd3d9ec5dc9b3305c024836f8201a932fe16fd4e')
|
python-build
|
||||||
|
python-installer
|
||||||
|
python-setuptools
|
||||||
|
python-wheel)
|
||||||
|
source=(git+https://github.com/microsoft/debugpy#tag=v$pkgver)
|
||||||
|
sha256sums=('41cd4bf27887e8bd431555c9107f55f61fd359cb794a0867b615cb1cc284dd0d')
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
cd $_pipname-$pkgver
|
cd $_pipname-$pkgver
|
||||||
|
@ -26,16 +31,22 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd $_pipname-$pkgver
|
cd $_pipname
|
||||||
python setup.py build
|
# Recythonize sources
|
||||||
|
pushd src/debugpy/_vendored/pydevd/_pydevd_bundle
|
||||||
|
cythonize pydevd_cython.pyx
|
||||||
|
popd
|
||||||
|
|
||||||
|
python -m build --wheel --no-isolation
|
||||||
# Compile attach libraries
|
# Compile attach libraries
|
||||||
#cd build/lib*/debugpy/_vendored/pydevd/pydevd_attach_to_process
|
#cd build/lib*/debugpy/_vendored/pydevd/pydevd_attach_to_process
|
||||||
#g++ ${CXXFLAGS} -m64 -shared -o attach_linux_amd64.so -fPIC -nostartfiles linux_and_mac/attach.cpp ${LDFLAGS}
|
#g++ ${CXXFLAGS} -m64 -shared -o attach_linux_amd64.so -fPIC -nostartfiles linux_and_mac/attach.cpp ${LDFLAGS}
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd $_pipname-$pkgver
|
cd $_pipname
|
||||||
python setup.py install --skip-build --root="$pkgdir" --optimize=1
|
python -m installer --destdir="$pkgdir" dist/*.whl
|
||||||
|
#install -Dm755 build/lib*/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so \
|
||||||
|
# -t "$pkgdir"`python -c "import site; print(site.getsitepackages()[0])"`/debugpy/_vendored/pydevd/pydevd_attach_to_process
|
||||||
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue