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'
 
>22bb7e35 ^
3dbefa71 ^

22bb7e35 ^
3dbefa71 ^
a02baa33 ^
22bb7e35 ^
3dbefa71 ^


22bb7e35 ^
3dbefa71 ^
22bb7e35 ^
3dbefa71 ^
22bb7e35 ^


3dbefa71 ^
a02baa33 ^
22bb7e35 ^




a02baa33 ^
22bb7e35 ^
0a8001b2 ^

a02baa33 ^
0a8001b2 ^


a02baa33 ^
0a8001b2 ^



a02baa33 ^
0a8001b2 ^




a02baa33 ^
0a8001b2 ^
22bb7e35 ^
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82