Skip to content

Commit 4a11748

Browse files
committed
bug fix
1 parent 0b7a67b commit 4a11748

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

pythonbrew/installer/pythoninstaller.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,6 @@ def install_setuptools(self):
152152
if options.no_setuptools:
153153
logger.info("Skip installation setuptools.")
154154
return
155-
if re.match("^Python-3.*", pkgname):
156-
is_python3 = True
157-
else:
158-
is_python3 = False
159155
download_url = DISTRIBUTE_SETUP_DLSITE
160156
filename = Link(download_url).filename
161157
download_file = os.path.join(PATH_DISTS, filename)
@@ -171,7 +167,7 @@ def install_setuptools(self):
171167
s.check_call("%s %s" % (path_python, filename))
172168
# Using easy_install install pip
173169
easy_install = os.path.join(install_dir, 'bin', 'easy_install')
174-
if os.path.isfile(easy_install) and not is_python3:
170+
if os.path.isfile(easy_install):
175171
logger.info("Installing pip into %s" % install_dir)
176172
s.check_call("%s pip" % (easy_install))
177173
except:
@@ -197,6 +193,8 @@ def __init__(self, arg, options):
197193
self.configure_options = '--with-universal-archs="intel" --enable-universalsdk=/ MACOSX_DEPLOYMENT_TARGET=10.6'
198194
elif is_python27(version):
199195
self.configure_options = '--with-universal-archs="intel" --enable-universalsdk=/ MACOSX_DEPLOYMENT_TARGET=10.6'
196+
else:
197+
self.configure_options = '--with-universal-archs="intel" --enable-universalsdk=/ MACOSX_DEPLOYMENT_TARGET=10.6'
200198

201199
def patch(self):
202200
version = self.pkg.version

0 commit comments

Comments
 (0)