summary refs log tree commit diff stats
path: root/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py47
1 files changed, 24 insertions, 23 deletions
diff --git a/setup.py b/setup.py
index 17cfc660..587b52c0 100755
--- a/setup.py
+++ b/setup.py
@@ -17,26 +17,27 @@
 import distutils.core
 import ranger
 
-distutils.core.setup(
-	name='ranger',
-	description='Vim-like file manager',
-	version=ranger.__version__,
-	author=ranger.__author__,
-	author_email=ranger.__email__,
-	license=ranger.__license__,
-	url='http://savannah.nongnu.org/projects/ranger',
-	scripts=['scripts/ranger'],
-	data_files=[('share/man/man1', ['doc/ranger.1'])],
-	package_data={'ranger': ['data/*']},
-	packages=('ranger',
-	          'ranger.api',
-	          'ranger.colorschemes',
-	          'ranger.container',
-	          'ranger.core',
-	          'ranger.defaults',
-	          'ranger.ext',
-	          'ranger.fsobject',
-	          'ranger.gui',
-	          'ranger.gui.widgets',
-	          'ranger.help',
-	          'ranger.shared'))
+if __name__ == '__main__':
+	distutils.core.setup(
+		name='ranger',
+		description='Vim-like file manager',
+		version=ranger.__version__,
+		author=ranger.__author__,
+		author_email=ranger.__email__,
+		license=ranger.__license__,
+		url='http://savannah.nongnu.org/projects/ranger',
+		scripts=['scripts/ranger'],
+		data_files=[('share/man/man1', ['doc/ranger.1'])],
+		package_data={'ranger': ['data/*']},
+		packages=('ranger',
+		          'ranger.api',
+		          'ranger.colorschemes',
+		          'ranger.container',
+		          'ranger.core',
+		          'ranger.defaults',
+		          'ranger.ext',
+		          'ranger.fsobject',
+		          'ranger.gui',
+		          'ranger.gui.widgets',
+		          'ranger.help',
+		          'ranger.shared'))