setup.py 830 Bytes
#! /usr/bin/env python
# -*- coding: utf-8 -*-

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

from distutils.core import setup
from distutils.extension import Extension
import Cython.Distutils, Cython.Compiler.Options
import os

setup(
    cmdclass = {'build_ext': Cython.Distutils.build_ext},
    ext_modules = [
                   Extension("pyasl",
                             ["pyasl.pyx"],
                             library_dirs = [os.path.join(os.environ['AMPLPATH'], 'lib')],
                             include_dirs = [os.path.join(os.environ['AMPLPATH'], 'include')],
                             libraries = ['amplsolver']
                            )
    ]
)