Files
ports/science/lamprop/files/patch-setup.py
T
Max Brazhnikov be837bca6f science/lamprop:
- Update to 2020.12.28
- The port does not install Python modules, therefore remove PKGNAMEPREFIX

PR:		252287
Submitted by:	(maintainer)
2021-01-06 16:06:28 +00:00

13 lines
417 B
Python

--- setup.py.orig 2020-12-29 15:45:52 UTC
+++ setup.py
@@ -81,7 +81,8 @@ def mkarchive(name, modules, main="__main__.py"):
main: Name of the main file. Defaults to __main__.py
"""
std = "__main__.py"
- shebang = b"#!/usr/bin/env python\n"
+ with open(sys.argv[0], "rb") as f:
+ shebang = f.readline()
if isinstance(modules, str):
modules = [modules]
if main != std: