Skip to content

Commit

Permalink
Pruned size of package
Browse files Browse the repository at this point in the history
  • Loading branch information
Liam-Deacon committed Nov 28, 2018
1 parent c9236fd commit 4387d59
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 6 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
include Makefile

# reduce package size for PyPI
exclude data/graphics/world.8192x4096.dds
exclude data/graphics/world.16384x8192.dds
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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={
Expand Down

0 comments on commit 4387d59

Please sign in to comment.