support for linux
This commit is contained in:
parent
169627e0d1
commit
565c13ba94
1 changed files with 3 additions and 5 deletions
8
setup.py
8
setup.py
|
@ -1,19 +1,17 @@
|
||||||
from distutils.core import setup, Extension
|
from distutils.core import setup, Extension
|
||||||
|
import platform,os,sys
|
||||||
from Cython.Distutils import build_ext # use cython's buld_ext
|
from Cython.Distutils import build_ext # use cython's buld_ext
|
||||||
|
|
||||||
charsetdetect_include_dir = r"."
|
|
||||||
charsetdetect_lib_dir = r"libcharsetdetect.dll"
|
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name = 'cchardet',
|
name = 'cchardet',
|
||||||
|
url = r"https://github.com/PyYoshi/cChardet",
|
||||||
description = 'Universal encoding detector',
|
description = 'Universal encoding detector',
|
||||||
version = '0.1',
|
version = '0.1',
|
||||||
cmdclass = {'build_ext': build_ext},
|
cmdclass = {'build_ext': build_ext},
|
||||||
ext_modules = [
|
ext_modules = [
|
||||||
Extension("cchardet",
|
Extension("cchardet",
|
||||||
sources = ["cchardet.pyx"],
|
sources = ["cchardet.pyx"],
|
||||||
include_dirs=[charsetdetect_include_dir,],
|
libraries=['charsetdetect'],
|
||||||
extra_objects=[charsetdetect_lib_dir,],
|
|
||||||
language="c",
|
language="c",
|
||||||
),
|
),
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue