From c036502f1143978bbac33a445545f7f1afe582f8 Mon Sep 17 00:00:00 2001 From: jlaura Date: Wed, 2 Jan 2019 14:50:21 -0700 Subject: [PATCH] Removes module import from setup.py (#100) --- setup.py | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/setup.py b/setup.py index 7f1566aa3..0640948d4 100644 --- a/setup.py +++ b/setup.py @@ -1,23 +1,11 @@ import os from setuptools import setup, find_packages -import plio -from plio.examples import available + #Grab the README.md for the long description with open('README.rst', 'r') as f: long_description = f.read() def setup_package(): - examples = set() - for i in available(): - if not os.path.isdir('plio/examples/' + i): - if '.' in i: - glob_name = 'examples/*.' + i.split('.')[-1] - else: - glob_name = 'examples/' + i - else: - glob_name = 'examples/' + i + '/*' - examples.add(glob_name) - setup( name = "plio", version = '1.0.0', @@ -30,17 +18,14 @@ def setup_package(): url = "http://packages.python.org/plio", packages=find_packages(), include_package_data=True, - package_data={'plio' : list(examples) + ['data/*.db', 'data/*.py'] +\ - ['sqlalchemy_json/*.py', 'sqlalchemy_json/LICENSE']}, - zip_safe=False, + package_data={'plio' : ['sqlalchemy_json/*.py', 'sqlalchemy_json/LICENSE']}, + zip_safe=True, scripts=['bin/socetnet2isis', 'bin/isisnet2socet'], install_requires=[ - 'libgdal', 'gdal', 'numpy', 'pyproj', 'jinja2', - 'ncurses', 'pvl', 'protobuf', 'h5py',