@@ -47,37 +47,38 @@ least two possible ways to get access to these in a virtual environment.
4747One often suggested solution is to use the ``--system-site-packages `` option
4848to virtualenv when creating an environment. This adds all system wide packages
4949to 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.
5252If you use `virtualenvwrapper <https://virtualenvwrapper.readthedocs.org/ >`_
5353this can be toggled with the ``toggleglobalsitepackages `` command.
5454
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
5757site packages directory into the environment taking care that the environment
5858and the systemwide install use the same python version.
5959
6060OSX
6161===
6262
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
6464framework 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.
6666At the time of writing the ``macosx ``, ``WX `` and ``WXAgg `` backends require a
6767framework 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
6970Matplotlib 1.5 onwards the ``macosx `` backend checks that a framework build is
7071available 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.
7273
7374The issue has been reported on the virtualenv bug tracker `here
7475<https://github.com/pypa/virtualenv/issues/54> `__ and `here
7576<https://github.com/pypa/virtualenv/issues/609> `__
7677
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,
7879borrowed from the `WX wiki
7980<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
8182implemented in a script as below. To use this modify ``PYVER `` and
8283``PATHTOPYTHON `` and put the script in the virtualenv bin directory i.e.
8384``PATHTOVENV/bin/frameworkpython ``
0 commit comments