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 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
|
#!/usr/bin/env
#
# CheMPS2: a spin-adapted implementation of DMRG for ab initio quantum chemistry
# Copyright (C) 2013-2022 Sebastian Wouters
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
import os
import numpy as np
from glob import glob
from distutils.core import setup
from distutils.extension import Extension
from distutils.command.install_data import install_data
from Cython.Distutils import build_ext
def get_depends(dirname):
result = glob('%s/*.h' % dirname)
result += glob('%s/*.pxd' % dirname)
return result
setup(
name='CheMPS2',
version='1.8.12',
description='A spin-adapted implementation of DMRG for ab initio quantum chemistry',
author='Sebastian Wouters',
author_email='sebastianwouters@gmail.com',
download_url='https://github.com/SebWouters/CheMPS2',
license='GNU General Public License, version 2',
cmdclass={'build_ext': build_ext},
ext_modules=[
Extension("PyCheMPS2",
sources=['PyCheMPS2.pyx'],
depends=get_depends('.'),
libraries=['chemps2'],
include_dirs=[np.get_include()],
language="c++"),
],
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GNU General Public License (GPL)',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 2',
'Programming Language :: Cython',
'Programming Language :: C++',
'Topic :: Science/Engineering :: Molecular Science'
],
)
|