You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have check-manifest installed in a Buildout (the core Plone development buildout). Running check-manifest works in some repos (plone.api) but not in others (zope.interface):
$ ../../bin/check-manifest
['/Users/maurits/community/plone-coredev/6.1/bin/python3.12', '-m', 'build', '--sdist', '.', '--outdir', '/var/folders/26/1plvhxbs6yx7g_82v2xdxc500000gn/T/check-manifest-h6nvj8ay-sdist'] failed (status 1):
/Users/maurits/community/plone-coredev/6.1/bin/python3.12: No module named build
In the one that works, there is a pyproject.toml with this:
The important difference is the build-backend line (which I might actually need to add in the first repo as well), as this makes check-manifest call python -m build. This fails because build is not available in the python. Buildout creates a script like this:
So the build module is available in the script, but not in the Python.
If check-manifest is installed in a Python venv instead of by Buildout it should work fine. But maybe check-manifest could take over some lines from zest.releaser which imports the build module to use it in Python code.
The alternative would be for me (and others who have this problem) to pip install build in the venv that Buildout uses. I already think it likely that I will add build as dependency of zc.buildout 4, which would also solve this.
The text was updated successfully, but these errors were encountered:
Well, build has API documentation, hinting that maybe it has a supported public API for invoking it from Python code directly rather than from a script. Unfortunately it doesn't have any usage examples, so than you for linking to zest.releaser's use of it.
As you can see, I had already considered calling the Python code directly, so all that needs to happen is someone needs to figure out how to build an sdist while optionally skipping build isolation, and do that while intercepting any output from going to sys.stdout/stderr, but printing it only if an error happens.
I have
check-manifest
installed in a Buildout (the core Plone development buildout). Runningcheck-manifest
works in some repos (plone.api
) but not in others (zope.interface
):In the one that works, there is a
pyproject.toml
with this:The one where it fails, has this:
The important difference is the
build-backend
line (which I might actually need to add in the first repo as well), as this makes check-manifest callpython -m build
. This fails becausebuild
is not available in the python. Buildout creates a script like this:So the
build
module is available in the script, but not in the Python.If
check-manifest
is installed in a Python venv instead of by Buildout it should work fine. But maybecheck-manifest
could take over some lines fromzest.releaser
which imports thebuild
module to use it in Python code.The alternative would be for me (and others who have this problem) to
pip install build
in the venv that Buildout uses. I already think it likely that I will addbuild
as dependency ofzc.buildout
4, which would also solve this.The text was updated successfully, but these errors were encountered: