Fix setup.py to include headers and move to setuptools

This will allow to create tag.gz source package by running:
python setup.py sdist
and create wheel package by running:
pip install wheel
python setup.py bdist_wheel
This commit is contained in:
Sebastian Bauer 2015-10-21 12:20:18 +02:00
Родитель 9310f14c4f
Коммит 456e598caf
2 изменённых файлов: 12 добавлений и 3 удалений

9
MANIFEST.in Normal file
Просмотреть файл

@ -0,0 +1,9 @@
# file GENERATED by distutils, do NOT edit
include setup.py
include lm/*.cc
include lm/*.hh
include python/*.cpp
include util/*.cc
include util/*.hh
include util/double-conversion/*.cc
include util/double-conversion/*.h

Просмотреть файл

@ -1,5 +1,4 @@
from distutils.core import setup
from distutils.extension import Extension
from setuptools import setup, Extension
import glob
import platform
import os
@ -44,5 +43,6 @@ ext_modules = [
setup(
name='kenlm',
ext_modules=ext_modules
ext_modules=ext_modules,
include_package_data=True,
)