@@ -47,37 +47,38 @@ least two possible ways to get access to these in a virtual environment.
47
47
One often suggested solution is to use the ``--system-site-packages `` option
48
48
to virtualenv when creating an environment. This adds all system wide packages
49
49
to the virtual environment. However, this breaks the isolation between the
50
- virtual environment and the system install. Among other issues it result in
51
- hard to debug problems with system packages shadowing the enviroment packages.
50
+ virtual environment and the system install. Among other issues it results in
51
+ hard to debug problems with system packages shadowing the environment packages.
52
52
If you use `virtualenvwrapper <https://virtualenvwrapper.readthedocs.org/ >`_
53
53
this can be toggled with the ``toggleglobalsitepackages `` command.
54
54
55
- Alternatively you can manually symlink the GUI frameworks into the environment.
56
- I.e. to use PyQt5 you should symlink ``PyQt5 `` and ``sip `` from your system
55
+ Alternatively, you can manually symlink the GUI frameworks into the environment.
56
+ I.e. to use PyQt5, you should symlink ``PyQt5 `` and ``sip `` from your system
57
57
site packages directory into the environment taking care that the environment
58
58
and the systemwide install use the same python version.
59
59
60
60
OSX
61
61
===
62
62
63
- On OSX two different types of Python Builds exists : a regular build and a
63
+ On OSX, two different types of Python Builds exist : a regular build and a
64
64
framework build. In order to interact correctly with OSX through some
65
- gui frameworks you need a framework build of Python.
65
+ GUI frameworks you need a framework build of Python.
66
66
At the time of writing the ``macosx ``, ``WX `` and ``WXAgg `` backends require a
67
67
framework build to function correctly. Unfortunately virtualenv creates a non
68
- framework build even if created from a framework build of Python. From
68
+ framework build even if created from a framework build of Python. Conda
69
+ environments are framework builds. From
69
70
Matplotlib 1.5 onwards the ``macosx `` backend checks that a framework build is
70
71
available and fails if a non framework build is found.
71
- WX has a similar check build- in.
72
+ WX has a similar check build in.
72
73
73
74
The issue has been reported on the virtualenv bug tracker `here
74
75
<https://github.com/pypa/virtualenv/issues/54> `__ and `here
75
76
<https://github.com/pypa/virtualenv/issues/609> `__
76
77
77
- Until this is fixed a workaround is needed. The best known workaround,
78
+ Until this is fixed, a workaround is needed. The best known workaround,
78
79
borrowed from the `WX wiki
79
80
<http://wiki.wxpython.org/wxPythonVirtualenvOnMac> `_, is to use the non
80
- virtualenv python along with the PYTHONHOME environmental variable. This can be
81
+ virtualenv python along with the PYTHONHOME environment variable. This can be
81
82
implemented in a script as below. To use this modify ``PYVER `` and
82
83
``PATHTOPYTHON `` and put the script in the virtualenv bin directory i.e.
83
84
``PATHTOVENV/bin/frameworkpython ``
0 commit comments