Skip to content

Commit

Permalink
Merge pull request #17 from fgregg/patch-1
Browse files Browse the repository at this point in the history
Include win32 stdint.h shim from crfsuite for windows, close #16
  • Loading branch information
tpeng committed Apr 24, 2015
2 parents 29f9142 + a96a418 commit 0f81526
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env python
import glob
import sys
from setuptools import setup, Extension

sources = ['pycrfsuite/_pycrfsuite.cpp', 'pycrfsuite/trainer_wrapper.cpp']
Expand All @@ -21,6 +22,9 @@
'pycrfsuite',
]

if sys.platform == 'win32':
includes.append('crfsuite/win32')

ext_modules = [Extension('pycrfsuite._pycrfsuite',
include_dirs=includes,
language='c++',
Expand Down

0 comments on commit 0f81526

Please sign in to comment.