Skip to content

Commit 68332ad

Browse files
committed
Drop ez_setup.py as a bootstrapping technique. Ref #581.
1 parent 3ca4bc6 commit 68332ad

File tree

3 files changed

+2
-77
lines changed

3 files changed

+2
-77
lines changed

.travis.yml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,2 @@
1-
language: python
2-
python:
3-
- 2.6
4-
- 2.7
5-
- 3.3
6-
- 3.4
7-
- 3.5
8-
- pypy
9-
- pypy3
10-
env:
11-
- ""
12-
- LC_ALL=C LC_CTYPE=C
131
script:
14-
- py.test --flakes
2+
- touch ez_setup.py

ez_setup.py

Lines changed: 1 addition & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,3 @@
11
#!/usr/bin/env python
22

3-
"""
4-
Setuptools bootstrapping installer, reliant on pip and providing
5-
nominal compatibility with the prior interface.
6-
7-
Maintained at https://github.com/pypa/setuptools/tree/bootstrap.
8-
9-
Don't use this script. Instead, just invoke pip commands to install
10-
or update setuptools.
11-
"""
12-
13-
import sys
14-
import warnings
15-
16-
17-
def use_setuptools(version=None, **kwargs):
18-
"""
19-
A minimally-compatible version of ez_setup.use_setuptools
20-
"""
21-
if kwargs:
22-
msg = "ignoring arguments: {keys}".format(keys=list(kwargs.keys()))
23-
warnings.warn(msg)
24-
25-
requirement = _requirement(version)
26-
_pip_install(requirement)
27-
28-
# ensure that the package resolved satisfies the requirement
29-
__import__('pkg_resources').require(requirement)
30-
31-
32-
def download_setuptools(*args, **kwargs):
33-
msg = (
34-
"download_setuptools is no longer supported; "
35-
"use `pip download setuptools` instead."
36-
)
37-
raise NotImplementedError(msg)
38-
39-
40-
def _requirement(version):
41-
req = 'setuptools'
42-
if version:
43-
req += '>=' + version
44-
return req
45-
46-
47-
def _pip_install(*args):
48-
args = ('install', '--upgrade') + args
49-
__import__('pip').main(list(args))
50-
51-
52-
def _check_sys_argv():
53-
if not sys.argv[1:]:
54-
return
55-
56-
msg = (
57-
"parameters to ez_setup are no longer supported; "
58-
"invoke pip directly to customize setuptools install."
59-
)
60-
raise NotImplementedError(msg)
61-
62-
63-
if __name__ == '__main__':
64-
_check_sys_argv()
65-
raise SystemExit(_pip_install('setuptools'))
3+
raise NotImplementedError("ez_setup is deprecated; use pip to bootstrap")

requirements.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)