summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lepus.uberspace.de>2015-07-14 02:11:20 +0200
committerhut <hut@lepus.uberspace.de>2015-07-14 02:11:20 +0200
commit9138f85e7bde80daf5307093ca044fb645836cc5 (patch)
tree4b79f00bf6fe14a4d62d2cc4898da74a683411e5
parentffc86e63f325a544d533b2a605e112ebc044f90e (diff)
parent8b958c577a7f5f484db42b7c26b0340e14fd9351 (diff)
downloadranger-9138f85e7bde80daf5307093ca044fb645836cc5.tar.gz
Merge branch 'setuptools' of https://github.com/dufferzafar/ranger
-rw-r--r--.gitignore1
-rwxr-xr-xsetup.py9
2 files changed, 8 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index 5357ead2..09f1a7e6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,5 @@
 *~
+*.egg-info
 *.pyc
 *.pyo
 stuff/*
diff --git a/setup.py b/setup.py
index 1e074f8d..cd3b80de 100755
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,12 @@
 # This file is part of ranger, the console file manager.
 # License: GNU GPL version 3, see the file "AUTHORS" for details.
 
-import distutils.core
+# Setuptools is superior but not available in the stdlib
+try:
+    from setuptools import setup
+except ImportError:
+    from distutils.core import setup
+
 import os.path
 import ranger
 
@@ -11,7 +16,7 @@ def _findall(directory):
             if os.path.isfile(os.path.join(directory, f))]
 
 if __name__ == '__main__':
-    distutils.core.setup(
+    setup(
         name='ranger',
         description='Vim-like file manager',
         long_description=ranger.__doc__,