Commit 9d50157d authored by Jason R. Coombs's avatar Jason R. Coombs

Remove Python 2.3 support from ez_setup.py

parent d45dccf4
...@@ -19,6 +19,7 @@ import sys ...@@ -19,6 +19,7 @@ import sys
import tempfile import tempfile
import tarfile import tarfile
import optparse import optparse
import subprocess
from distutils import log from distutils import log
...@@ -27,29 +28,12 @@ try: ...@@ -27,29 +28,12 @@ try:
except ImportError: except ImportError:
USER_SITE = None USER_SITE = None
try:
import subprocess
def _python_cmd(*args):
args = (sys.executable,) + args
return subprocess.call(args) == 0
except ImportError:
# will be used for python 2.3
def _python_cmd(*args):
args = (sys.executable,) + args
# quoting arguments if windows
if sys.platform == 'win32':
def quote(arg):
if ' ' in arg:
return '"%s"' % arg
return arg
args = [quote(arg) for arg in args]
return os.spawnl(os.P_WAIT, sys.executable, *args) == 0
DEFAULT_VERSION = "0.7b4" DEFAULT_VERSION = "0.7b4"
DEFAULT_URL = "http://pypi.python.org/packages/source/s/setuptools/" DEFAULT_URL = "http://pypi.python.org/packages/source/s/setuptools/"
def _python_cmd(*args):
args = (sys.executable,) + args
return subprocess.call(args) == 0
def _install(tarball, install_args=()): def _install(tarball, install_args=()):
# extracting the tarball # extracting the tarball
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment