On Mon, Oct 16, 2023 at 5:18 PM Phil Howard <phil@xxxxxxxxxxxxx> wrote: > > Optionally vendor libgpiod source into sdist so that the > Python module can be built from source, even with a missing > or mismatched system libgpiod. > > Add optional environment variable "LINK_SYSTEM_LIBGPIOD=1" > so that the sdist package can optionally be built and > linked against a compatible system libgpiod. > > eg: LINK_SYSTEM_LIBGPIOD=1 pip install libgpiod > > Update build to add an additional sdist target for upload > to pypi. Call setup.py with "GPIOD_VERSION_STR" set, which > triggers a vendored package build. "GPIOD_VERSION_STR" is > saved to "gpiod-version-str.txt" and included in the sdist > for standalone builds. > > "GPIOD_VERSION_STR" must be specified in order to produce > a standalone buildable sdist package, this requirement > implicitly preserves the old build behaviour. > > Signed-off-by: Phil Howard <phil@xxxxxxxxxxxxx> > --- Alright, this looks and works well. Before I merge it: the package still shows up in 'pip freeze' as libgpiod. Now that we control the name 'gpiod' on pypi, should we change it to 'gpiod' instead? Once I apply the patch - how would we go about making a new proper release? Do you also want to add a better homepage to setup.py so that users of pypi don't bounce off the nonexistent documentation? Bart