commit fb2734b074865ba2af55d18f966a82ae8279f96c Author: Damian Johnson atagar@torproject.org Date: Sat May 24 15:10:44 2014 -0700
Correcting setup.py for tor-prompt
Patch from Yawning that corrects two things...
* Doesn't hardcode tor-prompt to install to /usr/bin so the user can customize it. * Installs the prompt's settings.cfg (without which it won't run). --- setup.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/setup.py b/setup.py index 45071e5..200f1d8 100644 --- a/setup.py +++ b/setup.py @@ -53,8 +53,8 @@ setup( provides = ['stem'], cmdclass = {'build_py': build_py}, keywords = 'tor onion controller', - data_files = [ - ('/usr/bin', ['tor-prompt']) - ], + scripts = ['tor-prompt'], + package_dir = {'stem.interpreter': 'stem/interpreter'}, + package_data = { 'stem.interpreter': ['settings.cfg']}, )
tor-commits@lists.torproject.org