diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2012-07-17 16:33:46 (GMT) |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2012-07-17 16:33:46 (GMT) |
commit | 90db661b4335eaf7a3cb5e9a4524ae9707eeaf76 (patch) | |
tree | b73b67deb7feab489b2f43d8cc43778e8ac8cb23 /Lib/venv | |
parent | 11718620ef87268fae07ba0809fec63b9c6d15e3 (diff) | |
download | cpython-90db661b4335eaf7a3cb5e9a4524ae9707eeaf76.zip cpython-90db661b4335eaf7a3cb5e9a4524ae9707eeaf76.tar.gz cpython-90db661b4335eaf7a3cb5e9a4524ae9707eeaf76.tar.bz2 |
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 38ed54c..8d2deb7 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 |