Skip to content

Commit 51e56f1

Browse files
authored
Merge pull request #10 from acasta69/py_versions
Improve support for different Python versions, including boost_numpy
2 parents 41a60d9 + 2347d3d commit 51e56f1

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

README.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ paste it in the command prompt via right click -> paste)
2626
The first run of the build process will take around 20 minutes
2727
(depending on your CPU) and the linking process may consume a lot of RAM.
2828

29+
Default build will use Python 3.5, the version embedded in Blender 2.79b.
30+
You can add an option to specify the version of your choice among 3.5, 3.6, 3.7, e.g.:
31+
.\cmake-build-x64.bat /python36
32+
2933
The compiled binaries are in Build_CMake\LuxCore\bin\Release\
3034
The pyluxcore.pyd binary is in Build_CMake\LuxCore\lib\Release
3135
You can run the script collect-compiled-binaries.bat to collect them.

cmake-build-x64.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ if %BUILD_DLL% EQU 1 (
100100
set DLL_OPTION=
101101
)
102102

103-
set CMAKE_OPTS=-G %CMAKE_GENERATOR% %CMAKE_PLATFORM% %CMAKE_TOOLSET% -D CMAKE_INCLUDE_PATH="%INCLUDE_DIR%" -D CMAKE_LIBRARY_PATH="%LIB_DIR%" -D PYTHON_LIBRARY="%LIB_DIR%" -D PYTHON_V="python%PYTHON_VERSION%" -D PYTHON_INCLUDE_DIR="%INCLUDE_DIR%\Python%PYTHON_VERSION%" -D CMAKE_BUILD_TYPE=%BUILD_TYPE% %OCL_OPTION% %DLL_OPTION%
103+
set CMAKE_OPTS=-G %CMAKE_GENERATOR% %CMAKE_PLATFORM% %CMAKE_TOOLSET% -D CMAKE_INCLUDE_PATH="%INCLUDE_DIR%" -D CMAKE_LIBRARY_PATH="%LIB_DIR%" -D PYTHON_LIBRARY="%LIB_DIR%" -D PYTHON_V="%PYTHON_VERSION%" -D PYTHON_INCLUDE_DIR="%INCLUDE_DIR%\Python%PYTHON_VERSION%" -D CMAKE_BUILD_TYPE=%BUILD_TYPE% %OCL_OPTION% %DLL_OPTION%
104104
rem To display only errors add: /clp:ErrorsOnly
105105
set MSBUILD_OPTS=/nologo /maxcpucount /verbosity:normal /toolsversion:15.0 /property:"Platform=%MSBUILD_PLATFORM%" /property:"Configuration=%BUILD_TYPE%" /p:WarningLevel=0
106106

0 commit comments

Comments
 (0)