5 # py-rrdtool distutil setup
7 # Author : Hye-Shik Chang <perky@fallin.lv>
8 # Date : $Date: 2003/02/14 02:38:16 $
9 # Created : 24 May 2002
13 # ==========================================================================
14 # This file is part of py-rrdtool.
16 # py-rrdtool is free software; you can redistribute it and/or modify
17 # it under the terms of the GNU Lesser General Public License as published
18 # by the Free Software Foundation; either version 2 of the License, or
19 # (at your option) any later version.
21 # py-rrdtool is distributed in the hope that it will be useful,
22 # but WITHOUT ANY WARRANTY; without even the implied warranty of
23 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 # GNU Lesser General Public License for more details.
26 # You should have received a copy of the GNU Lesser General Public License
27 # along with Foobar; if not, write to the Free Software
28 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
31 from distutils.core import setup, Extension
34 RRDBASE = os.environ.get('LOCALBASE', '../../src')
35 library_dir = os.environ.get('BUILDLIBDIR', os.path.join(RRDBASE, '.libs'))
36 include_dir = os.environ.get('INCDIR', RRDBASE)
38 setup(name = "py-rrdtool",
40 description = "Python Interface to RRDTool",
41 author = "Hye-Shik Chang",
42 author_email = "perky@fallin.lv",
44 url = "http://oss.oetiker.ch/rrdtool",
45 #packages = ['rrdtool'],
51 library_dirs=[library_dir],
52 include_dirs=[include_dir],