[manifest] include right files

This commit is contained in:
mzwiessele 2015-11-05 10:02:31 +00:00
parent 3e0dcf9317
commit 981dce8c21
2 changed files with 15 additions and 4 deletions

View file

@ -48,8 +48,8 @@ def load(file_or_path):
"""
# This is the pickling pain when changing _src -> src
import inspect
sys.modules['GPy.kern._src'] = kern.src
for name, module in inspect.getmembers(kern.src):
sys.modules['GPy.kern._src'] = kern.src # @UndefinedVariable
for name, module in inspect.getmembers(kern.src): # @UndefinedVariable
if not name.startswith('_'):
sys.modules['GPy.kern._src.{}'.format(name)] = module
try:
@ -60,7 +60,7 @@ def load(file_or_path):
else:
m = pickle.load(file_or_path)
except: # python3
import pickle
import pickle # @Reimport
if isinstance(file_or_path, str):
with open(file_or_path, 'rb') as f:
u = pickle._Unpickler(f) # @UndefinedVariable

View file

@ -1,7 +1,18 @@
recursive-include doc *.cfg
# Documentation:
include doc/source/conf.py
include doc/source/index.rst
include doc/source/tuto*.py
# Data and config
include *.json
include GPy/defaults.cfg
include GPy/installation.cfg
# Cython
recursive-include GPy *.c
recursive-include GPy *.so
recursive-include GPy *.pyx
# Testing
include GPy/testing/plotting_tests/baseline/*.png
include GPy/testing/pickle_test.pickle