-
Notifications
You must be signed in to change notification settings - Fork 238
Description
Hey, it's me again.
I'm trying to package this up for a system where python is python 3. There's python2 on this system, so what I'm currently doing is running sed to replace the hashbangs from /usr/bin/env python to /usr/bin/env python2. I don't know if you guys could do this in the source itself; I don't know if other systems have python2, if not that, then perhaps they do have python2.7?
Another hurdle is that you guys have lines like these in the makefile:
echo '#!/bin/sh\npython -OO $(LIB_PATH)/syncplay/syncplayClient.py "$$@"' > $(BIN_PATH)/syncplay
I'm not quite sure why you guys are prepending this line, since the affected files already have the #!/usr/bin/env python hashbang? The problem these lines pose is the package I'm creating runs sed to change the hashbang to use python2 instead of just python, but then the makefile goes and replaces the hashbang yet again, overwriting my the sed fix.
Anyways, these are the problems I'm facing right now, and I'm wondering what you guys think about them, if you can propose any ideas for solving them. The makefile lines I mentioned seem unnecessary to me, but perhaps you guys have good reasons.