[yt-svn] commit/yt: MatthewTurk: This updates setup.py to install all (now-reorganized) components of reason.
Bitbucket
commits-noreply at bitbucket.org
Thu Jun 28 09:07:06 PDT 2012
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/changeset/437a66fd8588/
changeset: 437a66fd8588
branch: yt
user: MatthewTurk
date: 2012-06-28 18:06:58
summary: This updates setup.py to install all (now-reorganized) components of reason.
affected #: 1 file
diff -r 599374626857956f95ba591d17875dd439a9094d -r 437a66fd8588e4ab5735718bfa43b41f19b8fdf3 setup.py
--- a/setup.py
+++ b/setup.py
@@ -10,13 +10,31 @@
from numpy.distutils.misc_util import appendpath
from numpy.distutils import log
-DATA_FILES_HTML = glob.glob('yt/gui/reason/html/*.html')
-DATA_FILES_JS = glob.glob('yt/gui/reason/html/js/*.js')
-DATA_FILES_PNG = glob.glob('yt/gui/reason/html/images/*.png') \
- + glob.glob('yt/gui/reason/html/images/*.ico')
-DATA_FILES_LL = glob.glob('yt/gui/reason/html/leaflet/*.js') \
- + glob.glob('yt/gui/reason/html/leaflet/*.css')
-DATA_FILES_LLI = glob.glob('yt/gui/reason/html/leaflet/images/*.png')
+REASON_FILES = []
+REASON_DIRS = [
+ "",
+ "resources",
+ "resources/ux",
+ "resources/images",
+ "resources/css",
+ "resources/css/images",
+ "app",
+ "app/store",
+ "app/store/widgets",
+ "app/view",
+ "app/view/widgets",
+ "app/model",
+ "app/controller",
+ "app/controller/widgets",
+ "app/templates",
+]
+
+for subdir in REASON_DIRS:
+ dir_name = "yt/gui/reason/html/%s/" % (subdir)
+ files = []
+ for ext in ["js", "html", "css", "png", "ico", "gif"]:
+ files += glob.glob("%s/*.%s" % (dir_name, ext))
+ REASON_FILES.append( (dir_name, files) )
# Verify that we have Cython installed
try:
@@ -133,11 +151,7 @@
license="GPL-3",
configuration=configuration,
zip_safe=False,
- data_files=[('yt/gui/reason/html/', DATA_FILES_HTML),
- ('yt/gui/reason/html/js/', DATA_FILES_JS),
- ('yt/gui/reason/html/images/', DATA_FILES_PNG),
- ('yt/gui/reason/html/leaflet/', DATA_FILES_LL),
- ('yt/gui/reason/html/leaflet/images', DATA_FILES_LLI)],
+ data_files=REASON_FILES,
)
return
Repository URL: https://bitbucket.org/yt_analysis/yt/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the yt-svn
mailing list