mirror of https://github.com/Yomguithereal/fog.git
Fixing setup to install without cython
This commit is contained in:
parent
84a0b6a602
commit
22f85c9415
|
@ -0,0 +1,2 @@
|
||||||
|
include README.md
|
||||||
|
recursive-include fog *.c *.pyx
|
6
Makefile
6
Makefile
|
@ -7,10 +7,12 @@ test: build-ext unit
|
||||||
publish: lint test upload clean
|
publish: lint test upload clean
|
||||||
|
|
||||||
build-ext:
|
build-ext:
|
||||||
python setup.py build_ext --inplace
|
find . -name *.pyx | xargs cython
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf *.egg-info .pytest_cache .ipynb_checkpoints ./**/__pycache__ ./**/**/__pycache__ build dist
|
rm -rf *.egg-info .pytest_cache .ipynb_checkpoints build dist
|
||||||
|
find . -name __pycache__ -type d | xargs rm -rf
|
||||||
|
find . -name *.c -type f | xargs rm
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
@echo Linting source code using pep8...
|
@echo Linting source code using pep8...
|
||||||
|
|
20
setup.py
20
setup.py
|
@ -1,11 +1,17 @@
|
||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages, Extension
|
||||||
from Cython.Build import cythonize
|
|
||||||
|
|
||||||
with open('./README.md', 'r') as f:
|
with open('./README.md', 'r') as f:
|
||||||
long_description = f.read()
|
long_description = f.read()
|
||||||
|
|
||||||
|
EXTENSIONS = [
|
||||||
|
Extension(
|
||||||
|
'fog.metrics.levenshtein',
|
||||||
|
['fog/metrics/levenshtein.c']
|
||||||
|
)
|
||||||
|
]
|
||||||
|
|
||||||
setup(name='fog',
|
setup(name='fog',
|
||||||
version='0.5.3',
|
version='0.5.4',
|
||||||
description='A fuzzy matching & clustering library for python.',
|
description='A fuzzy matching & clustering library for python.',
|
||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
long_description_content_type='text/markdown',
|
long_description_content_type='text/markdown',
|
||||||
|
@ -16,18 +22,12 @@ setup(name='fog',
|
||||||
keywords='fuzzy',
|
keywords='fuzzy',
|
||||||
python_requires='>=3',
|
python_requires='>=3',
|
||||||
packages=find_packages(exclude=['experiments', 'test']),
|
packages=find_packages(exclude=['experiments', 'test']),
|
||||||
ext_modules=cythonize('fog/metrics/*.pyx'),
|
ext_modules=EXTENSIONS,
|
||||||
package_data={'': ['*.pyx'], 'docs': ['README.md']},
|
|
||||||
install_requires=[
|
install_requires=[
|
||||||
'cython',
|
|
||||||
'dill==0.2.7.1',
|
'dill==0.2.7.1',
|
||||||
'phylactery==0.1.1',
|
'phylactery==0.1.1',
|
||||||
'Unidecode==1.0.22'
|
'Unidecode==1.0.22'
|
||||||
],
|
],
|
||||||
setup_requires=[
|
|
||||||
'cython',
|
|
||||||
'setuptools>=18.0'
|
|
||||||
],
|
|
||||||
entry_points={
|
entry_points={
|
||||||
'console_scripts': ['fog=fog.cli.__main__:main']
|
'console_scripts': ['fog=fog.cli.__main__:main']
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue