From 565c13ba94c337af62814e4c1854ffc7c42257d8 Mon Sep 17 00:00:00 2001 From: PyYoshi Date: Wed, 20 Jun 2012 21:45:57 +0900 Subject: [PATCH] support for linux --- setup.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/setup.py b/setup.py index cfa1f61..42b73b2 100644 --- a/setup.py +++ b/setup.py @@ -1,19 +1,17 @@ from distutils.core import setup, Extension +import platform,os,sys from Cython.Distutils import build_ext # use cython's buld_ext -charsetdetect_include_dir = r"." -charsetdetect_lib_dir = r"libcharsetdetect.dll" - setup( name = 'cchardet', + url = r"https://github.com/PyYoshi/cChardet", description = 'Universal encoding detector', version = '0.1', cmdclass = {'build_ext': build_ext}, ext_modules = [ Extension("cchardet", sources = ["cchardet.pyx"], - include_dirs=[charsetdetect_include_dir,], - extra_objects=[charsetdetect_lib_dir,], + libraries=['charsetdetect'], language="c", ),