Package Details: apio 1.4.0-1

Git Clone URL: https://aur.archlinux.org/apio.git (read-only, click to copy)
Package Base: apio
Description: Experimental micro-ecosystem for open FPGAs
Upstream URL: https://pypi.org/project/apio/
Keywords: fpga icestorm up5k yosys
Licenses: GPL-3.0-or-later
Submitter: jelly
Maintainer: Xesxen
Last Packager: Xesxen
Votes: 2
Popularity: 0.000000
First Submitted: 2018-05-18 16:29 (UTC)
Last Updated: 2026-05-20 13:03 (UTC)

Pinned Comments

Xesxen commented on 2026-03-22 23:32 (UTC)

The newer version has some extra deps that aren't in AUR or the main package list yet. Without these Apio doesn't work, so I'll tackle these sometime soon.

Latest Comments

Jolly commented on 2026-05-20 14:43 (UTC) (edited on 2026-05-20 14:45 (UTC) by Jolly)

I am getting

Exception: Crucial files were excluded from the sdist: README.md.

The fix for this seems to be to add README.md to the sdist list through the sed command.

  sed -i '/\[tool.flit.sdist\]/a include = ["pyproject.toml", "LICENSE", "README.md", "apio/"]' pyproject.toml

Xesxen commented on 2026-05-17 15:12 (UTC)

Not orphaned, haven't had time yet to patch things up yet. I'll take a look again :)

Jolly commented on 2026-05-15 17:30 (UTC) (edited on 2026-05-15 17:31 (UTC) by Jolly)

Is this package orphaned? If this not the case

pkgname=apio
_name=apio
pkgver=1.4.0
pkgrel=1
pkgdesc="Command-line FPGA design suite"
arch=('any')
url="https://pypi.org/project/apio/"
license=('GPL-3.0-or-later')
depends=(python-pyusb python-rich bash python-debugpy python-jsonschema python-protobuf scons python-configobj python python-click python-requests python-pyserial python-vcdvcd)
makedepends=(python-build python-installer python-wheel)
optdepends=(python-vcd)
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
sha256sums=('7587cbef11602f0fc918a0c502b8a64cba570d6ab8e829c13ea82c512f7f00a6')

optdepends=(
    'python-blackiceprog-git: For Blackice FPGAs support'
    # 'python-litterbox: For CAT Board support' # Not in AUR
    'python-tinyfpgab-git: For TinyFPGA B2 boards support'
    'python-icefunprog-git: For iceFUN FPGAs support'
    'python-apollo-fpga: For Cynthion support'
)

prepare() {
    cd "$srcdir/$pkgname-$pkgver"
    # Add include section for Flit
    sed -i '/\[tool.flit.sdist\]/a include = ["pyproject.toml", "README.md", "LICENSE", "apio/__init__.py"]' pyproject.toml
}

build() {
  cd "${_name}-$pkgver"

  # Arch Repository only has flit>=4.0
  # Remove it when the apio maintainers update the package
  python -m venv build-venv

  source build-venv/bin/activate

  pip install "flit<4"

  python -m flit build

  deactivate
}


package() {
    cd $_name-$pkgver

    install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
    python -m installer --destdir="$pkgdir" dist/*.whl
    cp -a apio/* "$pkgdir/usr/lib/python3.14/site-packages/apio/"
}

Seems to work for me. I added the python-vcdvcd to AUR myself.

Xesxen commented on 2026-03-22 23:32 (UTC)

The newer version has some extra deps that aren't in AUR or the main package list yet. Without these Apio doesn't work, so I'll tackle these sometime soon.

zayer commented on 2024-08-07 10:07 (UTC)

Awesome, thank you very much @Xesxen

Xesxen commented on 2024-08-06 22:07 (UTC)

@zayer Both the out-of-date and new release notifications slipped by me. I've updated the package to the latest version again.

zayer commented on 2024-08-04 16:01 (UTC)

This package version seems to be obsolete. Current version is 0.9.5. Do you want me to take care about maintaining it?

MrAureliusR commented on 2023-01-31 19:44 (UTC)

Here's a patch for the PKGBUILD that corrects the errors and works on the latest Arch as of Jan 31, 2023: https://0x0.st/oFGb.patch

That link will probably only be accessible for under a year, so if you're reading this in the future, you essentially need to change the "python-install" to "python-installer" and then correct "-m install" to "-m installer" and remove the "--optimize=1".

gururise commented on 2022-06-28 17:44 (UTC) (edited on 2022-06-28 17:45 (UTC) by gururise)

I get the following build error:

Compiling '.install-cache/pkg/apio/resources.py'...
Compiling '.install-cache/pkg/apio/util.py'...
Listing '.install-cache/pkg/apio-0.8.0.dist-info'...
Traceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 187, in _run_module_as_main
    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
  File "/usr/lib/python3.10/runpy.py", line 146, in _get_module_details
    return _get_module_details(pkg_main_name, error)
  File "/usr/lib/python3.10/runpy.py", line 110, in _get_module_details
    __import__(pkg_name)
  File "/usr/lib/python3.10/site-packages/pytest/__init__.py", line 5, in <module>
    from _pytest._code import ExceptionInfo
  File "/usr/lib/python3.10/site-packages/_pytest/_code/__init__.py", line 2, in <module>
    from .code import Code
  File "/usr/lib/python3.10/site-packages/_pytest/_code/code.py", line 43, in <module>
    from _pytest._io import TerminalWriter
  File "/usr/lib/python3.10/site-packages/_pytest/_io/__init__.py", line 1, in <module>
    from .terminalwriter import get_terminal_width
  File "/usr/lib/python3.10/site-packages/_pytest/_io/terminalwriter.py", line 10, in <module>
    from _pytest.compat import final
  File "/usr/lib/python3.10/site-packages/_pytest/compat.py", line 243, in <module>
    @attr.s
AttributeError: module 'attr' has no attribute 's'

I even tried pip install attr and pip install attrs, but still same error.

s-ol commented on 2019-03-09 20:40 (UTC)

python-click was updated to v7, which triggers a minor regression that has been fixed in a PR by CounterPillow. temporary fix until merge:

source=("<https://github.com/CounterPillow/apio/archive/click-version.zip>")
md5sums=('SKIP')

build() {
  cd "$pkgname-click-version"

  python setup.py build
}

package() {
  cd "$pkgname-click-version"

  python setup.py install --root="$pkgdir"/  --optimize=1
}