Skip to content
This repository has been archived by the owner on Jun 17, 2020. It is now read-only.

Commit

Permalink
Rename rectangle module to rect. #4.
Browse files Browse the repository at this point in the history
To deal with case-insensitivity on Mac.
  • Loading branch information
thewtex committed Aug 12, 2012
1 parent acb9841 commit 5561b34
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions bin/CMakeLists.txt
@@ -1,8 +1,8 @@
# If the pyx file is a C++ file, we should specify that here.
set_source_files_properties( ${CYTHON_CMAKE_EXAMPLE_SOURCE_DIR}/src/rectangle.pyx PROPERTIES CYTHON_IS_CXX TRUE )
set_source_files_properties( ${CYTHON_CMAKE_EXAMPLE_SOURCE_DIR}/src/rect.pyx PROPERTIES CYTHON_IS_CXX TRUE )

cython_add_standalone_executable( rectangle-props MAIN_MODULE rectangle_props.py
${CYTHON_CMAKE_EXAMPLE_SOURCE_DIR}/src/rectangle.pyx
${CYTHON_CMAKE_EXAMPLE_SOURCE_DIR}/src/rect.pyx
rectangle_props.py
${CYTHON_CMAKE_EXAMPLE_SOURCE_DIR}/src/Rectangle.cxx
)
File renamed without changes.
4 changes: 2 additions & 2 deletions src/CMakeLists.txt
@@ -1,10 +1,10 @@
# If the pyx file is a C++ file, we should specify that here.
set_source_files_properties(
${CYTHON_CMAKE_EXAMPLE_SOURCE_DIR}/src/rectangle.pyx
${CYTHON_CMAKE_EXAMPLE_SOURCE_DIR}/src/rect.pyx
${CYTHON_CMAKE_EXAMPLE_SOURCE_DIR}/src/pi_calculator.pyx
PROPERTIES CYTHON_IS_CXX TRUE )

# Multi-file cython modules do not appear to be working at the moment.
cython_add_module( rectangle rectangle.pyx Rectangle.cxx )
cython_add_module( rect rect.pyx Rectangle.cxx )

cython_add_module( pi_calculator pi_calculator.pyx PiCalculator.cxx )
File renamed without changes.
2 changes: 1 addition & 1 deletion test/rectangle_test.py → test/rect_test.py
@@ -1,7 +1,7 @@
from unittest import TestCase
from nose.tools import assert_equal

from rectangle import Rectangle
from rect import Rectangle

class RectangleTest(TestCase):

Expand Down

0 comments on commit 5561b34

Please sign in to comment.