42 lines
1011 B
Python
42 lines
1011 B
Python
# -*- coding: utf-8 -*-
|
|
#
|
|
# setup.py
|
|
#
|
|
# Created: 9/20/2017
|
|
# Author: Michael E. Tryby
|
|
# US EPA - ORD/NRMRL
|
|
#
|
|
# Setup up script for en_outputapi python extension
|
|
#
|
|
# Requires:
|
|
# Platform C language compiler
|
|
# Python packages: numpy
|
|
#
|
|
|
|
try:
|
|
from setuptools import setup, Extension
|
|
from setuptools.command.build_ext import build_ext
|
|
except ImportError:
|
|
from distutils.core import setup, Extension
|
|
from distutils.command.build_ext import build_ext
|
|
|
|
setup(
|
|
name = "epanet-output",
|
|
version = "0.1.0-alpha",
|
|
ext_modules = [
|
|
Extension("_epanet_output",
|
|
define_macros = [('epanet_output_EXPORTS', None)],
|
|
include_dirs = ['include'],
|
|
sources = ['src/epanet_output.i', 'src/epanet_output.c', 'src/errormanager.c'],
|
|
swig_opts=['-modern'],
|
|
language = 'C'
|
|
)
|
|
],
|
|
package_dir = {'':'src'},
|
|
py_modules = ['epanet_output'],
|
|
|
|
install_requires = [
|
|
'enum34'
|
|
]
|
|
)
|