1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
From: Pietro Battiston <me@pietrobattiston.it>
Date: Sun, 15 Jun 2014 22:15:28 +0200
Subject: Delete failed attempt of doing the right thing in setup.py -
debian/dirs does it better
---
setup.py | 26 --------------------------
1 file changed, 26 deletions(-)
diff --git a/setup.py b/setup.py
index 671d47a..276f3de 100644
--- a/setup.py
+++ b/setup.py
@@ -29,29 +29,3 @@ dist = setup(name='Nautilus scripts manager',
'Topic :: Utilities',
]
)
-
-if 'install' in dist.command_options:
- if 'prefix' in dist.command_options['install']:
- prefix = dist.command_options['install']['prefix'][1]
- else:
- prefix = sys.prefix
-
- # "prefix" usually starts with a "/", which disturbs our "path.join()"s below:
- if prefix.startswith('/'):
- prefix = prefix[1:]
-
- if prefix.endswith('/usr/local'):
- # We don't want /usr/local/nautilus-scripts; it (still) wouldn't be recognized by nautilus-script(s)-manager.
- prefix = prefix[:-6]
- # However we don't want to hardcode '/usr', since i.e. debian packages first
- # installs to a bogus directory.
-
- if 'root' in dist.command_options['install']:
- root = dist.command_options['install']['root'][1]
- else:
- root = '/'
-
- scripts_dir = path.join(root, prefix, 'share/nautilus-scripts/')
-
- if not path.exists(scripts_dir):
- mkdir(scripts_dir)
|