Skip to content
This repository was archived by the owner on Apr 24, 2020. It is now read-only.

Commit 1ec6468

Browse files
committed
make pfp a python package that can be installed without cmake
1 parent 063c840 commit 1ec6468

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

MANIFEST.in

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
recursive-include include/pfp *
2+
recursive-include include/pypfp *
3+
recursive-include share/pfp *

setup.py

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
try:
2+
from setuptools import setup, find_packages, Extension
3+
except ImportError:
4+
from ez_setup import use_setuptools
5+
use_setuptools()
6+
from setuptools import setup, find_packages, Extension
7+
8+
setup(
9+
name='pfp',
10+
version='0.0.1',
11+
description='pretty fast statistical parser for natural languages',
12+
author='Wavii',
13+
author_email='[email protected]',
14+
url='https://github.com/wavii/pfp',
15+
packages=find_packages(exclude=['ez_setup', 'tests*', 'integration*']),
16+
include_package_data=True,
17+
zip_safe=False,
18+
19+
ext_modules=[
20+
Extension('pfp',
21+
['src/pfp/config.cpp',
22+
'src/pfp/tokenizer.yy.cpp',
23+
'src/pypfp/pypfp.cpp'],
24+
include_dirs=['include'],
25+
libraries=['boost_python', 'boost_filesystem', 'boost_thread', 'boost_regex', 'boost_system', 'icuio'],
26+
extra_compile_args=['-g']
27+
),
28+
],
29+
data_files=[('/usr/share/pfp', ['share/pfp/americanizations', 'share/pfp/binary_rules', 'share/pfp/sigs', 'share/pfp/sig_state',
30+
'share/pfp/states', 'share/pfp/unary_rules', 'share/pfp/words', 'share/pfp/word_state'])]
31+
)
32+

0 commit comments

Comments
 (0)