Skip to content
This repository has been archived by the owner on Sep 1, 2023. It is now read-only.

Commit

Permalink
Merge pull request #2256 from david-ragazzi/rename_cppregion
Browse files Browse the repository at this point in the history
Fix 2255: Rename CppRegion to PyRegion
  • Loading branch information
scottpurdy committed Jun 30, 2015
2 parents df85929 + 56a0ab5 commit 3605956
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Expand Up @@ -71,5 +71,5 @@ nupic/bindings/proto/*.capnp
# Pip stuff
dist/
nupic.egg-info/
nupic/*cpp_region.*
nupic/*py_region.*
temp/
2 changes: 1 addition & 1 deletion .nupic_modules
@@ -1,3 +1,3 @@
# Default nupic.core dependencies (override in optional .nupic_config)
NUPIC_CORE_REMOTE = 'git://github.com/numenta/nupic.core.git'
NUPIC_CORE_COMMITISH = 'cb55ebd9633923040176db0c041945f190d69800'
NUPIC_CORE_COMMITISH = '140a176ef1f53bb5014e60cec5a26ecc0498d23e'
Expand Up @@ -20,7 +20,7 @@
* ---------------------------------------------------------------------
*/

#include <cpp_region/PyRegion.hpp>
#include <py_region/PyRegion.hpp>
#include <numpy/arrayobject.h>
#include <iostream>
#include <sstream>
Expand Down
File renamed without changes.
File renamed without changes.
14 changes: 7 additions & 7 deletions setup.py
Expand Up @@ -412,18 +412,18 @@ def getExtensionModules(nupicCoreReleaseDir, platform, bitness, cmdOptions=None)

extensions = []

libDynamicCppRegion = Extension(
"nupic." + getLibPrefix(platform) + "cpp_region",
libDynamicPyRegion = Extension(
"nupic." + getLibPrefix(platform) + "py_region",
extra_compile_args=commonCompileFlags,
define_macros=commonDefines,
extra_link_args=commonLinkFlags,
include_dirs=commonIncludeDirs,
libraries=commonLibraries,
sources=pythonSupportSources +
["extensions/cpp_region/PyRegion.cpp",
"extensions/cpp_region/unittests/PyHelpersTest.cpp"],
["extensions/py_region/PyRegion.cpp",
"extensions/py_region/unittests/PyHelpersTest.cpp"],
extra_objects=commonObjects)
extensions.append(libDynamicCppRegion)
extensions.append(libDynamicPyRegion)

#
# SWIG
Expand Down Expand Up @@ -625,8 +625,8 @@ def postProcess():
shutil.copy(
nupicCoreReleaseDir + "/bin/py_region_test", REPO_DIR + "/bin"
)
# Copy cpp_region located at build dir into source dir
shutil.copy(buildDir + "/nupic/" + getLibPrefix(platform) + "cpp_region" +
# Copy py_region located at build dir into source dir
shutil.copy(buildDir + "/nupic/" + getLibPrefix(platform) + "py_region" +
getSharedLibExtension(platform), REPO_DIR + "/nupic")

options = getCommandLineOptions()
Expand Down

0 comments on commit 3605956

Please sign in to comment.