Skip to content

Commit 9f17246

Browse files
committed
Merge pull request #1579 from david-ragazzi/build_extensions
Pythonic build: Switch from cmake to distutils extensions for nupic installation
2 parents 2bddf7d + e66635c commit 9f17246

File tree

5 files changed

+599
-132
lines changed

5 files changed

+599
-132
lines changed

.gitignore

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ test.out
1212
*.swp
1313
*.coverage*
1414

15+
# build
16+
build/
17+
1518
# personalized nupic configuration file
1619
.nupic_config
1720

@@ -63,16 +66,11 @@ extensions/core/
6366
experimental/
6467

6568
# nupic bindings swig libraries
66-
nupic/bindings/*engine_internal.*
67-
nupic/bindings/*algorithms.*
68-
nupic/bindings/*iorange.*
69-
nupic/bindings/*math.*
70-
nupic/bindings/*.cxx
71-
nupic/bindings/proto/*.capnp
69+
nupic/bindings/
70+
~nupic/bindings/*.i
7271

7372
# Pip stuff
7473
dist/
7574
nupic.egg-info/
7675
nupic/*cpp_region.*
7776
temp/
78-

ci/travis/install-osx.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ python --version
3232

3333
# Build NuPIC
3434
cd ${TRAVIS_BUILD_DIR}
35-
python setup.py install --user
35+
ARCHFLAGS="-arch x86_64" python setup.py install --user
3636

3737
# Show nupic installation folder by trying to import nupic, if works, it prints
3838
# the absolute path of nupic.__file__, which the installation folder itself.

extensions/compare_nupic_core_version.cpp

Lines changed: 0 additions & 17 deletions
This file was deleted.

setup.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build_ext]
2+
inplace=1
3+

0 commit comments

Comments
 (0)