From 5f15114452c9ba70d965ef36e46df410621b1caa Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sat, 29 Oct 2016 22:55:15 +0800 Subject: setup.py: Add "zip_safe=False" to avoid installing as a zipped egg The upcoming Web UI based on Tornado needs direct access to the templates/pages and static files, therefore avoid installing the package as a zipped egg. Also add a reference on "steuptools". --- setup.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/setup.py b/setup.py index 1fce5c6..2dcece2 100755 --- a/setup.py +++ b/setup.py @@ -8,6 +8,8 @@ # https://packaging.python.org/ # [2] pytest - Good Integration Practices # http://doc.pytest.org/en/latest/goodpractices.html +# [3] setuptools: Building and Distributing Packages with Setuptools +# https://setuptools.readthedocs.io/en/latest/setuptools.html # import os @@ -70,6 +72,9 @@ setup( ], packages=find_packages(exclude=["docs", "tests"]), include_package_data=True, + # Do NOT installed as a zipped egg, since Tornado requires direct access + # to the templates and static files. + zip_safe=False, scripts=[ "bin/fg21sim", "bin/healpix2hpx", -- cgit v1.2.2