Skip to content

Commit 8315520

Browse files
committed
fix ปิดความสามารถที่เข้ากันไม่ได้ใน python 2.7
1 parent 2786d28 commit 8315520

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

setup.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
# -*- coding: utf-8 -*-
22
from setuptools import setup
33
from setuptools import find_packages
4-
import codecs
5-
with codecs.open('README.rst','r',encoding='utf-8') as readme_file:
6-
readme = readme_file.read()
7-
4+
import sys
85
requirements = [
9-
'pyicu>=1.9.2',
6+
'pyicu',
107
'nltk>=3.2.2',
118
'future>=0.16.0',
12-
'dill',
13-
'six',
14-
'artagger'
9+
'six'
1510
]
11+
if sys.version_info >= (3,4):
12+
requirements.append('artagger')
13+
requirements.append('dill')
1614

1715
test_requirements = [
1816
# TODO: put package test requirements here
@@ -22,7 +20,6 @@
2220
name='pythainlp',
2321
version='1.2',
2422
description="Thai NLP in python package.",
25-
long_description=readme,
2623
author='Wannaphong Phatthiyaphaibun',
2724
author_email='[email protected]',
2825
url='https://github.com/wannaphongcom/pythainlp',

0 commit comments

Comments
 (0)