pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: How to systematically replace: #!/usr/bin/env python3



On Sun, Jan 05, 2025 at 05:25:52PM +0530, Mayuresh wrote:
> When building elinks 0.18, a build time python script is having its
> interpreter as:
> 
> #!/usr/bin/env python3
> 
> In a sandbox when python gets installed, the python binary has suffix
> PY_VER_SUFFIX.
> 
> I tried using REPLACE_TOOL_PYTHON. But it leaves python3 untouched.
> 
> How should this be handled, so that this does not fail in bulk builds in a
> sandbox?

Include lang/python/tool.mk, it will provide a symlink that can be
found by the build.

For installed files, use lang/python/application.mk and REPLACE_PYTHON.
 Thomas


Home | Main Index | Thread Index | Old Index