Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 37 lines (31 sloc) 1.26 KB
#!/usr/bin/env python
# Tamito KAJIYAMA <13 September 2001>
# $Id: setup.py,v 1.3 2001/09/22 23:17:00 kajiyama Exp $
from distutils.core import setup, Extension
#from ez_setup import use_setuptools
#use_setuptools()
import sys
#from setuptools import setup
#from setuptools.extension import Extension
IS_WINDOWS = sys.platform in ('win32', )
if IS_WINDOWS:
EBMODULE_C = 'src\ebmodule.c'
INCLUDE_DIRS = ['C:\Python26\include', 'C:\EBLibrary\include', '.\src']
LIBRARY_DIRS = ['C:\EBLibrary\lib']
else:
EBMODULE_C = 'src/ebmodule.c'
INCLUDE_DIRS = ['/usr/local/include', './src']
LIBRARY_DIRS = None
setup (name = 'ebmodule',
version = '2.3',
description = 'A wrapper module of the EB library',
author = 'Tamito KAJIYAMA',
author_email = 'kajiyama@grad.sccs.chukyo-u.ac.jp',
url = 'http://pseudo.grad.sccs.chukyo-u.ac.jp/~kajiyama/python/',
py_modules = ['eblib'],
ext_modules = [
Extension('ebmodule', [EBMODULE_C],
include_dirs=INCLUDE_DIRS,
library_dirs=LIBRARY_DIRS,
#library_dirs=['/home/plateau/src/ebmodule-2.0/src/eb/.libs','/home/plateau/src/ebmodule-2.0/src/eb_lib/zlib/.libs'],
libraries=['eb'])]) #, 'z'])])