Skip to content

Commit

Permalink
Merge pull request #13 from SamuraiT/fix-Ffile-not-founderror
Browse files Browse the repository at this point in the history
Fix file not found error
  • Loading branch information
SamuraiT authored Oct 30, 2018
2 parents 1e4d09b + cf27e70 commit 9aba4f9
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion MANIFEST
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# file GENERATED by distutils, do NOT edit
MeCab.i
MeCab.py
MeCab_wrap.cxx
setup.py
13 changes: 9 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -3,8 +3,13 @@
from distutils.core import setup, Extension
import os

with open('README.rst') as readme_file:
readme = readme_file.read()
def read_file(filename):
filepath = os.path.join(
os.path.dirname(os.path.dirname(__file__)), filename)
if os.path.exists(filepath):
return open(filepath).read()
else:
return ''

def mecab_config(arg):
return os.popen("mecab-config " + arg).readlines()[0].split()
@@ -17,9 +22,9 @@ def mecab_config(arg):
swig_opts.extend("-I"+d for d in inc_dir)

setup(name = "mecab-python3",
version = '0.8.2',
version = '0.8.3',
description = 'python wrapper for mecab: Morphological Analysis engine',
long_description=readme,
long_description= read_file('README.rst'),
maintainer = 'Tatsuro Yasukawa',
maintainer_email = 't.yasukawa01@gmail.com',
url = 'https://github.com/SamuraiT/mecab-python3',

0 comments on commit 9aba4f9

Please sign in to comment.