From 80238a2e80cda48a2d260030f3350e887c8b602d Mon Sep 17 00:00:00 2001 From: jlaura <jlaura@usgs.gov> Date: Mon, 18 Feb 2019 13:47:17 -0700 Subject: [PATCH] removes unused setup.py (#178) --- setup.py | 54 ------------------------------------------------------ 1 file changed, 54 deletions(-) delete mode 100644 setup.py diff --git a/setup.py b/setup.py deleted file mode 100644 index be02bd9..0000000 --- a/setup.py +++ /dev/null @@ -1,54 +0,0 @@ -import os -import pkg_resources -import sys -import sysconfig -from setuptools import setup, Extension, find_packages -from Cython.Build import cythonize - -# Look for the csmapi headers in the standard location -incdir = os.path.dirname(sysconfig.get_path('include')) - -INCLUDE_DIRS = ['include/json', 'include/genericframe', 'include/orex', - 'include/genericls', - 'include/', incdir, os.path.join(incdir, 'csm')] -LIBRARY_DIRS = [] # This assumes that libcsmapi is installed in a standard place -LIBRARIES = ['csmapi'] -COMPILE_ARGS = ['-g', '-std=c++11']#, '-stdlib=libc++'] - -if sys.platform == 'darwin': - COMPILE_ARGS.append('-mmacosx-version-min=10.9') -elif sys.platform.startswith("win"): - try: - INCLUDE_DIRS.append(os.path.join(os.environ['LIBRARY_INC'], 'csm')) - except: pass - COMPILE_ARGS = [] - -def generate_extension(path_name, sources): - return Extension(path_name, - sources=sources, - extra_compile_args=COMPILE_ARGS, - language='c++', - include_dirs=INCLUDE_DIRS, - runtime_library_dirs=LIBRARY_DIRS, - libraries=LIBRARIES) - -# Create the extensions -extensions = [generate_extension('usgscam.genericframe', ['usgscam/genericframe.pyx', - 'src/UsgsAstroFramePlugin.cpp', - 'src/UsgsAstroFrameSensorModel.cpp']), - generate_extension('usgscam.orex', ['usgscam/orex.pyx', - 'src/ORexPlugin.cpp', - 'src/ORexSensorModel.cpp']), - generate_extension('usgscam.genericls', ['usgscam/genericls.pyx', - 'src/UsgsAstroLsPlugin.cpp', - 'src/UsgsAstroLsSensorModel.cpp', - 'src/UsgsAstroLsStateData.cpp'])] - -setup( - name='usgscam', - version='0.1.1', - ext_modules=cythonize(extensions), - description='Cython wrapper to the USGS MDIS Camera Model', - author='Jay Laura', - packages = find_packages(), - install_requires=['cycsm']) -- GitLab