Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
https://aur.archlinux.org/packages/python-azure-cli/#comment-762588
Upstream appears to have cleaned up a bit, and there are fewer
directories in src now (the diff there also contains a change to how
it's suggested to build Snaps, so I went with that).
The following changes made the package build correctly (and so far az
itself works for me (TM)):
diff --git a/PKGBUILD b/PKGBUILD
index 25759ba..f8e4bdb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -20,10 +20,7 @@
sha256sums=('2a3eae24e2e88f2895f685294f4927f2d11ab2ba41e249d9bb0812a1b2cfd9f6')
build() {
cd "$_name-$_name-$pkgver/src"
- for d in azure-cli \
- azure-cli-core \
- azure-cli-nspkg \
- azure-cli-command_modules-nspkg;
+ for d in azure-cli azure-cli-core
do cd $d;
python setup.py build;
cd -;
@@ -33,15 +30,9 @@ build() {
package() {
cd "$_name-$_name-$pkgver/src"
- for d in azure-cli \
- azure-cli-core \
- azure-cli-nspkg \
- azure-cli-command_modules-nspkg;
+ for d in azure-cli azure-cli-core
do cd $d;
python setup.py install --root="$pkgdir" --optimize=1
cd -;
done;
-
- rm "$pkgdir"/usr/lib/python3.?/site-packages/azure/__init__.py
- rm
"$pkgdir"/usr/lib/python3.?/site-packages/azure/__pycache__/__init__.*
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Fix ModuleNotFoundError: No module named 'pkginfo'
|
|
|
|
|
|
|
|
|
|
|
|
The command failed with an unexpected error. Here is the traceback:
No module named 'antlr4'
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/knack/cli.py", line 206, in invoke
cmd_result = self.invocation.execute(args)
File "/usr/lib/python3.8/site-packages/azure/cli/core/commands/__init__.py", line 528, in execute
self.commands_loader.load_arguments(command)
File "/usr/lib/python3.8/site-packages/azure/cli/core/__init__.py", line 300, in load_arguments
loader.load_arguments(command) # this adds entries to the argument registries
File "/usr/lib/python3.8/site-packages/azure/cli/command_modules/vm/__init__.py", line 31, in load_arguments
from azure.cli.command_modules.vm._params import load_arguments
File "/usr/lib/python3.8/site-packages/azure/cli/command_modules/vm/_params.py", line 31, in <module>
from azure.cli.command_modules.monitor.actions import get_period_type
File "/usr/lib/python3.8/site-packages/azure/cli/command_modules/monitor/actions.py", line 7, in <module>
import antlr4
ModuleNotFoundError: No module named 'antlr4'
|
|
|
|
|
|
|
|
See
https://github.com/Azure/azure-cli/commit/f2c8feaa91658f2145f3bc40e7f7593d8eb54da9
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Signed-off-by: pallxk <github@pallxk.com>
|