Skip to content

Commit

Permalink
Removes module import from setup.py (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlaura authored Jan 2, 2019
1 parent 325d026 commit c036502
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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',
Expand All @@ -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',
Expand Down

0 comments on commit c036502

Please sign in to comment.