diff options
author | agronholm <none@none> | 2009-09-23 02:35:15 +0300 |
---|---|---|
committer | agronholm <none@none> | 2009-09-23 02:35:15 +0300 |
commit | 2e5e7b750801a07eed519303d95799f0760b576b (patch) | |
tree | cd92d9422808c1cbc1a83998d3dcc7b60f00aaf4 /distribute_setup.py | |
parent | f6611f2dd63baa7d7dad127d23cdcc4a6487802e (diff) | |
download | external_python_setuptools-2e5e7b750801a07eed519303d95799f0760b576b.tar.gz external_python_setuptools-2e5e7b750801a07eed519303d95799f0760b576b.tar.bz2 external_python_setuptools-2e5e7b750801a07eed519303d95799f0760b576b.zip |
Get rid of the ugly Jython hack since the subprocess module is now always available
--HG--
branch : distribute
extra : rebase_source : 029d8b3ffa7c7ed71ae2fcae0cfb969624cc67d0
Diffstat (limited to 'distribute_setup.py')
-rw-r--r-- | distribute_setup.py | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/distribute_setup.py b/distribute_setup.py index e8a1f291..83686932 100644 --- a/distribute_setup.py +++ b/distribute_setup.py @@ -28,7 +28,6 @@ import subprocess from distutils import log -IS_JYTHON = sys.platform.startswith('java') DEFAULT_VERSION = "0.6.2" DEFAULT_URL = "http://pypi.python.org/packages/source/d/distribute/" SETUPTOOLS_PKG_INFO = """\ @@ -54,10 +53,7 @@ def quote(c): def python_cmd(cmd): python = quote(sys.executable) cmd = quote(cmd) - if IS_JYTHON: - return subprocess.Popen([python, cmd]).wait() == 0 - args = [os.P_WAIT, python, python] + cmd.split() + [os.environ] - return os.spawnle(*args) == 0 + return subprocess.call([python, cmd]) def _install(tarball): @@ -371,10 +367,7 @@ def _relaunch(): log.warn('Relaunching...') # we have to relaunch the process args = [sys.executable] + sys.argv - if IS_JYTHON: - sys.exit(subprocess.call(args)) - else: - sys.exit(os.spawnv(os.P_WAIT, sys.executable, args)) + sys.exit(subprocess.call(args)) def extractall(self, path=".", members=None): |