diff options
author | vrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2017-07-03 13:16:54 +0000 |
---|---|---|
committer | vrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2017-07-03 13:16:54 +0000 |
commit | 2e7447cf1deb3a1ac08f2fe90cd780901da65016 (patch) | |
tree | d219f486a9999a091b084aba81a9cbe27f200d83 /src/cython | |
parent | 34487e33517c36ad65407743c46fd4c1df963628 (diff) |
Rename cythonize_gudhi.py in setup.py to be conform with Python convention (for easy_install and pip)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/trunk@2578 636b058d-ea47-450e-bf9e-a15bfbe3eedb
Former-commit-id: c514a7c5096293380254339e7e60782194040823
Diffstat (limited to 'src/cython')
-rw-r--r-- | src/cython/CMakeLists.txt | 6 | ||||
-rw-r--r-- | src/cython/setup.py.in (renamed from src/cython/cythonize_gudhi.py.in) | 0 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/cython/CMakeLists.txt b/src/cython/CMakeLists.txt index d801fb0b..99badffb 100644 --- a/src/cython/CMakeLists.txt +++ b/src/cython/CMakeLists.txt @@ -197,15 +197,15 @@ if(CYTHON_FOUND) configure_file(doc/Makefile.in "${CMAKE_CURRENT_BINARY_DIR}/doc/Makefile" @ONLY) configure_file(doc/make.bat.in "${CMAKE_CURRENT_BINARY_DIR}/doc/make.bat" @ONLY) - # Generate cythonize_gudhi.py file to cythonize Gudhi - configure_file(cythonize_gudhi.py.in "${CMAKE_CURRENT_BINARY_DIR}/cythonize_gudhi.py" @ONLY) + # Generate setup.py file to cythonize Gudhi - This file must be named setup.py by convention + configure_file(setup.py.in "${CMAKE_CURRENT_BINARY_DIR}/setup.py" @ONLY) # Generate gudhi.pyx - Gudhi cython file configure_file(gudhi.pyx.in "${CMAKE_CURRENT_BINARY_DIR}/gudhi.pyx" @ONLY) add_custom_command( OUTPUT gudhi.so WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} - COMMAND ${PYTHON_EXECUTABLE} "${CMAKE_CURRENT_BINARY_DIR}/cythonize_gudhi.py" "build_ext" "--inplace") + COMMAND ${PYTHON_EXECUTABLE} "${CMAKE_CURRENT_BINARY_DIR}/setup.py" "build_ext" "--inplace") add_custom_target(cython ALL DEPENDS gudhi.so COMMENT "Do not forget to add ${CMAKE_CURRENT_BINARY_DIR}/ to your PYTHONPATH before using examples or tests") diff --git a/src/cython/cythonize_gudhi.py.in b/src/cython/setup.py.in index c1a1717a..c1a1717a 100644 --- a/src/cython/cythonize_gudhi.py.in +++ b/src/cython/setup.py.in |