Skip to content

Commit 1c27aa8

Browse files
committed
fix various cython related errors
tested with python 3.7.3 and python 2.7.10
1 parent f8d1961 commit 1c27aa8

17 files changed

+27
-39588
lines changed

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
language: python
22
python:
3+
- "3.7"
4+
- "3.6"
5+
- "3.5"
36
- "3.4"
47
- "3.3"
5-
- "3.2"
68
- "2.7"
79
- "2.6"
810

911
install:
12+
- pip install -q cython
1013
- python setup.py install
1114

1215
# command to run tests, e.g. python setup.py test

setup.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#! /usr/bin/env python
22
import glob
33
from setuptools import setup, Extension
4+
from Cython.Build import cythonize
45

56
setup(
67
name="DAWG",
@@ -11,14 +12,14 @@
1112
author_email='kmike84@gmail.com',
1213
url='https://github.com/pytries/DAWG/',
1314

14-
ext_modules = [
15+
ext_modules = cythonize(
1516
Extension(
1617
"dawg",
17-
sources = glob.glob('src/*.cpp') + glob.glob('lib/b64/*.c'),
18+
glob.glob('src/dawg.pyx') + glob.glob('lib/b64/*.c'),
1819
include_dirs=['lib'],
1920
language = "c++",
2021
)
21-
],
22+
),
2223

2324
classifiers=[
2425
'Development Status :: 4 - Beta',

src/__init__.pxd

Whitespace-only changes.

0 commit comments

Comments
 (0)