Skip to content

Commit

Permalink
some tidying up, made auto installation work
Browse files Browse the repository at this point in the history
  • Loading branch information
bayerj committed Mar 22, 2013
1 parent cffacca commit d5d7ec0
Show file tree
Hide file tree
Showing 13 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions py_bh_tsne/Makefile → Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
all:
python setup.py build_ext --inplace
python setup.py install

clean :
rm -rf *.pyc *.so build/ py_bh_tsne.cpp
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 4 additions & 3 deletions py_bh_tsne/setup.py → setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
if sys.platform == 'darwin':
ext_modules = [Extension(
name="py_bh_tsne",
sources=["quadtree.cpp", "tsne.cpp", "py_bh_tsne.pyx"],
sources=["fasttsne/quadtree.cpp", "fasttsne/tsne.cpp", "fasttsne/py_bh_tsne.pyx"],
include_dirs = [numpy.get_include()],
extra_compile_args=['-faltivec', '-I/System/Library/Frameworks/vecLib.framework/Headers'],
extra_link_args=["-Wl,-framework", "-Wl,Accelerate", "-lcblas"],
Expand All @@ -17,7 +17,7 @@
else:
ext_modules = [Extension(
name="py_bh_tsne",
sources=["quadtree.cpp", "tsne.cpp", "py_bh_tsne.pyx"],
sources=["fasttsne/quadtree.cpp", "fasttsne/tsne.cpp", "fasttsne/py_bh_tsne.pyx"],
include_dirs = [numpy.get_include(), "/usr/local/include"],
library_dirs = ["/usr/local/lib"],
extra_compile_args=['-msse2', '-O3', '-fPIC', '-w'],
Expand All @@ -28,5 +28,6 @@
setup(
name = "py_bh_tsne",
cmdclass = {"build_ext": build_ext},
ext_modules = ext_modules
ext_modules = ext_modules,
packages=['fasttsne'],
)

0 comments on commit d5d7ec0

Please sign in to comment.