brief-engine-92399
03/09/2025, 4:59 PMfast-nail-55400
03/09/2025, 5:33 PMbrief-engine-92399
03/09/2025, 5:34 PMfast-nail-55400
03/09/2025, 5:34 PMpython_sources, you can use the overrides field to add the dependency to the dependencies field of one of the python_source targets generated from it.fast-nail-55400
03/09/2025, 5:34 PMIs there an nvcc build rule in pants I can use?That I do not know.
fast-nail-55400
03/09/2025, 5:34 PMfast-nail-55400
03/09/2025, 5:35 PMadhoc_tool and shell_command are the relevant target typesfast-nail-55400
03/09/2025, 5:35 PMpython_sources can consumebrief-engine-92399
03/09/2025, 5:37 PMfast-nail-55400
03/09/2025, 5:39 PMbrief-engine-92399
03/09/2025, 5:40 PMfast-nail-55400
03/09/2025, 5:40 PMadhoc_tool accepts any runnable target and python_source targets are runnable.brief-engine-92399
03/09/2025, 5:41 PMadhoc_tool. Are there any cython + pants examples I could look at? That should be a similar enough use case to base a solution on.fast-nail-55400
03/09/2025, 5:41 PMbrief-engine-92399
03/09/2025, 5:41 PMbrief-engine-92399
03/09/2025, 5:41 PMfast-nail-55400
03/09/2025, 5:41 PMfast-nail-55400
03/09/2025, 5:42 PMbrief-engine-92399
03/09/2025, 5:45 PMfast-nail-55400
03/09/2025, 5:47 PMpython_distribution might work, although it produces a wheel as its output. I don't know how that interacts with using a lockfile.fast-nail-55400
03/09/2025, 5:47 PMpython_distribution is used for publishing wheels to PyPI for first-party sources. The use case of consuming that wheel outside of a lockfile would be a different use case.fast-nail-55400
03/09/2025, 5:48 PMfast-nail-55400
03/09/2025, 5:48 PM