2021-09-09 20:31:57 +00:00
|
|
|
# Maintainer: Antonio Rojas <arojas@archlinux.org>
|
|
|
|
# Contributor: mark.blakeney at bullet-systems dot net
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
2024-04-29 12:33:33 +00:00
|
|
|
# - comment out extra compile and install, x86 and doesn't appear to be necessary for ARM
|
2021-09-09 20:31:57 +00:00
|
|
|
|
|
|
|
_pipname=debugpy
|
|
|
|
pkgname=python-$_pipname
|
2024-11-22 00:38:11 +00:00
|
|
|
pkgver=1.8.9
|
2024-06-26 09:19:44 +00:00
|
|
|
pkgrel=1
|
2021-09-09 20:31:57 +00:00
|
|
|
pkgdesc='An implementation of the Debug Adapter Protocol for Python'
|
|
|
|
arch=(x86_64)
|
|
|
|
url='https://aka.ms/debugpy'
|
2024-02-07 13:30:33 +00:00
|
|
|
license=(MIT)
|
|
|
|
depends=(gcc-libs
|
|
|
|
glibc
|
|
|
|
python)
|
2024-04-29 12:33:33 +00:00
|
|
|
makedepends=(cython
|
|
|
|
git
|
|
|
|
python-build
|
|
|
|
python-installer
|
|
|
|
python-setuptools
|
|
|
|
python-wheel)
|
|
|
|
source=(git+https://github.com/microsoft/debugpy#tag=v$pkgver)
|
2024-11-22 00:38:11 +00:00
|
|
|
sha256sums=('d6f9e5ecfcf95d7993baf08402d37ea89d6bfe43b73defdfde7440d1a988688d')
|
2021-09-09 20:31:57 +00:00
|
|
|
|
|
|
|
build() {
|
2024-04-29 12:33:33 +00:00
|
|
|
cd $_pipname
|
|
|
|
# Recythonize sources
|
|
|
|
pushd src/debugpy/_vendored/pydevd/_pydevd_bundle
|
|
|
|
cythonize pydevd_cython.pyx
|
|
|
|
popd
|
|
|
|
|
|
|
|
python -m build --wheel --no-isolation
|
2021-09-09 20:31:57 +00:00
|
|
|
# Compile attach libraries
|
|
|
|
#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}
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2024-04-29 12:33:33 +00:00
|
|
|
cd $_pipname
|
|
|
|
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
|
2021-09-09 20:31:57 +00:00
|
|
|
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
|
|
|
}
|