Skip to content

Install location hardcoded as /usr/bin #19

@charles-dyfis-net

Description

@charles-dyfis-net

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:

  • In general, distutils will honor --prefix, --exec-prefix, or to try to install to a location under the user's home directory if passed --user; hardcoding /usr/bin bypasses all of these behaviors.
  • In general, distutils will honor the install location for an active virtualenv.
  • In general, distutils will fix up the shebang used by any installed script to point to a locally available interpreter.

To fix this:

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

should be replaced with:

scripts=['pyobfuscate']

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions