diff --git a/docs/building_natlink.md b/docs/building_natlink.md index d983caab..119f7a5b 100644 --- a/docs/building_natlink.md +++ b/docs/building_natlink.md @@ -24,7 +24,10 @@ instructions below. 5. Install [Inno](https://jrsoftware.org/isdl.php) version 6.x. - - Inno Setup compiler iscc.exe needs to be sys PATH. -6. Install flit to Python 3.10.x 32-bit interpreter `py -3.10-32 -m pip install flit` + +6. Instally the pyproject-build command. This builds python modules in isolated enironments. A good idea to have on your system. + You can install pipx https://pipx.pypa.io/stable/installation/ (also a good idea) then `pipx installl build`. Or install build on any python on your system that will be in the path. You can even use natlink's 32 bit python if you want, though it unecessarily brings build into that environment. + ### Building Natlink diff --git a/pythonsrc/CMakeLists.txt b/pythonsrc/CMakeLists.txt index d03c823b..c3a4eae4 100644 --- a/pythonsrc/CMakeLists.txt +++ b/pythonsrc/CMakeLists.txt @@ -35,7 +35,9 @@ add_custom_command( OUTPUT "${WHEEL_PATH}" COMMENT "Building python wheel package in ${WHEEL_PATH}" COMMAND ${CMAKE_COMMAND} -E copy ${NL_FILES} ${NL_PY_DIR} - COMMAND ${Python3_EXECUTABLE} -m build + #COMMAND ${Python3_EXECUTABLE} -m build + COMMAND pyproject-build + DEPENDS StampDriver # otherwise the stamps are not checked ${PROJECT_BINARY_DIR}/NatlinkSource/NatlinkSource.STAMP ${NL_FILES}