Package Details: python-amply 0.1.6-1

Git Clone URL: https://aur.archlinux.org/python-amply.git (read-only, click to copy)
Package Base: python-amply
Description: A Python package for AMPL/GMPL datafile parsing
Upstream URL: http://github.com/willu47/amply
Licenses: EPL
Submitter: spider-mario
Maintainer: mschu
Last Packager: mschu
Votes: 1
Popularity: 0.000000
First Submitted: 2020-07-10 08:43 (UTC)
Last Updated: 2024-07-05 09:11 (UTC)

Latest Comments

flying-sheep commented on 2021-12-18 15:12 (UTC)

Working PKGBUILD:

# Maintainer: spider-mario <spidermario@free.fr>

_pkgname=amply
pkgname=python-amply
pkgver=0.1.4
pkgrel=1
pkgdesc="A Python package for AMPL/GMPL datafile parsing"
arch=("any")
license=("EPL")
url="http://github.com/willu47/amply"
depends=('python-docutils' 'python-pyparsing')
makedepends=('python-pip' 'python-wheel')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
b2sums=('78ae51f18355968c7713351267fe8a60adc797c9e0e37092f538935026898b51413f346a0faecc748a290f3fd3e4c313cfab6d0ddacfe34f76ecdb4ecd562ffb')


build() {
    cd "$srcdir/$_pkgname-$pkgver"
    python setup.py build
}

package() {
    cd "$srcdir/$_pkgname-$pkgver"
    python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 --skip-build
}

luscinius commented on 2021-12-14 16:05 (UTC) (edited on 2021-12-14 16:06 (UTC) by luscinius)

I also think python2 should be removed, it is impossible to satisfy the python2 related dependencies without writing some AUR packages.

lllf commented on 2021-05-06 14:50 (UTC) (edited on 2021-05-06 14:52 (UTC) by lllf)

No longer builds, perhaps python2 build can be removed?

==> Starting build()...
~/.cache/yay/python-amply/src/python-amply ~/.cache/yay/python-amply/src
running build
running build_py
creating build
creating build/lib
creating build/lib/amply
copying src/amply/__init__.py -> build/lib/amply
copying src/amply/amply.py -> build/lib/amply
~/.cache/yay/python-amply/src
~/.cache/yay/python-amply/src/python2-amply ~/.cache/yay/python-amply/src
WARNING: The pip package is not available, falling back to EasyInstall for handling setup_requires/test_requires; this is deprecated and will be removed in a future version.
/tmp/easy_install-RVenF3/setuptools_scm-6.0.1/src
<pkg_resources.WorkingSet object at 0x7fd138fdb450>
Traceback (most recent call last):
  File "setup.py", line 41, in <module>
    "License :: OSI Approved :: Eclipse Public License 1.0 (EPL-1.0)"
  File "/usr/lib/python2.7/site-packages/setuptools/__init__.py", line 161, in setup
    _install_setup_requires(attrs)
  File "/usr/lib/python2.7/site-packages/setuptools/__init__.py", line 156, in _install_setup_requires
    dist.fetch_build_eggs(dist.setup_requires)
  File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 721, in fetch_build_eggs
    replace_conflicting=True,
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 782, in resolve
    replace_conflicting=replace_conflicting
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1065, in best_match
    return self.obtain(req, installer)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1077, in obtain
    return installer(requirement)
  File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 777, in fetch_build_egg
    return fetch_build_egg(self, req)
  File "/usr/lib/python2.7/site-packages/setuptools/installer.py", line 70, in fetch_build_egg
    return _legacy_fetch_build_egg(dist, req)
  File "/usr/lib/python2.7/site-packages/setuptools/installer.py", line 53, in _legacy_fetch_build_egg
    return cmd.easy_install(req)
  File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 685, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 711, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 896, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1164, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1150, in run_setup
    run_setup(setup_script, args)
  File "/usr/lib/python2.7/site-packages/setuptools/sandbox.py", line 253, in run_setup
    raise
  File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__
    self.gen.throw(type, value, traceback)
  File "/usr/lib/python2.7/site-packages/setuptools/sandbox.py", line 195, in setup_context
    yield
  File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__
    self.gen.throw(type, value, traceback)
  File "/usr/lib/python2.7/site-packages/setuptools/sandbox.py", line 166, in save_modules
    saved_exc.resume()
  File "/usr/lib/python2.7/site-packages/setuptools/sandbox.py", line 141, in resume
    six.reraise(type, exc, self._tb)
  File "/usr/lib/python2.7/site-packages/setuptools/sandbox.py", line 154, in save_modules
    yield saved
  File "/usr/lib/python2.7/site-packages/setuptools/sandbox.py", line 195, in setup_context
    yield
  File "/usr/lib/python2.7/site-packages/setuptools/sandbox.py", line 250, in run_setup
    _execfile(setup_script, ns)
  File "/usr/lib/python2.7/site-packages/setuptools/sandbox.py", line 45, in _execfile
    exec(code, globals, locals)
  File "/tmp/easy_install-RVenF3/setuptools_scm-6.0.1/setup.py", line 52, in <module>

  File "/tmp/easy_install-RVenF3/setuptools_scm-6.0.1/setup.py", line 29, in scm_config
    author_email="wusher@kth.se",
  File "/tmp/easy_install-RVenF3/setuptools_scm-6.0.1/src/setuptools_scm/__init__.py", line 8, in <module>
  File "/tmp/easy_install-RVenF3/setuptools_scm-6.0.1/src/setuptools_scm/config.py", line 6, in <module>
  File "/tmp/easy_install-RVenF3/setuptools_scm-6.0.1/src/setuptools_scm/utils.py", line 41
    print(*k)
          ^
SyntaxError: invalid syntax
==> ERROR: A failure occurred in build().
    Aborting...
Error making: python-amply

luscinius commented on 2021-02-03 01:01 (UTC)

Hi I think python-pip (and python2-pip) need to be added to build dependencies, otherwise the build in a chroot using aurutils fails. Thanks.