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