diff options
-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' |