-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
executable file
·36 lines (31 loc) · 1.26 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/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'])])