Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion docs/building_natlink.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 3 additions & 1 deletion pythonsrc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down