diff options
author | nfnty <git@nfnty.se> | 2017-02-11 15:16:57 +0100 |
---|---|---|
committer | nfnty <git@nfnty.se> | 2017-02-11 15:20:17 +0100 |
commit | 6fc1400563ae0d731faf7564d55aee93ca68feb6 (patch) | |
tree | b88c8d373d5233a861f6680910abdb41b0f24b69 | |
parent | 9b0673cf05fc07a9131cd357ca75715c6ad0f11f (diff) | |
download | ranger-6fc1400563ae0d731faf7564d55aee93ca68feb6.tar.gz |
setup.py: Use distutils by default
Fixes #805
-rw-r--r-- | doc/howto-publish-a-release.md | 2 | ||||
-rwxr-xr-x | setup.py | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/doc/howto-publish-a-release.md b/doc/howto-publish-a-release.md index 402d7b29..64d2896d 100644 --- a/doc/howto-publish-a-release.md +++ b/doc/howto-publish-a-release.md @@ -34,7 +34,7 @@ Update the website Make a PyPI release ------------------- - [ ] `git clean --force -d -x` -- [ ] `python setup.py sdist` +- [ ] `SETUPTOOLS_USE=1 python setup.py sdist` - [ ] `gpg --local-user 0x00000000 --detach-sign --armor dist/*` - [ ] `twine upload dist/*` diff --git a/setup.py b/setup.py index 3881ad85..1847a168 100755 --- a/setup.py +++ b/setup.py @@ -8,13 +8,13 @@ from hashlib import sha512 import os import shutil -try: +import ranger + +if os.environ.get('SETUPTOOLS_USE'): from setuptools import setup -except ImportError: +else: from distutils.core import setup -import ranger - SCRIPTS_PATH = 'build_scripts' |