{
  "__type": "IngestedDoc",
  "__tag": 4010,
  "_content": {},
  "_ordered_sections": [],
  "item_file": null,
  "item_line": null,
  "item_type": null,
  "aliases": [],
  "example_section_data": {
    "__type": "Section",
    "__tag": 4015,
    "children": [],
    "title": [],
    "level": 0,
    "target": null
  },
  "see_also": [],
  "signature": null,
  "references": null,
  "qa": "building:distutils_equivalents",
  "arbitrary": [
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Emphasis",
              "__tag": 4047,
              "children": [
                {
                  "__type": "Text",
                  "__tag": 4046,
                  "value": "Old workflows (numpy.distutils based):"
                }
              ]
            }
          ]
        },
        {
          "__type": "BulletList",
          "__tag": 4053,
          "ordered": true,
          "start": 1,
          "children": [
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "python runtests.py"
                    }
                  ]
                }
              ]
            },
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "python setup.py build_ext -i"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " + "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "export    PYTHONPATH=/home/username/path/to/numpy/reporoot"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " (and then edit pure    Python code in NumPy and run it with "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "python some_script.py"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": ")."
                    }
                  ]
                }
              ]
            },
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "python setup.py develop"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " - this is similar to (2), except in-place build    is made permanently visible in env."
                    }
                  ]
                }
              ]
            },
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "python setup.py bdist_wheel"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " + "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "pip install dist/numpy*.whl"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " - build    wheel in current env and install it."
                    }
                  ]
                }
              ]
            },
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "pip install ."
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " - build wheel in an isolated build env against deps in    "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "pyproject.toml"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " and install it. "
                    },
                    {
                      "__type": "Emphasis",
                      "__tag": 4047,
                      "children": [
                        {
                          "__type": "Text",
                          "__tag": 4046,
                          "value": "Note: be careful, this is usually not\n   the correct command for development installs - typically you want to use (4)\n   or"
                        }
                      ]
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "pip install . -v --no-build-isolation"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "."
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Emphasis",
              "__tag": 4047,
              "children": [
                {
                  "__type": "Text",
                  "__tag": 4046,
                  "value": "New workflows (Meson and meson-python based):"
                }
              ]
            }
          ]
        },
        {
          "__type": "BulletList",
          "__tag": 4053,
          "ordered": true,
          "start": 1,
          "children": [
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "spin test"
                    }
                  ]
                }
              ]
            },
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "pip install -e . --no-build-isolation"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " (note: only for working on NumPy    itself - for more details, see    "
                    },
                    {
                      "__type": "CrossRef",
                      "__tag": 4002,
                      "value": "IDE support & editable installs",
                      "reference": {
                        "__type": "LocalRef",
                        "__tag": 4022,
                        "kind": "docs",
                        "path": "building:index"
                      },
                      "kind": "exists"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": ")"
                    }
                  ]
                }
              ]
            },
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "the same as (2)"
                    }
                  ]
                }
              ]
            },
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "python -m build --no-isolation"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " + "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "pip install dist/numpy*.whl"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " - see    "
                    },
                    {
                      "__type": "Link",
                      "__tag": 4049,
                      "children": [
                        {
                          "__type": "Text",
                          "__tag": 4046,
                          "value": "pypa/build"
                        }
                      ],
                      "url": "https://pypa-build.readthedocs.io/en/latest/",
                      "title": ""
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "."
                    }
                  ]
                }
              ]
            },
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "pip install ."
                    }
                  ]
                }
              ]
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "Text",
          "__tag": 4046,
          "value": "Meson and "
        },
        {
          "__type": "InlineCode",
          "__tag": 4051,
          "value": "distutils"
        },
        {
          "__type": "Text",
          "__tag": 4046,
          "value": " ways of doing things"
        }
      ],
      "level": 0,
      "target": "distutils-meson-equivalents"
    }
  ],
  "local_refs": []
}