Skip to content

Commit

Permalink
Explicitly add file and include directory for cython
Browse files Browse the repository at this point in the history
Build under python3 apparently requires copying the vysmaw.pxd file to the build
directory, and passing -I. to cython when building cy_vysmaw. This is not the
case in python2.7...not really sure why that changed...but this patch also
appears to work for python2.7.
  • Loading branch information
mpokorny committed Mar 28, 2018
1 parent 968f8b3 commit cce2e73
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions py/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ if("${isSystemDir}" STREQUAL "-1")
endif("${isSystemDir}" STREQUAL "-1")

find_package(Cython)
set(CYTHON_FLAGS "-I.")
configure_file(vysmaw.pxd vysmaw.pxd COPYONLY)
add_cython_target(cy_vysmaw cy_vysmaw.pyx)

include_directories(${PYTHON_INCLUDE_DIRS} ../src)
Expand Down

0 comments on commit cce2e73

Please sign in to comment.