Meson and distutils ways of doing things#
Old workflows (numpy.distutils based):
python runtests.pypython setup.py build_ext -i+export PYTHONPATH=/home/username/path/to/numpy/reporoot(and then edit pure Python code in NumPy and run it withpython some_script.py).python setup.py develop- this is similar to (2), except in-place build is made permanently visible in env.python setup.py bdist_wheel+pip install dist/numpy*.whl- build wheel in current env and install it.pip install .- build wheel in an isolated build env against deps inpyproject.tomland install it. Note: be careful, this is usually not the correct command for development installs - typically you want to use (4) orpip install . -v --no-build-isolation.
New workflows (Meson and meson-python based):
spin testpip install -e . --no-build-isolation(note: only for working on NumPy itself - for more details, see IDE support & editable installs)the same as (2)
python -m build --no-isolation+pip install dist/numpy*.whl- see pypa/build.pip install .