pyln-spec: Clean up the setup.py files

This centralizes the setup.py file, and parametrizes it so it can
auto-detect which bolt we are building. It also uses trick 3 from [1]
to avoid importing the package itself during the manifest creation,
which'd cause an import error due to missing dependencies.

[1] https://packaging.python.org/guides/single-sourcing-package-version/
This commit is contained in:
Christian Decker
2021-03-19 14:39:25 +01:00
committed by Rusty Russell
parent 6b0a7b173c
commit 0dd57cbf3c
6 changed files with 57 additions and 36 deletions

View File

@@ -1,4 +0,0 @@
from pyln.spec.bolt1 import __version__, desc
from boltsetup import bolt_setup
bolt_setup(1, __version__, desc)

View File

@@ -0,0 +1 @@
../setup.py