[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Install python pacakge from `.whl` file
From: |
Hamzeh Nasajpour |
Subject: |
Re: Install python pacakge from `.whl` file |
Date: |
Sat, 10 Jul 2021 17:26:33 +0430 |
User-agent: |
Cyrus-JMAP/3.5.0-alpha0-531-g1160beca77-fm-20210705.001-g1160beca |
Ok, I updated the package definition as follow:
```
(define-public python-etebase
(package
(name "python-etebase")
(version "0.31.2")
(source (origin
(method url-fetch)
(uri (string-append
"https://github.com/etesync/etebase-py/releases/download/v0.31.2/etebase-"
version "-cp38-cp38-manylinux2010_x86_64.whl"))
(sha256
(base32
"09vw2922bfb0b8s2k0hs7skcrplwxkn4vfl9bcla6hbr92paigd7"))))
(build-system trivial-build-system)
(arguments
`(#:modules ((guix build utils))
#:builder (begin
(use-modules (guix build utils)
(srfi srfi-26))
(let* ((source (assoc-ref %build-inputs "source"))
(bash (assoc-ref %build-inputs "bash"))
(coreutils (assoc-ref %build-inputs "coreutils"))
(python (assoc-ref %build-inputs "python")))
(setenv "PATH" (string-append
(string-append bash "/bin:")
(string-append coreutils "/bin:")
(string-append python "/bin:")))
(invoke "python3" "-m" "pip" "install" source
(string-append "--prefix=" %output)
"--no-deps"
(string-append "--cache-dir=" %output))
#t))))
(native-inputs `(("coreutils" ,coreutils)
("python" ,python-3)
("python-msgpack", python-msgpack)))
(inputs `(("bash" ,bash)))
(home-page "https://www.etesync.com/")
(synopsis "A Python library for Etebase")
(description
"This package is implemented in Rust and exposes a Python API for people
to use.")
(license license:expat)))
```
And currently I face with this error:
```
...
building
/gnu/store/05bf6g974sjfl5kg2xkcs6ciiv4l9y67-python-etebase-0.31.2.drv...
Processing
/gnu/store/g12ckz8jmmzmxf8bsjqxb2zksghf0x31-etebase-0.31.2-cp38-cp38-manylinux2010_x86_64.whl
Installing collected packages: g12ckz8jmmzmxf8bsjqxb2zksghf0x31
ERROR: Exception:
Traceback (most recent call last):
File
"/gnu/store/9w9jvy3bgjg4qaqmrij01nbppiccqr7c-python-3.8.2/lib/python3.8/site-packages/pip/_internal/cli/base_command.py",
line 188, in main
status = self.run(options, args)
File
"/gnu/store/9w9jvy3bgjg4qaqmrij01nbppiccqr7c-python-3.8.2/lib/python3.8/site-packages/pip/_internal/commands/install.py",
line 398, in run
installed = install_given_reqs(
File
"/gnu/store/9w9jvy3bgjg4qaqmrij01nbppiccqr7c-python-3.8.2/lib/python3.8/site-packages/pip/_internal/req/__init__.py",
line 54, in install_given_reqs
requirement.install(
File
"/gnu/store/9w9jvy3bgjg4qaqmrij01nbppiccqr7c-python-3.8.2/lib/python3.8/site-packages/pip/_internal/req/req_install.py",
line 925, in install
self.move_wheel_files(
File
"/gnu/store/9w9jvy3bgjg4qaqmrij01nbppiccqr7c-python-3.8.2/lib/python3.8/site-packages/pip/_internal/req/req_install.py",
line 453, in move_wheel_files
wheel.move_wheel_files(
File
"/gnu/store/9w9jvy3bgjg4qaqmrij01nbppiccqr7c-python-3.8.2/lib/python3.8/site-packages/pip/_internal/wheel.py",
line 434, in move_wheel_files
assert info_dir, "%s .dist-info directory not found" % req
AssertionError: g12ckz8jmmzmxf8bsjqxb2zksghf0x31==etebase .dist-info directory
not found
Backtrace:
3 (primitive-load "/gnu/store/vvgbg88axkan45hc0ahvska8y37?")
In ice-9/eval.scm:
191:35 2 (_ _)
619:8 1 (_ #(#(#(#(#<directory (guile-user) 7ffff3b?> ?) ?) ?) ?))
In guix/build/utils.scm:
654:6 0 (invoke _ . _)
guix/build/utils.scm:654:6: In procedure invoke:
ERROR:
1. &invoke-error:
program: "python3"
arguments: ("-m" "pip" "install"
"/gnu/store/g12ckz8jmmzmxf8bsjqxb2zksghf0x31-etebase-0.31.2-cp38-cp38-manylinux2010_x86_64.whl"
"--prefix=/gnu/store/m5a2yq2pdn6xkbmz7v9s18p0qwnrnqf8-python-etebase-0.31.2"
"--no-deps"
"--cache-dir=/gnu/store/m5a2yq2pdn6xkbmz7v9s18p0qwnrnqf8-python-etebase-0.31.2")
exit-status: 2
term-signal: #f
stop-signal: #f
```