Skip to content

Commit

Permalink
Fix setup.py to include headers and move to setuptools
Browse files Browse the repository at this point in the history
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
  • Loading branch information
anih committed Oct 21, 2015
1 parent 9310f14 commit 456e598
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
9 changes: 9 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -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
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -44,5 +43,6 @@ def compile_test(header, library):

setup(
name='kenlm',
ext_modules=ext_modules
ext_modules=ext_modules,
include_package_data=True,
)

0 comments on commit 456e598

Please sign in to comment.