1## @configure_input@ 2## 3## THIS FILE IS GENERATED BY CONFIGURE. DO NOT EDIT SETUP.PY; EDIT SETUP.PY.IN 4## INSTEAD. 5## 6## @file setup.py.in 7## @brief Python distutils code for libSBML Python module 8## @author Michael Hucka 9## @author Ben Bornstein 10## @author Ben Kovitz 11## 12## <!-------------------------------------------------------------------------- 13## This file is part of libSBML. Please visit http://sbml.org for more 14## information about SBML, and the latest version of libSBML. 15## 16## Copyright (C) 2013-2018 jointly by the following organizations: 17## 1. California Institute of Technology, Pasadena, CA, USA 18## 2. EMBL European Bioinformatics Institute (EMBL-EBI), Hinxton, UK 19## 3. University of Heidelberg, Heidelberg, Germany 20## 21## Copyright (C) 2009-2013 jointly by the following organizations: 22## 1. California Institute of Technology, Pasadena, CA, USA 23## 2. EMBL European Bioinformatics Institute (EMBL-EBI), Hinxton, UK 24## 25## Copyright (C) 2006-2008 by the California Institute of Technology, 26## Pasadena, CA, USA 27## 28## Copyright (C) 2002-2005 jointly by the following organizations: 29## 1. California Institute of Technology, Pasadena, CA, USA 30## 2. Japan Science and Technology Agency, Japan 31## 32## This library is free software; you can redistribute it and/or modify it 33## under the terms of the GNU Lesser General Public License as published by 34## the Free Software Foundation. A copy of the license agreement is provided 35## in the file named "LICENSE.txt" included with this software distribution 36## and also available online as http://sbml.org/software/libsbml/license.html 37## ---------------------------------------------------------------------- -->*/ 38 39## Running setup.py currently needs 'make install' or 'make create-build-dir' 40## to be run first. 'make install' or 'make create-build-dir' prepares the 41## package directory. (and copies libsbml.py into build/libsbml/__init__.py) 42 43import os.path, sys 44if not os.path.isfile('build/libsbml/__init__.py'): 45 print("Please run 'make create-build-dir' prior to using this setup script.") 46 sys.exit(1) 47 48try: 49 from setuptools import setup, Extension, Command 50except ImportError: 51 from distutils.core import setup, Extension 52 53 54 55 56setup(name = "libsbml", 57 version = "@PACKAGE_VERSION@", 58 description = "LibSBML Python API", 59 long_description = ("LibSBML is a library for reading, writing and "+ 60 "manipulating the Systems Biology Markup Language "+ 61 "(SBML). It is written in ISO C and C++, supports "+ 62 "SBML Levels 1, 2 and 3, and runs on Linux, Microsoft "+ 63 "Windows, and Apple MacOS X. For more information "+ 64 "about SBML, please see http://sbml.org."), 65 license = "LGPL", 66 author = "SBML Team", 67 author_email = "@PACKAGE_BUGREPORT@", 68 url = "http://sbml.org", 69 packages = ["libsbml"], 70 package_dir = {'libsbml': 'build/libsbml'}, 71 ext_package = "libsbml", 72 ext_modules = [Extension("_libsbml", 73 ["libsbml.i"], 74 swig_opts=['-c++', '-I../swig', '-I../../../include'], 75 include_dirs=["../../../include", ".", "../swig"])] 76) 77