From 4387d59c5b6bf6197ac3be96f9193d5522c37175 Mon Sep 17 00:00:00 2001 From: Liam Deacon Date: Wed, 28 Nov 2018 17:17:15 +0000 Subject: [PATCH] Pruned size of package --- MANIFEST.in | 8 ++++++-- setup.py | 4 +++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/MANIFEST.in b/MANIFEST.in index 18999194f7..89899591ea 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -3,11 +3,15 @@ recursive-include data/ * recursive-include utils/ * recursive-include plugins/ * recursive-exclude bluesky/ *.pyc *-checkpoint.py -recursive-exclude ./ __pycache__ +global-exclude *__pycache__* include LICENSE include README.md include setup.py include BlueSky*.py include check.py include requirements.txt -include Makefile \ No newline at end of file +include Makefile + +# reduce package size for PyPI +exclude data/graphics/world.8192x4096.dds +exclude data/graphics/world.16384x8192.dds diff --git a/setup.py b/setup.py index 01e6d9f107..f4becbdcc6 100644 --- a/setup.py +++ b/setup.py @@ -52,7 +52,9 @@ # "scripts" keyword. Entry points provide cross-platform support and allow # `pip` to create the appropriate form of executable for the target # platform. - data_files = [('/share/bluesky/data', [f for f in glob.glob('data/**/*') if path.isfile(f)] + ['data/default.cfg']), + data_files = [('/share/bluesky/data', [f for f in glob.glob('data/**/*') if path.isfile(f) + and path.basename(f) not in ('world.16384x8192.dds', + 'world.8192x4096.dds')] + ['data/default.cfg']), ('/share/bluesky/plugins', [f for f in glob.glob('plugins/*.py') if path.isfile(f)]), ('/share/bluesky/utils', [f for f in glob.glob('utils/**/*') if path.isfile(f)])], entry_points={