Skip to content

Alternative dev install instructions #7319

@anntzer

Description

@anntzer

I missed #7229 but after discussing with @NelleV I would like to suggest another approach for working on the dev version of matplotlib, that I have always used myself.

I personally think that editable installs are pretty bad because you get the worst of both worlds: you mess up your everyday-use install (or you have to work in a {v,conda}env -- if anything I think suggesting setting up such an environment should come first, not as "you may want to consider ..."), and you still need to remember to build extensions every once in a while. (See extensive discussion in #7229.)

Instead, you can simply run python setup.py build_ext --inplace and then do whatever you want prefixed with PYTHONPATH=/path/to/mpl/lib.

I will readily acknowledge that there is one flaw with this approach: until recently, you could not work on the mpl_toolkits namespace package by setting PYTHONPATH, because the -nspkg.pth approach used by setuptools for namespace packages meant that PYTHONPATH would be ignored (see e.g. https://mail.python.org/pipermail/distutils-sig/2014-March/024050.html). Fortunately, this issue has been solved recently by setuptools 28.3.0 (https://github.com/pypa/setuptools/blob/master/CHANGES.rst#v2830): for Python3.3+, setuptools just relies on PEP420 support, which does respect PYTHONPATH.

attn @NelleV @tacaswell

Metadata

Metadata

Assignees

No one assigned

    Labels

    Difficulty: Easyhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issuesDocumentation

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy