aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/develop.py
diff options
context:
space:
mode:
authorLennart Regebro <regebro@gmail.com>2012-08-22 12:32:11 +0200
committerLennart Regebro <regebro@gmail.com>2012-08-22 12:32:11 +0200
commit9dc9fea4a5661e119f30f4cdec3ef99e46b5f919 (patch)
treefa0ff35c0a46713b41589fd6c1484f992577844f /setuptools/command/develop.py
parente19d57773e1abb8d8f3f46417b07c1617d2d91ea (diff)
downloadexternal_python_setuptools-9dc9fea4a5661e119f30f4cdec3ef99e46b5f919.tar.gz
external_python_setuptools-9dc9fea4a5661e119f30f4cdec3ef99e46b5f919.tar.bz2
external_python_setuptools-9dc9fea4a5661e119f30f4cdec3ef99e46b5f919.zip
Issue #306: Even if 2to3 is used, we build in-place under Python 2.
--HG-- branch : distribute extra : rebase_source : db4a1a3059533ad0c894f12c31e3fe1c238f4292
Diffstat (limited to 'setuptools/command/develop.py')
-rwxr-xr-xsetuptools/command/develop.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/command/develop.py b/setuptools/command/develop.py
index c8bef72e..709e349c 100755
--- a/setuptools/command/develop.py
+++ b/setuptools/command/develop.py
@@ -3,7 +3,7 @@ from distutils.util import convert_path, subst_vars
from pkg_resources import Distribution, PathMetadata, normalize_path
from distutils import log
from distutils.errors import DistutilsError, DistutilsOptionError
-import os, setuptools, glob
+import os, sys, setuptools, glob
class develop(easy_install):
"""Set up package for development"""
@@ -84,7 +84,7 @@ class develop(easy_install):
" installation directory", p, normalize_path(os.curdir))
def install_for_development(self):
- if getattr(self.distribution, 'use_2to3', False):
+ if sys.version_info >= (3,) and getattr(self.distribution, 'use_2to3', False):
# If we run 2to3 we can not do this inplace:
# Ensure metadata is up-to-date