2005-12-15 17:06:02 +00:00
|
|
|
#!/usr/bin/env python
|
2005-11-18 00:53:15 +00:00
|
|
|
from distutils.core import *
|
2009-09-21 11:12:00 +00:00
|
|
|
import os,sys,shutil
|
2005-11-18 00:53:15 +00:00
|
|
|
|
2006-04-19 15:37:47 +00:00
|
|
|
about = """The Open Babel package provides a Python wrapper
|
2009-07-18 09:55:34 +00:00
|
|
|
to the Open Babel C++ chemistry library. Open Babel is a chemical
|
|
|
|
|
toolbox designed to speak the many languages of chemical data. It's an
|
|
|
|
|
open, collaborative project allowing anyone to search, convert,
|
|
|
|
|
analyze, or store data from molecular modeling, chemistry, solid-state
|
|
|
|
|
materials, biochemistry, or related areas. It provides a broad base of
|
|
|
|
|
chemical functionality for custom development.
|
2006-04-19 15:37:47 +00:00
|
|
|
"""
|
|
|
|
|
|
2010-03-13 11:57:35 +00:00
|
|
|
srcdir = os.path.dirname(__file__)
|
2005-11-18 00:53:15 +00:00
|
|
|
|
2010-05-09 19:45:42 +00:00
|
|
|
obExtension = Extension('_openbabel',
|
|
|
|
|
[os.path.join(srcdir, "openbabel-python.cpp")],
|
2010-03-13 11:57:35 +00:00
|
|
|
include_dirs=[os.path.join(srcdir, "..", "..", "include"),
|
|
|
|
|
os.path.join("..", "include")],
|
|
|
|
|
library_dirs=[os.path.join("..", "lib")],
|
|
|
|
|
libraries=['openbabel']
|
|
|
|
|
)
|
2005-12-15 17:06:02 +00:00
|
|
|
|
2010-03-13 11:57:35 +00:00
|
|
|
if "build" in sys.argv:
|
2010-10-04 12:37:06 +00:00
|
|
|
shutil.copyfile(os.path.join(srcdir, "pybel_py%dx.py" % sys.version_info[0]), "pybel.py")
|
2010-06-01 08:36:30 +00:00
|
|
|
shutil.copyfile(os.path.join(srcdir, "openbabel.py"), "openbabel.py")
|
2009-09-21 11:12:00 +00:00
|
|
|
|
2005-11-18 00:53:15 +00:00
|
|
|
setup(name='openbabel',
|
2009-07-18 09:26:46 +00:00
|
|
|
version='1.5',
|
2007-09-03 20:53:06 +00:00
|
|
|
author='Noel O\'Boyle',
|
2005-11-18 00:53:15 +00:00
|
|
|
author_email='openbabel-scripting@lists.sourceforge.net',
|
2009-07-18 09:55:34 +00:00
|
|
|
url='http://openbabel.org/',
|
2006-04-19 15:37:47 +00:00
|
|
|
license='http://www.gnu.org/copyleft/gpl.html',
|
2006-11-18 13:31:04 +00:00
|
|
|
py_modules=['openbabel','pybel'],
|
2008-06-17 19:03:50 +00:00
|
|
|
ext_modules=[obExtension],
|
2006-04-19 15:37:47 +00:00
|
|
|
description = 'openbabel: Python interface to the Open Babel chemistry library',
|
|
|
|
|
classifiers=[
|
|
|
|
|
'Development Status :: 5 - Production/Stable',
|
|
|
|
|
'Environment :: Console',
|
|
|
|
|
'Environment :: Other Environment',
|
|
|
|
|
'Intended Audience :: Education',
|
|
|
|
|
'Intended Audience :: Science/Research',
|
|
|
|
|
'License :: OSI Approved :: GNU General Public License (GPL)',
|
|
|
|
|
'Natural Language :: English',
|
|
|
|
|
'Operating System :: MacOS :: MacOS X',
|
|
|
|
|
'Operating System :: Microsoft :: Windows',
|
|
|
|
|
'Operating System :: OS Independent',
|
|
|
|
|
'Operating System :: POSIX',
|
|
|
|
|
'Operating System :: POSIX :: Linux',
|
|
|
|
|
'Operating System :: Unix',
|
|
|
|
|
'Programming Language :: C++',
|
|
|
|
|
'Programming Language :: Python',
|
|
|
|
|
'Topic :: Scientific/Engineering :: Bio-Informatics',
|
|
|
|
|
'Topic :: Scientific/Engineering :: Chemistry',
|
|
|
|
|
'Topic :: Software Development :: Libraries',
|
|
|
|
|
],
|
|
|
|
|
long_description = about,
|
|
|
|
|
)
|