With version 60.0.0 setuptools changed to a local installation of distutils. This seems to break the installation of swid-generator (causing an `importlib.metadata.PackageNotFoundError: swid-generator` error). Note that while Debian ships setuptools 52.0.0, `python-daemon` recently added a dependency on `setuptools>=62.4.0`, which installs that version that's then later used to install swid-generator. The main difference seems to be that the local version installs the package in `/usr/lib/python3.9/site-packages`, while the stdlib version does so in `/usr/local/lib/python3.9/dist-packages` (similarly for the `swid_generator` script and the `distro` dependency). Not sure if there is a better/proper way to fix this. Might just be an issue with Debian bullseye and mixing system packages with those installed via pip3.
21 lines
568 B
Makefile
21 lines
568 B
Makefile
#!/usr/bin/make
|
|
|
|
PKG = swidGenerator
|
|
REV = v1.1.0
|
|
DIR = $(PKG)-$(REV)
|
|
TAR = $(PKG)-$(REV).tar.gz
|
|
SRC = https://github.com/strongswan/$(PKG)/archive/$(REV).tar.gz
|
|
|
|
all: install
|
|
|
|
$(TAR):
|
|
wget --ca-directory="/usr/share/ca-certificates/mozilla" $(SRC) -O $(TAR)
|
|
|
|
.$(PKG)-unpacked-$(REV): $(TAR)
|
|
# a tag's "v" prefix is not reflected in the directory name in the archive
|
|
[ -d $(DIR) ] || (mkdir -p $(DIR); tar -xf $(TAR) --strip-components=1 -C $(DIR))
|
|
@touch $@
|
|
|
|
install: .$(PKG)-unpacked-$(REV)
|
|
cd $(DIR) && SETUPTOOLS_USE_DISTUTILS=stdlib python3 setup.py install
|