Skip to content

Commit 9e21b97

Browse files
committed
disable zip_safe
1 parent af00a35 commit 9e21b97

4 files changed

Lines changed: 12 additions & 7 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
## Changelog
2+
3+
- 0.1.2: set zip_safe to False to better work with Cython (important for libs that depend on this one)
4+
- 0.1.1: change distribution system from distutils to setuptools
5+
- 0.1.0: initial version
6+

README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -142,12 +142,6 @@ WLSQM itself does not link against LAPACK or BLAS; it utilizes the `cython_lapac
142142
[BSD](LICENSE.md). Copyright 2016-2017 Juha Jeronen and University of Jyväskylä.
143143

144144

145-
## History
146-
147-
- 0.1.1: change distribution system from distutils to setuptools
148-
- 0.1.0: initial version
149-
150-
151145
#### Acknowledgement
152146

153147
This work was financially supported by the Jenny and Antti Wihuri Foundation.

setup.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,11 @@ def ext_math(extName):
207207
package_data={'wlsqm.utils': ['*.pxd', '*.pyx'], # note: paths relative to each package
208208
'wlsqm.fitter': ['*.pxd', '*.pyx']},
209209

210+
# Disable zip_safe, because:
211+
# - Cython won't find .pxd files inside installed .egg, hard to compile libs depending on this one
212+
# - dynamic loader may need to have the library unzipped to a temporary folder anyway (at import time)
213+
zip_safe = False,
214+
210215
# Usage examples; not in a package
211216
data_files = datafiles
212217
)

wlsqm/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
from __future__ import absolute_import # https://www.python.org/dev/peps/pep-0328/
2222

23-
__version__ = '0.1.1'
23+
__version__ = '0.1.2'
2424

2525
from .fitter.defs import * # definitions (constants) (common)
2626
from .fitter.simple import * # simple API

0 commit comments

Comments
 (0)