From 6fc1400563ae0d731faf7564d55aee93ca68feb6 Mon Sep 17 00:00:00 2001 From: nfnty Date: Sat, 11 Feb 2017 15:16:57 +0100 Subject: setup.py: Use distutils by default Fixes #805 --- doc/howto-publish-a-release.md | 2 +- 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' -- cgit 1.4.1-2-gfad0