mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-02-16 23:57:11 +00:00
added community/python-debugpy
This commit is contained in:
parent
b47459a99a
commit
ca65c5ebbc
1 changed files with 39 additions and 0 deletions
39
community/python-debugpy/PKGBUILD
Normal file
39
community/python-debugpy/PKGBUILD
Normal file
|
@ -0,0 +1,39 @@
|
|||
# Maintainer: Antonio Rojas <arojas@archlinux.org>
|
||||
# Contributor: mark.blakeney at bullet-systems dot net
|
||||
|
||||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||
# - comment out extra compile, x86 and doesn't appear to be necessary for ARM
|
||||
|
||||
_pipname=debugpy
|
||||
pkgname=python-$_pipname
|
||||
pkgver=1.4.3
|
||||
pkgrel=1
|
||||
pkgdesc='An implementation of the Debug Adapter Protocol for Python'
|
||||
arch=(x86_64)
|
||||
url='https://aka.ms/debugpy'
|
||||
license=(EPL MIT)
|
||||
depends=(python)
|
||||
makedepends=(python-setuptools)
|
||||
source=(https://github.com/microsoft/debugpy/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
|
||||
sha256sums=('9552836f597b3386642849277e8d15fc25bc502772cee816440b5006adb671b9')
|
||||
|
||||
prepare() {
|
||||
cd $_pipname-$pkgver
|
||||
# remove precompiled libs
|
||||
rm src/debugpy/_vendored/pydevd/pydevd_attach_to_process/*.{so,dll,dylib,exe,pdb}
|
||||
}
|
||||
|
||||
build() {
|
||||
cd $_pipname-$pkgver
|
||||
python setup.py build
|
||||
# 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() {
|
||||
cd $_pipname-$pkgver
|
||||
python setup.py install --skip-build --root="$pkgdir" --optimize=1
|
||||
|
||||
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
||||
}
|
Loading…
Reference in a new issue