I forked https://github.com/feross/SpoofMAC to https://github.com/pteek/SpoofMAC.
If I change line 14 from
execfile('spoofmac/version.py', {}, local_results)
to
exec(compile(open('spoofmac/version.py').read(), 'spoofmac/version.py', 'exec'), {}, local_results)
(Needed to make it work on python 3.x)
The changed setup.py does not execute. the error given is:
C:\Python soft\SpoofMAC-master>setup.py install
File "C:\Python soft\SpoofMAC-master\setup.py", line 3
env python
^
SyntaxError: invalid syntax
If I make the same change manually on my PC, the file works.
the file from github AFTER CHANGE is 906 bytes. The file on PC AFTER CHANGE is 941 bytes.
It seems like there is some encoding problem. How do I fix it?