{
  "__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": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "The "
            },
            {
              "__type": "InlineRole",
              "__tag": 4003,
              "value": "runtests.py",
              "domain": null,
              "role": null,
              "inventory": null
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " file was removed in commit "
            },
            {
              "__type": "InlineRole",
              "__tag": 4003,
              "value": "0f73f92255253ec5dff2de5ca45d8d3bdda03f92",
              "domain": null,
              "role": null,
              "inventory": null
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " "
            },
            {
              "__type": "FootnoteReference",
              "__tag": 4066,
              "label": "1"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "."
            }
          ]
        },
        {
          "__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/scipy/reporoot"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " (and then edit pure    Python code in SciPy 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/scipy*.whl"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " - build    wheel in current env (i.e. uses installed numpy, etc.) 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"
                    }
                  ]
                }
              ]
            },
            {
              "__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": " (see the "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "meson-python"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " docs)"
                    }
                  ]
                }
              ]
            },
            {
              "__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/scipy*.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 ."
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "__type": "Footnote",
          "__tag": 4067,
          "label": "1",
          "children": [
            {
              "__type": "Paragraph",
              "__tag": 4045,
              "children": [
                {
                  "__type": "Link",
                  "__tag": 4049,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "Commit 0f73f92255253ec5dff2de5ca45d8d3bdda03f92 on GitHub"
                    }
                  ],
                  "url": "https://github.com/scipy/scipy/commit/0f73f92255253ec5dff2de5ca45d8d3bdda03f92",
                  "title": ""
                },
                {
                  "__type": "Text",
                  "__tag": 4046,
                  "value": "."
                }
              ]
            }
          ]
        }
      ],
      "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": []
}