[yt-svn] commit/yt: ngoldbaum: Gather data files to install using include_package_data=True

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Wed Oct 26 15:20:10 PDT 2016


1 new commit in yt:

https://bitbucket.org/yt_analysis/yt/commits/d15775018c26/
Changeset:   d15775018c26
Branch:      yt
User:        ngoldbaum
Date:        2016-10-26 19:37:43+00:00
Summary:     Gather data files to install using include_package_data=True

This requires adding empty __init__.py files to directories where we store
data. See http://stackoverflow.com/a/13315109/1382869 for an explanation for
why this is the case.
Affected #:  5 files

diff -r d96b0f9e17673b388fb19ce09b71dbf0512ed0ae -r d15775018c266934317e4021fad305b4d37e08c5 setup.py
--- a/setup.py
+++ b/setup.py
@@ -32,24 +32,6 @@
 except pkg_resources.DistributionNotFound:
     pass  # yay!
 
-MAPSERVER_FILES = []
-MAPSERVER_DIRS = [
-    "",
-    "leaflet",
-    "leaflet/images"
-]
-
-for subdir in MAPSERVER_DIRS:
-    dir_name = os.path.join("yt", "visualization", "mapserver", "html", subdir)
-    files = []
-    for ext in ["js", "html", "css", "png", "ico", "gif"]:
-        files += glob.glob("%s/*.%s" % (dir_name, ext))
-    MAPSERVER_FILES.append((dir_name, files))
-
-SHADERS_DIR = os.path.join("yt", "visualization", "volume_rendering", "shaders")
-SHADERS_FILES = glob.glob(os.path.join(SHADERS_DIR, "*.vertexshader")) + \
-    glob.glob(os.path.join(SHADERS_DIR, "*.fragmentshader"))
-
 VERSION = "3.4.dev0"
 
 if os.path.exists('MANIFEST'):
@@ -372,7 +354,7 @@
     ]
     },
     packages=find_packages(),
-    package_data = {'':['*.pxd']},
+    include_package_data = True,
     setup_requires=[
         'numpy',
         'cython>=0.24',
@@ -395,7 +377,6 @@
     license="BSD",
     zip_safe=False,
     scripts=["scripts/iyt"],
-    data_files=MAPSERVER_FILES + [(SHADERS_DIR, SHADERS_FILES)],
     ext_modules=cython_extensions + extensions,
 )

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