Page MenuHomeFreeBSD

Simplify shebang fix for python
AbandonedPublic

Authored by sunpoet on Aug 20 2017, 10:46 AM.
Tags
None
Referenced Files
Unknown Object (File)
Jan 17 2024, 10:33 AM
Unknown Object (File)
Jan 10 2024, 2:58 AM
Unknown Object (File)
Aug 27 2023, 9:06 AM
Unknown Object (File)
May 8 2023, 2:52 PM
Unknown Object (File)
Mar 22 2023, 7:57 PM
Unknown Object (File)
Jan 27 2023, 2:25 AM
Unknown Object (File)
Dec 27 2022, 5:04 AM
Unknown Object (File)
Dec 12 2022, 9:22 PM
Subscribers

Details

Reviewers
antoine
Group Reviewers
O5: Ports Framework(Owns No Changed Paths)
portmgr
Summary

Since bsd.default-versions.mk is included at the beginning unconditionally,
we could simplify shebang fix for python to avoid unnecessary USES=python:build
added just for setting python_CMD.

Take r439611 for example, we could remove unnecessary USES=python:build after
this patch landed.

Test Plan

Request exp-run.

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 11176
Build 11557: arc lint + arc unit

Event Timeline

antoine added a subscriber: antoine.

This is wrong, for ports that have USES= python:3.3+ the shebang will be changed to /usr/local/bin/python2.7

This revision now requires changes to proceed.Aug 20 2017, 10:56 AM

Also currently you can use:
USES= python shebangfix
PYTHON_NO_DEPENDS= yes