Package Details: python-pypi2pkgbuild 0.3-1

Git Clone URL: https://aur.archlinux.org/python-pypi2pkgbuild.git (read-only, click to copy)
Package Base: python-pypi2pkgbuild
Description: Convert PyPI packages to Arch Linux packages
Upstream URL: https://github.com/anntzer/pypi2pkgbuild
Licenses: MIT
Conflicts: python-pypi2pkgbuild-git
Submitter: m-pilia
Maintainer: m-pilia
Last Packager: m-pilia
Votes: 7
Popularity: 0.024176
First Submitted: 2018-03-18 14:38 (UTC)
Last Updated: 2021-03-31 19:49 (UTC)

Latest Comments

filipg commented on 2024-11-09 16:39 (UTC) (edited on 2024-11-09 16:40 (UTC) by filipg)

Getting an error when trying to use it (freshly updated Arch)

$ pypi2pkgbuild.py llm                   
/usr/bin/pypi2pkgbuild.py:165: SyntaxWarning: invalid escape sequence '\+'
  PKGBUILD_CONTENTS = """\
/usr/bin/pypi2pkgbuild.py:707: SyntaxWarning: invalid escape sequence '\.'
  "'^/usr/lib/python{version.major}\.{version.minor}/{parent}"
/usr/bin/pypi2pkgbuild.py:28: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
  import pkg_resources
error: No repo files found. Please run `pkgfiled -o'.

leuko commented on 2020-06-27 12:52 (UTC)

This version leads to the following error:

KeyError: 'CFLAGS'

Detailed description: https://github.com/anntzer/pypi2pkgbuild/issues/15

Installing the -git version fixes the issue.

m-pilia commented on 2020-01-02 22:01 (UTC)

@pauper: Thanks for the report, it should be fixed now. There was a missing build dependency, so setuptools was trying to install it on its own, and failing in the process.

pauper commented on 2020-01-02 21:14 (UTC) (edited on 2020-01-02 21:18 (UTC) by pauper)

Fails for me:

distutils.errors.DistutilsError: the allow-hosts option is not supported when using pip to install requirements.

Looks related to this: https://github.com/pypa/setuptools/issues/1916

m-pilia commented on 2018-08-29 06:56 (UTC)

@anntzer: Lol! Thanks, updated!

anntzer commented on 2018-08-29 06:44 (UTC)

0.2 is on PyPI now. Of course I'd argue that the correct approach would be to use pypi2pkgbuild package itself, but heh :)

m-pilia commented on 2018-08-09 16:14 (UTC)

Hello fryfrog, that problem is caused by the transision to pip 10 I think. pypi2pkgbuild was updated on GitHub just hours ago, and the fix is not a tagged release yet, so you can get the fixed version by installing the git package python-pypi2pkgbuild-git.

fryfrog commented on 2018-08-09 16:03 (UTC)

What am I missing? :/

python-pip and python-setuptools are both installed.

$ pypi2pkgbuild.py
Traceback (most recent call last):
  File "/usr/bin/pypi2pkgbuild.py", line 31, in <module>
    from pip.vcs import VersionControl
ModuleNotFoundError: No module named 'pip.vcs'