From 06766b913566dcdb00c746634f009edecef8da0a Mon Sep 17 00:00:00 2001 From: wtracy Date: Mon, 22 Apr 2013 05:46:04 -0700 Subject: [PATCH] Ensure that the bash file is updated to correctly reflect distutil's idea of the install location, rather than just assuming it is in sys.prefix. --- setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 2c6b7e5..5b7b567 100644 --- a/setup.py +++ b/setup.py @@ -40,7 +40,9 @@ def run(self): bashrc_path = expanded break - prefix = os.path.join(sys.prefix, 'hop') + 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'