From 9e21b973b3810fd20f13ea6bcf9a1cb79ac00603 Mon Sep 17 00:00:00 2001 From: Juha Jeronen Date: Tue, 11 Apr 2017 18:53:55 +0300 Subject: [PATCH] disable zip_safe --- CHANGELOG.md | 6 ++++++ README.md | 6 ------ setup.py | 5 +++++ wlsqm/__init__.py | 2 +- 4 files changed, 12 insertions(+), 7 deletions(-) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..5357598 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,6 @@ +## Changelog + + - 0.1.2: set zip_safe to False to better work with Cython (important for libs that depend on this one) + - 0.1.1: change distribution system from distutils to setuptools + - 0.1.0: initial version + diff --git a/README.md b/README.md index 352bc43..9d19efc 100644 --- a/README.md +++ b/README.md @@ -142,12 +142,6 @@ WLSQM itself does not link against LAPACK or BLAS; it utilizes the `cython_lapac [BSD](LICENSE.md). Copyright 2016-2017 Juha Jeronen and University of Jyväskylä. -## History - - - 0.1.1: change distribution system from distutils to setuptools - - 0.1.0: initial version - - #### Acknowledgement This work was financially supported by the Jenny and Antti Wihuri Foundation. diff --git a/setup.py b/setup.py index e3a54f1..63123f5 100644 --- a/setup.py +++ b/setup.py @@ -207,6 +207,11 @@ def ext_math(extName): package_data={'wlsqm.utils': ['*.pxd', '*.pyx'], # note: paths relative to each package 'wlsqm.fitter': ['*.pxd', '*.pyx']}, + # Disable zip_safe, because: + # - Cython won't find .pxd files inside installed .egg, hard to compile libs depending on this one + # - dynamic loader may need to have the library unzipped to a temporary folder anyway (at import time) + zip_safe = False, + # Usage examples; not in a package data_files = datafiles ) diff --git a/wlsqm/__init__.py b/wlsqm/__init__.py index 0bb90c2..b850bf2 100644 --- a/wlsqm/__init__.py +++ b/wlsqm/__init__.py @@ -20,7 +20,7 @@ from __future__ import absolute_import # https://www.python.org/dev/peps/pep-0328/ -__version__ = '0.1.1' +__version__ = '0.1.2' from .fitter.defs import * # definitions (constants) (common) from .fitter.simple import * # simple API