source: trunk/src/testing/app/py_sail/setup.py @ 4

Revision 4, 2.4 KB checked in by ajaworski, 13 years ago (diff)

Added modified SAGE sources

Line 
1##################################################################################
2# Copyright (C) 2007 Electronic Visualization Laboratory,
3# University of Illinois at Chicago
4#
5# All rights reserved.
6#
7# Redistribution and use in source and binary forms, with or without
8# modification, are permitted provided that the following conditions are met:
9#
10#  * Redistributions of source code must retain the above copyright
11#    notice, this list of conditions and the following disclaimer.
12#  * Redistributions in binary form must reproduce the above
13#    copyright notice, this list of conditions and the following disclaimer
14#    in the documentation and/or other materials provided with the distribution.
15#  * Neither the name of the University of Illinois at Chicago nor
16#    the names of its contributors may be used to endorse or promote
17#    products derived from this software without specific prior written permission.
18#
19# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
23# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
24# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
25# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
26# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
27# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
28# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
29# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30#
31# Direct questions, comments etc about SAGE UI to www.evl.uic.edu/cavern/forum
32#
33# Author: Ratko Jagodic
34#       
35##################################################################################
36
37from distutils.core import setup, Extension
38import os
39
40sageDir = os.environ["SAGE_DIRECTORY"]
41
42module1 = Extension('py_sail',
43                    include_dirs = [sageDir + '/include'],
44                    libraries = ['sail'],
45                    library_dirs = [sageDir + '/lib'],
46                    sources = ['py_sail.cpp'])
47
48setup (name = 'py_sail',
49       version = '0.2',
50       author = 'Ratko Jagodic',
51       description = 'This is a python-sail interface that enables you to use python for SAGE apps',
52       ext_modules = [module1])
Note: See TracBrowser for help on using the repository browser.