astrand / pyobfuscate

pyobfuscate
GNU General Public License v2.0
613 stars 161 forks source link

Install location hardcoded as `/usr/bin` #19

Open charles-dyfis-net opened 7 years ago

charles-dyfis-net commented 7 years ago

Ticket inspired by http://stackoverflow.com/questions/43600414/error-errno-1-operation-not-permitted-usr-bin-pyobfuscate-macos-sierra/43600504


The setup.py for pyobfuscate treats the executable as data. This bypasses several desirable behaviors:


To fix this:

data_files=[('/usr/bin', ['pyobfuscate'])]

should be replaced with:

scripts=['pyobfuscate']
TQwan commented 6 years ago

I made a fork that fixes this issue: https://github.com/TQwan/pyobfuscate And pull request for the original repository here: https://github.com/astrand/pyobfuscate/pull/20 All the author has to do is click the merge button, since it's compatible with master branch. :wink: