diff --git a/setup.py b/setup.py index 01c617c..7df81c6 100644 --- a/setup.py +++ b/setup.py @@ -41,7 +41,12 @@ def run(self): bashrc_path = expanded break - prefix = os.path.join(sys.prefix, 'hop') + ### https://github.com/Cue/hop/pull/5 + self.set_undefined_options('install', + ('install_data', 'install_dir')) + prefix = os.path.join(self.install_dir, 'hop') + ### + required_commands = { '/hop.bash':"# Initialize the 'hop' script\n source %s" % os.path.join(prefix, 'hop.bash'), 'hop-lua-script':'# Define an entry point for the lua script version of hop\n'