summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--doc/howto-publish-a-release.md2
-rwxr-xr-xsetup.py8
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'
 
d2bcb60b58fd89194cc00e956821e2c204'>^
a73a882 ^
b38905b ^
a73a882 ^
292ccc4 ^
b55bd70 ^


292ccc4 ^
ce04a66 ^
19da197 ^


b55bd70 ^

19da197 ^


b55bd70 ^

ce04a66 ^




b55bd70 ^

ce04a66 ^


b55bd70 ^

ce04a66 ^
a73a882 ^

b55bd70 ^

a73a882 ^

d6a6eca ^
b55bd70 ^
e21d93b ^
a73a882 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62