* Adding support for unit testing using boost unit test and ctest * Adding libboost-test to Travis config. * Adding libboost-test to Travis config. * Modifying per element comparison * Modifying per element comparison * Fixing typo * Fixing typo * Adding custom comparison for strings * Updating Travis to run unit tests * Updating Travis to run unit tests * Fixing typo * Preparing unit testing to run on Appveyor * Preparing unit testing to run on Appveyor * Preparing unit testing to run on Appveyor * Preparing unit testing to run on Appveyor and Travis * Preparing unit testing to run on Appveyor and Travis * Preparing unit testing to run on Appveyor and Travis * Preparing unit testing to run on Appveyor * Preparing unit testing to run on Appveyor * Fixing unit testing path issue in CMake * Fixing unit testing path issue in CMake * Fixing bugs in cmake and appveyor scripts * Rolling back generate_export_header in cmake
42 lines
1003 B
Python
42 lines
1003 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 = "1.0",
|
|
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'
|
|
]
|
|
)
|