Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # The PYTHONPATH must be point to the virtual environment in order to make cmake find the pycapnp in its python library ??
- # That's probably the cause of previous failures.
- # Create path variable to the folder you git clone the nupic.core
- NUPIC_CORE=$PWD
- # Build the directory
- mkdir build/script
- # enter the directory
- cd build/script
- # generate build file
- PYTHONPATH=$PYTHONPATH:/Users/pohsuanhuang/miniconda/envs/nupic/lib/python2.7/site-packages
- cmake $NUPIC_CORE -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../release -DPY_EXTENSIONS_DIR=$NUPIC_CORE/bindings/py/nupic/bindings -DCMAKE_CXX_COMPILER=/usr/bin/clang++
- # While still in ./script
- PYTHONPATH=$PYTHONPATH:/Users/pohsuanhuang/miniconda/envs/nupic/lib/python2.7/site-packages CXX='/usr/bin/clang++' make -j3
- # While still in ./script
- CXX='/usr/bin/clang++' make install
- # Run the tests
- cd $NUPIC_CORE/build/release/bin
- ./cpp_region_test
- ./unit_tests
- # Install nupic.bindings Python library. 'ARCHFLAGS="-arch x86_64' is ONLY for OS X
- cd $NUPIC_CORE
- export ARCHFLAGS="-arch x86_64
- python setup.py develop
- # then the following should work smoothly.
- # run the tests...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement