Skip to content
Snippets Groups Projects
Commit fae3e6d4 authored by jlaura's avatar jlaura Committed by Jason R Laura
Browse files

Ammended setup.py to include necessary data elements.

parent d10dd5c6
Branches
Tags
No related merge requests found
import os
import plio
__all__ = ['get_path']
__all__ = ['available', 'get_path']
#Used largely unmodififed from:
# https://github.com/pysal/pysal/blob/master/pysal/examples/__init__.py
......@@ -44,7 +44,7 @@ def get_path(example_name): # pragma: no cover
def available(directory='', verbose=False): # pragma: no cover
"""
List available datasets in autocnet.examples
List available datasets in plio.examples
Parameters
==========
......
This diff is collapsed.
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()
......@@ -8,9 +10,16 @@ with open('README.rst', 'r') as f:
VERSION = plio.__version__
def setup_package():
#import plio
#print(plio.examples.available())
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",
......@@ -24,6 +33,8 @@ 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,
install_requires=[
'gdal>=2',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment