Commit 36d22bb4 authored by Paul Nechifor's avatar Paul Nechifor
Browse files

It can now be installed as a package.

parent 96edf04f
build
query_integral_image.c
query_integral_image.so
wordcloud/query_integral_image.c
wordcloud/query_integral_image.so
*.pyc
*~
*.png
all:
python setup.py build_ext -i
......@@ -2,7 +2,6 @@
import sys
import os
sys.path.insert(1, os.path.join(sys.path[0], '..'))
import wordcloud
text = open('alice.txt').read()
......
......@@ -2,7 +2,6 @@
import sys
import os
sys.path.insert(1, os.path.join(sys.path[0], '..'))
import wordcloud
text = open('constitution.txt').read()
......
......@@ -3,7 +3,9 @@ from distutils.core import setup
from Cython.Build import cythonize
setup(
name='word_cloud',
ext_modules=cythonize("*.pyx"),
package_dir={'word_cloud': '.'}
name='wordcloud',
ext_modules=cythonize("wordcloud/query_integral_image.pyx"),
url='https://github.com/paul-nechifor/word_cloud',
packages=['wordcloud'],
package_data={'wordcloud': ['stopwords']}
)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment