Skip to content

Commit

Permalink
added data files together with the library in the installation
Browse files Browse the repository at this point in the history
  • Loading branch information
squoilin committed Dec 18, 2017
1 parent 1fe7c57 commit 61ee4ad
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
8 changes: 3 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
click==6.7
docutils==0.12
h5py==2.6.0
matplotlib==1.5.1
docutils==0.14
matplotlib==2.1.0
numpy==1.13.3
pandas==0.21.0
pytz==2016.6.1
Sphinx==1.3.5
Sphinx==1.6.5
sphinx-rtd-theme==0.1.9
xlrd==0.9.4

15 changes: 15 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,26 @@
#!/usr/bin/env python

from setuptools import setup, find_packages
import os


# Sets the __version__ variable
__version__ = None
exec(open('DispaSET/_version.py').read())

def recursive_listdir(folder):
'''
Generates a list of all files in a a specified directory
'''
return [(dp,[os.path.join(dp, f)]) for dp, dn, fn in os.walk(os.path.expanduser(folder)) for f in fn]

def define_data_files():
list_files = []
for folder in ['ConfigFile','Database','Externals']:
list_files += recursive_listdir(folder)
return list_files


setup(
name='Dispa-SET',
version=__version__,
Expand All @@ -18,6 +32,7 @@
download_url='http://www.dispaset.eu/en/latest/releases.html',
packages=find_packages(),
package_data={'DispaSET': ['config/*.yaml','GAMS/*']},
data_files=define_data_files(),
install_requires=[
"click >= 3.3",
"numpy >= 1.12",
Expand Down

0 comments on commit 61ee4ad

Please sign in to comment.