tags 970901 + patch
thanks
Hi,
> black: cannot run, "ModuleNotFoundError: No module named '_black_version'"
The following patch works for me, but there is likely a cleaner
solution; seems like the Black package maintainers are doing special
things with the version handling and I am missing some nuance.
--- a/debian/rules
+++ b/debian/rules
@@ -16,6 +16,8 @@ export VERSION=$(shell dpkg-parsechangelog -S Version|cut
-d- -f1)
%:
echo "version = '$(VERSION)'" > _black_version.py
+ mkdir -p src
+ cp _black_version.py src/
dh $@ --with sphinxdoc,python3 --buildsystem=pybuild
override_dh_auto_build:
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` la...@debian.org / chris-lamb.co.uk
`-
diff --git a/debian/rules b/debian/rules
index 09908f4..1a70969 100755
--- a/debian/rules
+++ b/debian/rules
@@ -16,6 +16,8 @@ export VERSION=$(shell dpkg-parsechangelog -S Version|cut -d-
-f1)
%:
echo "version = '$(VERSION)'" > _black_version.py
+ mkdir -p src
+ cp _black_version.py src/
dh $@ --with sphinxdoc,python3 --buildsystem=pybuild
override_dh_auto_build: