diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2012-07-17 17:33:46 +0100 |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2012-07-17 17:33:46 +0100 |
commit | 4e214226b9bac050901d01b9218fef6a98e7c81f (patch) | |
tree | f6bee432a077e40b7205d1de0f98e5787ffd2b41 /Lib/venv | |
parent | 71a97cf0dda2e9bae0e7d5f72e8f575282b92221 (diff) | |
download | cpython-4e214226b9bac050901d01b9218fef6a98e7c81f.tar.gz |
Closes #15307: symlinks now work on OS X with framework Python builds. Patch by Ronald Oussoren.
Diffstat (limited to 'Lib/venv')
-rw-r--r-- | Lib/venv/__init__.py | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/Lib/venv/__init__.py b/Lib/venv/__init__.py index 38ed54c88a..8d2deb7385 100644 --- a/Lib/venv/__init__.py +++ b/Lib/venv/__init__.py @@ -82,13 +82,6 @@ class EnvBuilder: :param env_dir: The target directory to create an environment in. """ - if (self.symlinks and - sys.platform == 'darwin' and - sysconfig.get_config_var('PYTHONFRAMEWORK')): - # Symlinking the stub executable in an OSX framework build will - # result in a broken virtual environment. - raise ValueError( - 'Symlinking is not supported on OSX framework Python.') env_dir = os.path.abspath(env_dir) context = self.ensure_directories(env_dir) self.create_configuration(context) @@ -366,8 +359,7 @@ def main(args=None): action='store_true', dest='system_site', help='Give the virtual environment access to the ' 'system site-packages dir.') - if os.name == 'nt' or (sys.platform == 'darwin' and - sysconfig.get_config_var('PYTHONFRAMEWORK')): + if os.name == 'nt': use_symlinks = False else: use_symlinks = True |