🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #4887

Bug#1154255: prjxray: please ship fasm2frames (Python module and console script)

#4887
From: Karl Ljungkvist
Date: Tue, 17 Nov 2026 21:50
72 lines
4183 bytes
Package: prjxray
Version: 0.1+git3356.gc9f02d85+~db20211214.g0a0added-4
Severity: wishlist

Dear Maintainer,

The prjxray package ships the C++ tools (such as xc7frames2bit), and
prjxray-database ships the tile database, but neither ships the Python
part of prjxray, which includes fasm2frames. fasm2frames is a required
step in the fully open Xilinx 7-series flow that the rest of Debian
already supports:

  yosys -> nextpnr-himbaechel-xilinx -> fasm2frames -> xc7frames2bit
        -> openFPGALoader

Right now the only way to get fasm2frames is to install the prjxray
Python package from upstream into a venv with pip. I use this flow on
Debian 14 to build working bitstreams for a Digilent Cmod A7-35T
(xc7a35tcpg236-1).

Could fasm2frames be packaged, for example as a python3-prjxray binary
package that ships the prjxray Python module and /usr/bin/fasm2frames?
Its Python dependencies (from upstream's setup.py) are fasm,
intervaltree, numpy, pyjson5, pyyaml and simplejson. As far as I can
tell, fasm (https://github.com/chipsalliance/fasm) is not packaged in
Debian yet, so it would need packaging as well.

pyjson5 is not in Debian either, but fasm2frames does not need it.
Only the node-lookup code used when building the database imports it
(prjxray/node_lookup.py and NodeLookup.load_from_root_csv in
prjxray/lib.py), and upstream's setup.py already marks the dependency
for removal. fasm2frames runs, and its tests pass, without pyjson5
installed.

Note: the setup.py in the packaged upstream commit (c9f02d85) has a bug
where the installed fasm2frames console script fails with
"ModuleNotFoundError: No module named 'utils'". I have proposed a fix
here:

  https://github.com/openXC7/prjxray/pull/36

Until that is merged, the script can be run from utils/fasm2frames.py
directly.

Thanks for packaging the open FPGA toolchain!

-- System Information:
Debian Release: forky/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 7.2.15+deb14-amd64 (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_SE.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages prjxray depends on:
ii  libabsl20260526  20260526.0-2+b1
ii  libc6            2.43-7
ii  libgcc-s1        16.2.0-4
ii  libgflags2.2     2.2.2-3
ii  libstdc++6       16.2.0-4
ii  libyaml-cpp0.9   0.9.0+dfsg-10

prjxray recommends no packages.

prjxray suggests no packages.

-- no debconf information
Technical Details
Message-ID: <O0zdT-cwUv-1@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Karl Ljungkvist <k.ljungkvist@gmail.com>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1154255: prjxray: please ship fasm2frames (Python module and console script)
Date: Tue, 17 Nov 2026 22:50:01 +0100
Message-ID: <O0zdT-cwUv-1@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Tue Nov 17 21:49:10 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: 1.401
Reply-To: Karl Ljungkvist <k.ljungkvist@gmail.com>, 1154255@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: pkg-electronics-devel@alioth-lists.debian.net
X-Debian-Pr-Message: report 1154255
X-Debian-Pr-Package: prjxray
X-Debian-Pr-Source: prjxray
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Mailer: reportbug 13.2.0+nmu1
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2003202
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 72
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Tue, 17 Nov 2026 22:47:08 +0100
X-Original-Message-ID: <179495202880.6296.3503593512889724871.reportbug@zen>