Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: Can't find packages from python-pip in environment (Read 1755 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[SOLVED] Re: Can't find packages from python-pip in environment

Reply #15
I tried a manual install and found this:

Code: [Select]
/usr/lib/python3.9/distutils/dist.py:274: UserWarning: Unknown distribution option: 'install_requires'
  warnings.warn(msg)
/usr/lib/python3.9/distutils/dist.py:274: UserWarning: Unknown distribution option: 'entry_points'
  warnings.warn(msg)
/usr/lib/python3.9/distutils/dist.py:274: UserWarning: Unknown distribution option: 'python_requires'
  warnings.warn(msg)
running build
running build_py

Maybe setuptools isn't working in the moment with python 3.9?

Re: Can't find packages from python-pip in environment

Reply #16
Code: [Select]
pkgname=solo-python
pkgver=0.0.27
pkgrel=2
pkgdesc="Tools and Python library for SoloKeys."
arch=('any')
url="https://github.com/solokeys/solo-python"
license=('Apache' 'MIT')
depends=('python' 'python-click>=7.0' 'python-cryptography' 'python-ecdsa'
         'python-fido2' 'python-intelhex' 'python-pyserial' 'python-pyusb'
         'python-requests')
makedepends=('fakeroot' 'python-setuptools')
source=("https://files.pythonhosted.org/packages/source/s/${pkgname}/${pkgname}-${pkgver}.tar.gz"
        "https://raw.githubusercontent.com/alium/share/master/solo")
sha256sums=('72a4699eb3b1979d7a2561c538987f868b5e7ee4e4a5b402b8a4d460d3dd6ec7'
            'd4206872009b63693fc0eeec7c82096bff06b58cc938523f1820f46f071a5642')

build() {
  cd $pkgname-$pkgver
  python setup.py build
}

package() {
  cd $pkgname-$pkgver
    python setup.py install --root="${pkgdir}" --optimize=1
  install -m755 -d "${pkgdir}/usr/bin"
  install -m755  "${srcdir}"/solo "${pkgdir}/usr/bin"
}

works for me now
Code: [Select]
[alois@picasso solo-python]$ solo
Usage: solo [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  genkey    Generates key pair that can be used for Solo signed firmware...
  key       Interact with Solo keys, see subcommands.
  ls        List Solos (in firmware or bootloader mode) and potential Solos...
  mergehex  Merges hex files, and patches in the attestation key.
  monitor   Reads Solo Hacker serial output from USB serial port...
  program   Program a key.
  sign      Signs a firmware hex file, outputs a .json file that can be
            used...

  version   Version of python-solo library and tool.

Re: Can't find packages from python-pip in environment

Reply #17
Thanks this works with charm!